Skip the install. Get this working in under 2 minutes.
Start a free trial on cloud.anythingmcp.com, add the Mastodon in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.
Summary
从任何 AI 代理读取和发布到任何 Mastodon 实例。10 个工具,Bearer token 认证。
试试这样问
Mastodon 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 不想安装?直接使用 cloud.anythingmcp.com。 登录,点击 Connectors → Mastodon,粘贴你的凭据,生成一个 MCP API 密钥 — 完成。无需 Docker,无需
git clone,无需本地服务器。
Mastodon
从任何 AI 代理读取和发布到任何 Mastodon 实例。10 个工具,Bearer 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}。
…(在应用内连接器说明中继续)
先决条件:MASTODON_INSTANCE_URL,MASTODON_ACCESS_TOKEN
本地安装连接器
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
打开 http://localhost:3000/connectors/store,选择 Mastodon 并粘贴在先决条件下列出的环境变量。
可用工具
| 工具 | 功能 |
|---|---|
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 | 删除你自己的一个状态 |
下一步
这份指南对你有帮助吗?