MCP Catalogs
Home

mastodon-mcp

by The-Focus-AI·9·Score 38

MCP server for Mastodon social media interaction with toot creation and media attachments.

communicationmediaproductivity
3
Forks
1
Open issues
7 mo ago
Last commit
2d ago
Indexed

Overview

The mastodon-mcp server provides a specialized interface for interacting with the Mastodon social media platform through Model Context Protocol. It enables users to create toots with various visibility settings, attach media files with descriptions, and schedule posts for future publication. The server supports both environment variable and 1Password CLI for secure credential management, demonstrating good security practices.

Try asking AI

After installing, here are 7 things you can ask your AI assistant:

you:Automatically posting content to Mastodon from AI agents
you:Scheduling social media content in advance for consistent posting
you:Managing Mastodon presence with media attachments and alt text
you:Integration with AI workflows to share updates or findings
you:What Mastodon instances are supported?
you:What media types are supported?
you:How are credentials securely managed?

When to choose this

Choose this MCP server if you need to programmatically interact with Mastodon, especially for scheduling posts or managing media attachments with accessibility descriptions.

When NOT to choose this

Don't choose this server if you need to manage multiple accounts or interact with other social media platforms beyond Mastodon, as it's specialized for a single platform.

Tools this server exposes

1 tool extracted from the README
  • mastodon_create_tootcontent (required), visibility (optional), sensitive (optional), spoiler_text (optional), media_file (optional), media_description (optional), scheduled_at (optional)

    Create toots with customizable visibility, content warnings, and media attachments

Comparable tools

social-mcppost-mcpmasto-api-client

Installation

Installation

# Clone the repository
git clone [repository-url]
cd mastodon-mcp

# Install dependencies
pnpm install

# Build the project
pnpm build

# Configuration
export MSTODON_ACCESS_TOKEN="your_mastodon_api_token"
export MASTODON_INSTANCE_URL="https://your.instance.social"  # Optional

# Start the server
pnpm start

Claude Desktop Configuration

Add to Claude Desktop config.json:

{
  "mcpServers": {
    "mastodon": {
      "command": "node",
      "args": ["path/to/mastodon-mcp/dist/mcp-server.js"]
    }
  }
}

FAQ

What Mastodon instances are supported?
The server defaults to https://floss.social but can be configured to work with any Mastodon instance by setting the MASTODON_INSTANCE_URL environment variable.
What media types are supported?
The server supports images, videos, and audio files for attachment to toots.
How are credentials securely managed?
Credentials can be provided via environment variables or retrieved from 1Password CLI. No credentials are hardcoded in the codebase.

Compare mastodon-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.