How to Use the Mastodon MCP in Claude Code
Run Mastodon from your terminal with Claude Code to automate posts, monitor trends, and manage your Fedi account via CLI.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Mastodon MCP to Claude Code
Create your Vinkius account to connect Mastodon to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Script your Mastodon interactions from the terminal.
Claude Code brings headless automation to your Fedi presence. This MCP Server lets your CLI agent check trending topics using `get_trending_tags` and search for specific discussions with `search` without needing a GUI or browser. You can pipe terminal outputs directly into `post_status` to share build reports, system alerts, or project updates. It turns your social account into an extension of your command-line environment.
Manage your Mastodon MCP Server from the terminal.
Managing blocks and mutes is faster when automated. Use Claude Code to process lists of accounts and run `block_account` or `mute_account` in bulk based on criteria you define in the terminal. You can also keep track of server health using `check_health` and view instance rules with `get_instance_rules`. It is a powerful way for administrators and power users to keep tabs on their home instance.
Automated content curation and bookmarking.
Use your terminal agent to scrape relevant industry news. Claude Code can pull your feed using `get_home_timeline` or target specific hashtags with `get_tag_timeline` to find high-value content. Once it identifies a post worth saving, it executes `bookmark_status` or `favourite_status` to flag it for your review. It makes keeping up with the Fedi efficient and completely scriptable.
Set up Mastodon MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seemastodon-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Mastodon transactions." It will automatically discover and invoke the available Mastodon tools.
claude mcp add --transport http mastodon-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Mastodon MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Mastodon MCP today
We host it, we monitor it, we maintain it. You just paste one token.