Mastodon MCP server for AI agents
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.
PostSyncer MCP server
https:// postsyncer.com/ mcp- Works across mastodon.social, fosstodon.org and any self-hosted Mastodon domain
- Thread-wide visibility, spoiler_text content warnings, sensitive media flags and language tags
- Multi-choice polls, quote posts, media alt text (up to 420 chars) and boost/favourite stats
- Cancel anytime
- Unlimited posts on paid plans
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-workspacesHalden Coffee (#4815)
- list-accountsMastodon @halden@mastodon.social (#16246)
- get-brandLoaded Halden Coffee voice
- list-mediaFound espresso-shot.jpg (#5125) with alt text
- create-postScheduled 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.
01 Quick start
Connect Mastodon to your AI agent in three steps
- 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.
02 MCP tools
MCP tools for Mastodon
Verified PostSyncer MCP tools for Mastodon — giving AI agents native Fediverse publishing, poll validation, reply handling and boost metrics.
| Tool | Permission | What it does on Mastodon |
|---|---|---|
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-postdestructive | posts:delete | 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. |
03 Prompts and workflows
What to ask your agent on Mastodon
Fediverse-native Mastodon workflows open-source teams and indie builders run through PostSyncer MCP.
Publish an unlisted release thread with content warning
“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.”
get-brandlist-accountscreate-postPropagates unlisted visibility, content warning and language cleanly to every post in the Mastodon thread.
Run a multi-choice Fediverse community poll
“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.”
list-accountscreate-postValidates Mastodon’s 50-character option cap, emoji counting and 4,320-minute duration before saving cleanly.
Cross-post open-web announcements to Mastodon & Bluesky
“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.”
list-accountsget-brandcreate-postOne
create-postcall hits both decentralized networks while preserving each network’s unique settings.Reply to Fediverse feedback with media
“Sync replies on yesterday’s Mastodon announcement and answer questions about self-hosting with our architecture diagram from the media library.”
list-postssync-comments-from-platformslist-commentslist-mediacreate-commentPosts 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.
Direct REST API
Posting to Mastodon from CI/CD or backend code? Use the REST API
Call https://postsyncer.com/api/v1 directly with the same federated Mastodon instance support, threads, polls and signed webhooks.
REST API base URL
https:// postsyncer.com/ api/ v1Calendar and team review
Every agent post lands on your Mastodon calendar
Drafts and scheduled posts created through MCP show up in PostSyncer with full Mastodon previews, approval workflows and team notes. If you want a person to review first, leave posts:schedule and posts:publish off the agent's key: it saves drafts, and a schedule or publish call is refused.
AI clients
Connect Mastodon to the AI tool you use
Every client reaches the same server at https://postsyncer.com/mcp. Each page has that client’s exact setup steps.
- ChatGPTPlugin directory
- ClaudeDirectory plugin
- Claude CodeTerminal
- Claude DesktopDirectory plugin
- Grok BotCustom connector
- OpenClawCommand line
- CursorInstall link
- OpenBotCustom server
- CodexTerminal
- GrokCustom connector
- Gemini CLITerminal
- AntigravityConfig file
- Any MCP clientThe server address, OAuth and API key options
claude mcp add --transport http postsyncer https://postsyncer.com/mcpLimits and plans
What each plan allows
The Mastodon MCP server is on every plan, Free included. Posts created by your AI agent share your plan’s allowance and 60 requests a minute rate limit.
| 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.
401The API key is missing, wrong or past its end date.403The key lacks the resource:action permission, or the plan limit was reached (plan_limit_reached).422A field failed validation or the network’s rules refused a file, setting or text length.429Too many requests: more than 60 in a minute across your user’s keys, API and MCP together.
Docs
Read more in the docs
- Mastodon platform guideExact Mastodon settings, limits and API behavior
- MCP server overviewStreamable HTTP transport, OAuth and API key sign-in
- Connect your MCP clientSetup commands for ChatGPT, Claude, Claude Code, Cursor and Codex
- MCP tools referenceEvery tool name, argument and required permission
- Agent usage guideRecommended call order and safety rules
All 12 networks
Explore every platform MCP server on PostSyncer
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.
Publish Fediverse-native Mastodon threads from your AI client.
Connect https://postsyncer.com/mcp and start scheduling Mastodon posts on the Free plan today.
- No card for free
- Cancel anytime
- Unlimited posts on paid plans