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.
AnythingMCP is listed in Claude's connector directory: add it to Claude in one click (opens in a new tab), then sign in and choose which MCP servers Claude may use.
Summary
Read & post on any Mastodon instance from any AI agent. 10 tools, Bearer token auth.
Try asking
Example prompts for Mastodon
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Mastodon, paste your credentials, mint an MCP API key — done. No Docker, no
git clone, no local server.
Mastodon + Claude
Read & post on any Mastodon instance from any AI agent. 10 tools, Bearer token auth.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
MASTODON_INSTANCE_URL, MASTODON_ACCESS_TOKEN
Step 1 — Get credentials
This connector wraps the Mastodon REST API (any instance — set baseUrl to your instance).
Setup:
- Pick your instance (e.g.
https://mastodon.social,https://fosstodon.org, your self-hosted one). - Log in → Preferences → Development → New application.
- Name it (e.g. 'mcp'). Scopes:
read,write,follow,push— tick whatever your use case needs (don't over-grant). - Save → copy the Your access token value (shown only once). This is a personal access token tied to your account.
- Set
MASTODON_INSTANCE_URL(e.g.https://mastodon.social) andMASTODON_ACCESS_TOKEN.
Authentication: Authorization: Bearer ${MASTODON_ACCESS_TOKEN} on every request.
…(continued in the in-app connector instructions)
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Claude
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Recommended path — works on claude.ai web without editing any config file.
- In Claude, open Customize → Connectors.
- Click +, then Add custom connector.
- Enter a name, e.g.
Mastodon, and the remote MCP server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID, then click Add. - Click Connect and sign in to AnythingMCP (OAuth) to allow access.
All tools below appear in your chat — start typing prompts.
Available tools
| Tool | What it does |
|---|---|
mastodon_verify_credentials | Return the authenticated account: id, username, acct (full handle), display_name, note, avatar, statuses_count, followers_count, following_c |
mastodon_get_account | Fetch a public account by ID |
mastodon_account_statuses | Get a user's recent statuses (toots) |
mastodon_home_timeline | Get the authenticated user's home timeline (their follows) |
mastodon_public_timeline | Get the public timeline |
mastodon_hashtag_timeline | Get statuses tagged with a hashtag (no # prefix) |
mastodon_search | Full-text search across accounts, statuses and hashtags |
mastodon_get_status | Fetch a single status by ID |
mastodon_post_status | Post a new status (toot) |
mastodon_delete_status | Delete one of your own statuses |
FAQ
Does it work with Claude Code as well as Claude Desktop? Yes — point both at https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID.
Next steps
Was this guide helpful?