# Mastodon MCP server for AI agents

Connect ChatGPT, Claude, Claude Code, OpenClaw, Cursor or Codex to any Mastodon server via MCP. Schedule threads, content warnings, polls and replies.

Publish to any federated Mastodon server directly from your AI assistant without configuring per-instance OAuth apps or local access tokens. PostSyncer’s MCP server offers 118 tools in one list (your client decides which of them it shows) supporting threads, visibility scopes, content warnings, polls, quotes and replies.

**MCP server:** https://postsyncer.com/mcp · **REST API:** https://postsyncer.com/api/v1 · **Docs:** https://postsyncer.com/docs/platforms/mastodon

## Example Mastodon agent prompt

Prompt: “Write a 2-post Mastodon thread in English for Wednesday at 11:30 AM with the content warning "Coffee roasting nerdery" and attach our espresso shot photo.”

- `list-workspaces`: Halden Coffee (#4815)

- `list-accounts`: Mastodon @halden@mastodon.social (#16246)

- `get-brand`: Loaded Halden Coffee voice

- `list-media`: Found espresso-shot.jpg (#5125) with alt text

- `create-post`: Scheduled 2-part Mastodon thread #81460 with CW

Scheduled your 2-post Mastodon thread on @halden@mastodon.social for Wednesday at 11:30 AM with content warning “Coffee roasting nerdery”, language en and the image alt text preserved.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create-post",
    "arguments": {
      "workspace_id": 4815,
      "schedule_type": "schedule",
      "schedule_for": {
        "date": "2026-12-09",
        "time": "11:30",
        "timezone": "America/Los_Angeles"
      },
      "content": [
        {
          "text": "Behind the bar: dialing in a washed Ethiopian espresso each morning.",
          "media": [5125]
        },
        {
          "text": "Full grind size and mineral water specs are on our blog."
        }
      ],
      "accounts": [
        {
          "id": 16246,
          "settings": {
            "visibility": "public",
            "spoiler_text": "Coffee roasting nerdery",
            "sensitive": false,
            "language": "en"
          }
        }
      ]
    }
  }
}
```

## Quick start

1. **Connect your AI client.** Install the official ChatGPT app or Claude plugin, or point Claude Code, OpenClaw, Cursor, Codex or Gemini CLI at https://postsyncer.com/mcp.

2. **Authorize any Mastodon instance.** Connect your account on any Mastodon domain in PostSyncer (or create a connect link with mastodon_instance), then sign in from your AI client via OAuth or API key.

3. **Draft Fediverse threads, polls and replies.** Ask your agent to split updates into 500-character Mastodon threads, add content warnings and visibility settings, run polls or answer replies.

## MCP tools for Mastodon

Verified PostSyncer MCP tools for Mastodon — giving AI agents native Fediverse publishing, poll validation, reply handling and boost metrics.

- `list-accounts` (`accounts:read`): Locate connected Mastodon accounts across any federated instance.

- `create-account-connect-link` (`accounts:create`): Generate a connect link for provider: mastodon and a chosen mastodon_instance domain.

- `get-brand` (`brand:read`): Read workspace tone before writing Fediverse threads or replies.

- `create-post` (`posts:create / schedule / publish`): Draft or schedule Mastodon posts, threads, polls, content warnings and quote posts.

- `delete-post` (`posts:delete`, destructive): Cancel scheduled posts or ask the Mastodon server to delete the first post of a thread.

- `sync-comments-from-platforms` (`comments:read`): Pull fresh Mastodon replies from the instance on demand.

- `create-comment` (`comments:create`): Answer a reply on your Mastodon post with text plus photos or a video.

- `get-analytics-post` (`analytics:read`): Read favourites (likes), replies (comments), boosts (shares) and quotes.

## Agent workflows on Mastodon

Fediverse-native Mastodon workflows open-source teams and indie builders run through PostSyncer MCP.

### Publish an unlisted release thread with content warning

Prompt: “Turn our v2.4 changelog into a 3-post Mastodon thread with spoiler_text "v2.4 release notes", visibility set to unlisted and language set to en, saved as a draft.”

Tools: `get-brand`, `list-accounts`, `create-post`. Propagates unlisted visibility, content warning and language cleanly to every post in the Mastodon thread.

### Run a multi-choice Fediverse community poll

Prompt: “Draft a Mastodon poll on our instance asking which SDK language to prioritize next, with 4 choices, multiple selections enabled and hide_totals set to true for 3 days.”

Tools: `list-accounts`, `create-post`. Validates Mastodon’s 50-character option cap, emoji counting and 4,320-minute duration before saving cleanly.

### Cross-post open-web announcements to Mastodon & Bluesky

Prompt: “Schedule our open-source launch post to both Bluesky and Mastodon for Thursday at 10 AM, keeping Mastodon’s copy at 500 characters with a spoiler_text banner.”

Tools: `list-accounts`, `get-brand`, `create-post`. One create-post call hits both decentralized networks while preserving each network’s unique settings.

### Reply to Fediverse feedback with media

Prompt: “Sync replies on yesterday’s Mastodon announcement and answer questions about self-hosting with our architecture diagram from the media library.”

Tools: `list-posts`, `sync-comments-from-platforms`, `list-comments`, `list-media`, `create-comment`. Posts media-backed replies directly to the Mastodon thread while forwarding saved alt text.

## Fediverse etiquette built right into your agent’s tools

Mastodon users expect thoughtful publishing: accurate content warnings (spoiler_text), sensitive flags on intense media, explicit ISO language tags so filters work, accessible image alt text and unlisted follow-ups where appropriate. Generic social cross-posters ignore all of those norms.

PostSyncer exposes every Mastodon-native control inside create-post and automatically propagates visibility, spoiler_text, sensitive, language and quoted_status_id across every item of a thread — while carrying up to 420 characters of saved alt text from your PostSyncer media library.

## Polls, quotes and server-version safety

Your agent can create polls with 2 to 4 choices (up to 50 characters each, counting emojis accurately as 1 character), durations from 5 minutes to 43,829 minutes (one month), multiple-choice voting and hidden vote totals. On servers that support quote posts, the agent can also set quoted_status_id and quote_approval_policy (public, followers or nobody).

Because Mastodon 4.6 added media-plus-poll support while older servers reject it, PostSyncer surfaces an explicit error if an older instance refuses a combined post so the agent can immediately adjust.

## Replies, destructive confirmations and honest Mastodon stats

PostSyncer syncs Mastodon replies an hour after publishing, every 6 hours on day one, then daily through day seven (plus sync-comments-from-platforms on demand). Because Mastodon cannot hide replies, hide-comment returns a clear explanation and delete-comment (marked destructive) removes only replies authored by your account.

Analytics via get-analytics-post return favourites (likes), replies (comments), boosts (shares) and quotes, leaving impressions and engagement_rate null in keeping with Mastodon’s privacy-first design.

Related pages: [Mastodon REST API](https://postsyncer.com/mastodon-api), [Mastodon scheduler](https://postsyncer.com/mastodon-scheduler), [MCP server overview](https://postsyncer.com/mcp-social-media).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Does Mastodon MCP work with self-hosted and niche Mastodon instances?

Yes. Connect any Mastodon server domain in PostSyncer or via create-account-connect-link with mastodon_instance, and your AI agent can publish to it immediately.

### Can my AI agent set Mastodon content warnings and visibility scopes?

Yes. Pass visibility (public, unlisted, private or direct), spoiler_text (up to 500 chars), sensitive and language in create-post; they apply across every post in a thread.

### Does Mastodon MCP preserve image alt text?

Yes. Alt text stored on media in your PostSyncer library travels with the image to Mastodon up to 420 characters.

### Can an agent create Mastodon polls over MCP?

Yes. Configure settings.poll with 2–4 choices (≤ 50 chars), duration_minutes (5 to 43,829), and optional multiple: true or hide_totals: true.

### Can my agent hide Mastodon replies?

No. Mastodon does not support hiding replies, so hide-comment returns an error explaining that. Your agent can delete replies written by your own account via delete-comment after confirmation.

### Is Mastodon MCP included on the Free plan?

Yes. Every plan includes the MCP server, Free included, within your plan’s accounts and monthly post allowance.

---

Page: https://postsyncer.com/mastodon-mcp · Updated 2026-11-27
