No install? Use cloud.anythingmcp.com directly.
Sign in, install the Mastodon in one click, paste the credentials, mint an MCP API key — done. No Docker, no git clone, no local server to run.
TL;DR
从任何 AI 代理读取和发布到任何 Mastodon 实例。10 种工具,Bearer 令牌认证。
💡 无需安装?直接使用 cloud.anythingmcp.com。 登录,点击 Connectors → Mastodon,粘贴您的凭据,生成一个 MCP API 密钥 — 完成。无需 Docker,无需
git clone,无需本地服务器。
Mastodon + Cursor
从任何 AI 代理读取和发布到任何 Mastodon 实例。10 种工具,Bearer 令牌认证。
前提条件
请查看连接器中包含的完整设置说明(在您选择连接器时可在应用内商店中查看)。此连接器所需的环境变量为:
MASTODON_INSTANCE_URL, MASTODON_ACCESS_TOKEN
第一步 — 获取凭据
此连接器封装了 Mastodon REST API(任何实例 — 将 baseUrl 设置为您的实例)。
设置:
- 选择您的实例(例如
https://mastodon.social,https://fosstodon.org,或您自托管的实例)。 - 登录 → Preferences → Development → New application。
- 命名(例如 'mcp')。权限范围:
read,write,follow,push— 勾选您用例所需的权限(不要过度授权)。 - 保存 → 复制 Your access token 值(仅显示一次)。这是与您的帐户关联的个人访问令牌。
- 设置
MASTODON_INSTANCE_URL(例如https://mastodon.social)和MASTODON_ACCESS_TOKEN。
认证:在每个请求中使用 Authorization: Bearer ${MASTODON_ACCESS_TOKEN}。
…(在应用内连接器说明中继续)
第二步 — 安装适配器
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
第三步 — 在 Claude 中添加连接器
推荐路径 — 在 claude.ai web 上工作,无需编辑任何配置文件。
- 打开 claude.ai/customize/connectors。
- 点击 "Add custom connector"。
- 填写:
- 名称:
Mastodon - URL:
https://cloud.anythingmcp.com/mcp - 认证: Bearer 令牌 → 粘贴您的 MCP API 密钥(来自 AnythingMCP → Profile → MCP API Keys → New Key)
- 名称:
- 点击 Connect 进行授权。
所有工具将出现在您的聊天中 — 开始输入提示。
可用工具
| 工具 | 功能 |
|---|---|
mastodon_verify_credentials | 返回经过身份验证的帐户:id,用户名,acct(完整句柄),display_name,note,avatar,statuses_count,followers_count,following_c |
mastodon_get_account | 根据 ID 获取公共帐户 |
mastodon_account_statuses | 获取用户的最近状态(toots) |
mastodon_home_timeline | 获取经过身份验证的用户的主页时间线(他们的关注) |
mastodon_public_timeline | 获取公共时间线 |
mastodon_hashtag_timeline | 获取带有特定标签的状态(无 # 前缀) |
mastodon_search | 在帐户、状态和标签中进行全文搜索 |
mastodon_get_status | 根据 ID 获取单个状态 |
mastodon_post_status | 发布新状态(toot) |
mastodon_delete_status | 删除您自己的一个状态 |
常见问题
它是否适用于 Claude Code 和 Claude Desktop? 是的 — 两者都指向 https://cloud.anythingmcp.com/mcp。
下一步
这份指南对您有帮助吗?