Connector guide1-minute read10 MCP toolsEN · DE · IT

如何通过 MCP 将 Mastodon 连接到 ChatGPT

从任何 AI 代理读取和发布到任何 Mastodon 实例。10 个工具,Bearer token 认证。

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Mastodon

MCP connector

Mastodon

Read & post on any Mastodon instance from any AI agent. 10 tools, Bearer token auth.

Tools

10

Region

INTL

Category

social

Authentication

Bearer Token

Required env vars

MASTODON_INSTANCE_URLMASTODON_ACCESS_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

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.

Start free trial

Summary

从任何 AI 代理读取和发布到任何 Mastodon 实例。10 个工具,Bearer token 认证。

试试这样问

Mastodon 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Mastodon · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 不想安装?直接使用 cloud.anythingmcp.com 登录,点击 Connectors → Mastodon,粘贴你的凭据,生成一个 MCP API 密钥 — 完成。无需 Docker,无需 git clone,无需本地服务器。

Mastodon + ChatGPT

从任何 AI 代理读取和发布到任何 Mastodon 实例。10 个工具,Bearer token 认证。

前提条件

请查看连接器中包含的完整设置说明(在你选择连接器时可在应用内商店中查看)。此连接器所需的环境变量为:

MASTODON_INSTANCE_URL, MASTODON_ACCESS_TOKEN

第一步 — 获取凭据

此连接器封装了 Mastodon REST API(任何实例 — 将 baseUrl 设置为你的实例)。

设置

  1. 选择你的实例(例如 https://mastodon.socialhttps://fosstodon.org,或你自托管的实例)。
  2. 登录 → Preferences → Development → New application
  3. 命名(例如 'mcp')。权限范围:readwritefollowpush — 勾选你用例所需的权限(不要过度授权)。
  4. 保存 → 复制 Your access token 值(仅显示一次)。这是与你的帐户关联的个人访问令牌。
  5. 设置 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

第三步 — 在 ChatGPT 中添加连接器

ChatGPT 通过 Connectors 功能支持 MCP 服务器(Plus / Pro / Team / Enterprise 计划)。免费层不支持自定义连接器。

  1. 打开 ChatGPT → Settings → Connectors(或点击创作器中的 🔧 图标 → Manage connectors)。
  2. 点击 "Add custom connector"
  3. 填写:
    • Name: Mastodon
    • MCP server URL: https://cloud.anythingmcp.com/mcp
    • Authentication: Bearer token → 粘贴你的 MCP API 密钥(来自 AnythingMCP → Profile → MCP API Keys → New Key
  4. 点击 Connect 以授权。

可用工具

工具功能
mastodon_verify_credentials返回经过身份验证的帐户:id,username,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删除你自己的某个状态

常见问题

ChatGPT 免费层是否支持自定义 MCP 连接器? 不 — 需要 Plus、Pro、Team 或 Enterprise 计划。

下一步

这份指南对你有帮助吗?

Ready to ship

Your Mastodon agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

相关指南