Mastodon is a federated network: each server (instance) runs the same open REST API. To post you create an application + access token in Preferences › Development on your instance, then POST to /api/v1/statuses. PostWire does this for you across any instance — you just supply the instance URL and token once.
No central approval, no OAuth audit. Connect and post immediately.
PostWire's Smart Distribute turns a single prompt (plus optional media) into the best native post for every network — never the same text everywhere, which every algorithm penalizes. For Mastodon it writes CamelCase hashtags (for screen-reader accessibility) and alt text for any image, matching Fediverse norms, while it simultaneously reframes the same idea for TikTok, YouTube, X, LinkedIn and the rest. AI generation is included free on every plan (you pay for brands, not per post) and is one MCP tool (generate_posts) or one REST call (POST /api/generate).
Create the token at your-instance › Preferences › Development › New application with the write:statuses scope. PostWire stores it encrypted and uses it only to post. You can also connect from the dashboard without writing code.
curl -X POST https://postwire.io/api/connect \
-H "Authorization: Bearer $POSTWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"mastodon","credentials":{"instance_url":"https://mastodon.social","access_token":"your_access_token"}}'
Once connected, publishing is a single request. Add more networks by putting more strings in platforms — same payload, one call.
curl -X POST https://postwire.io/api/post \
-H "Authorization: Bearer $POSTWIRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platforms":["mastodon"],"text":"Hello from PostWire 👋"}'
Response: {"results":[{"ok":true,"platform":"mastodon", ...}]}
PostWire ships a first-class MCP server — not docs-only. Add it to any MCP client (Claude, Cursor, your own agent):
{
"mcpServers": {
"postwire": {
"command": "npx",
"args": ["-y", "postwire-mcp"],
"env": { "POSTWIRE_API_KEY": "pw_live_xxx" }
}
}
}
Then the agent just calls the tool — no HTTP plumbing:
{
"name": "post_to_social",
"arguments": { "platforms": ["mastodon"], "text": "Shipped today 🚀" }
}
| Direct integration | PostWire | |
|---|---|---|
| Setup | Implement Mastodon's API + auth | Connect once |
| Credential storage | You secure it | Encrypted (AES-256-GCM) |
| AI agent support | Build your own tool | MCP tool out of the box |
| Other networks | One integration each | 9 networks, one API |
| Plan | Price | Brands |
|---|---|---|
| Free | $0 | 1 brand · 30 posts/mo |
| Starter | $9 | 3 brands · 300/mo |
| Pro | $29 | 10 brands · 2,000/mo |
| Agency | $99 | 50 brands |
| Scale | $299 | 200 brands |
Running 50 brands on Ayrshare costs roughly $779 — and its MCP is docs-only, so an agent can't actually post. See PostWire vs Ayrshare.
Connect Mastodon — free →