Federated social network
## Mastodon MCP Server: Federated Social Network The **Mastodon MCP Server** integrates the decentralized, federated social network directly into Google Antigravity, enabling AI assistants to post toots, manage follows, and interact with the Fediverse programmatically. This integration brings open-source social networking to your development workflow. ### Why Mastodon MCP? - **Federated Network**: Connect to any Mastodon instance in the decentralized Fediverse - **Open Source**: Built on open protocols with community-driven development - **No Algorithms**: Chronological timeline without manipulative recommendation algorithms - **Privacy Focused**: Strong privacy controls and content warnings support - **Instance Choice**: Join communities aligned with your interests and values ### Key Features #### 1. Post Creation ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Post a toot about our open source project release with appropriate content warnings" }], tools=[{ "name": "mastodon_toot", "description": "Create Mastodon posts" }] ) ``` #### 2. Timeline Access ```python # Get timeline response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get my home timeline and show me posts about Rust programming" }], tools=[{"name": "mastodon_timeline", "description": "Access timelines"}] ) ``` #### 3. Follow Management ```python # Manage follows response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Find and follow developers on fosstodon.org who post about Linux" }], tools=[{"name": "mastodon_follows", "description": "Manage follows"}] ) ``` #### 4. Notifications ```python # Check notifications response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get my recent notifications and show me any boosts or favorites" }], tools=[{"name": "mastodon_notifications", "description": "Get notifications"}] ) ``` ### Configuration ```json { "mcpServers": { "mastodon": { "command": "npx", "args": ["-y", "@anthropic/mcp-mastodon"], "env": { "MASTODON_INSTANCE": "https://mastodon.social", "MASTODON_ACCESS_TOKEN": "your-access-token" } } } } ``` ### Use Cases **Open Source Community**: Engage with open source communities across the Fediverse. **Developer Outreach**: Share project updates with tech-focused Mastodon communities. **Multi-Instance Presence**: Manage presence across different Mastodon instances. **Community Building**: Foster community engagement on federated social networks. The Mastodon MCP Server brings federated social networking directly into your development workflow, enabling open and decentralized social automation.
{
"mcpServers": {
"mastodon": {
"mcpServers": {
"mastodon": {
"env": {
"MASTODON_TOKEN": "YOUR_TOKEN",
"MASTODON_INSTANCE": "https://mastodon.social"
},
"args": [
"-y",
"crosspost-mcp"
],
"command": "npx"
}
}
}
}
}