Mastodon

Mastodon

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

7 天免费 · 无需信用卡 · EU 托管

问 Mastodon 任何事

通过 AnythingMCP 对 Mastodon 试一个真实提示 — Claude 调用工具并返回答案。在你的消息上按 Enter 即可在 Cloud 安装。

在 Cloud 上安装 Mastodon
Mastodon · 通过 MCP 实时
分享
Opus 4.7

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

2 分钟设置

  1. 1在 cloud.anythingmcp.com 开始免费试用。
  2. 2在连接器商店点击 Mastodon。提示时粘贴凭据。
  3. 3生成 MCP API 密钥,将 AI 客户端指向生成的 MCP URL。
立即安装 Mastodon

Mastodon 指南

面向主流 AI 客户端的逐步设置。

配置 Mastodon

直接来自连接器定义:在哪里获取凭据、需要哪些权限,以及该适配器调用的是哪个 API。 由连接器作者以英文提供。

This connector wraps the Mastodon REST API (any instance — set baseUrl to your instance).

Setup:

  1. Pick your instance (e.g. https://mastodon.social, https://fosstodon.org, your self-hosted one).
  2. Log in → Preferences → Development → New application.
  3. Name it (e.g. 'mcp'). Scopes: read, write, follow, push — tick whatever your use case needs (don't over-grant).
  4. Save → copy the Your access token value (shown only once). This is a personal access token tied to your account.
  5. Set MASTODON_INSTANCE_URL (e.g. https://mastodon.social) and MASTODON_ACCESS_TOKEN.

Authentication: Authorization: Bearer ${MASTODON_ACCESS_TOKEN} on every request.

Per-instance API: Mastodon is federated — every instance hosts its own API. baseUrl is your home instance. To read posts from other instances, the API will federate transparently when you provide a status ID OR you can use the public timeline endpoints.

IDs are per-instance: a status ID from mastodon.social is NOT the same as the same status on fosstodon.org (each instance assigns its own internal ID even if the status was federated). To look up cross-instance: use mastodon_search with the full URL.

Post (toot) limits: most instances allow 500 characters; some configure more. Polls have separate rules.

Pagination: cursor-based via Link headers (max_id, min_id, since_id). The adapter exposes max_id / since_id as parameters.

Visibility: when posting, visibility is one of public, unlisted, private (followers-only), direct (mentioned-only). Default per-account.

Rate limits: 300 req / 5min per token on most instances. 429 with X-RateLimit-Reset header.

Out of scope here: image/video upload multipart (use the dedicated media endpoint with a separate flow), instance admin, lists CRUD, push subscriptions.

你的 AI 距离 Mastodon 仅两次点击。

安装连接器、粘贴凭据、向 AI 提问。7 天免费,无需信用卡。