Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI assistants to read and write messages, manage channels, and interact with users on the Stoat chat platform.

README.md

Stoat MCP Server

![PyPI version](https://pypi.org/project/stoat-mcp/) ![Python versions](https://pypi.org/project/stoat-mcp/) ![CI](https://github.com/mdlopresti/stoat-mcp/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT)

A Model Context Protocol (MCP) server for the Stoat chat platform. Gives AI assistants structured access to Stoat servers, channels, messages, and users.

Built with FastMCP and stoat.py.

Installation

pip install stoat-mcp

Or run from source:

git clone https://github.com/mdlopresti/stoat-mcp.git
cd stoat-mcp
pip install -e ".[dev]"

Quick Start

Set required environment variables:

export STOAT_TOKEN="your-bot-token"
export STOAT_SERVER_ID="your-server-id"

Run the server:

stoat-mcp

Configuration

All configuration is via environment variables:

| Variable | Required | Default | Description | |----------|:--------:|---------|-------------| | STOAT_TOKEN | Yes | — | Bot authentication token | | STOAT_SERVER_ID | Yes | — | Stoat server ID to operate on | | STOAT_ENABLE_WRITE | No | false | Master switch for all write operations | | STOAT_ENABLE_SEND_MESSAGE | No | false | Enable send_message tool | | STOAT_ENABLE_SEND_DM | No | false | Enable send_direct_message tool | | STOAT_CHANNEL_ALLOWLIST | No | "" | Comma-separated channel IDs (empty = all allowed) | | STOAT_CHANNEL_BLOCKLIST | No | "" | Comma-separated channel IDs (empty = none blocked) |

Write Operations

All write operations (sending messages, creating channels, etc.) are disabled by default. To enable them:

# Enable all write operations
export STOAT_ENABLE_WRITE=true

# Or enable specific operations
export STOAT_ENABLE_SEND_MESSAGE=true
export STOAT_ENABLE_SEND_DM=true

Channel Filtering

Restrict which channels the MCP server can access:

# Only allow these channels (empty = all channels)
export STOAT_CHANNEL_ALLOWLIST="channel-id-1,channel-id-2"

# Block these channels (applied before allowlist)
export STOAT_CHANNEL_BLOCKLIST="private-channel-id"

The blocklist takes precedence: a channel in both lists is blocked.

MCP Client Configuration

Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "stoat": {
      "command": "stoat-mcp",
      "env": {
        "STOAT_TOKEN": "your-bot-token",
        "STOAT_SERVER_ID": "your-server-id"
      }
    }
  }
}

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "stoat": {
      "command": "stoat-mcp",
      "env": {
        "STOAT_TOKEN": "your-bot-token",
        "STOAT_SERVER_ID": "your-server-id"
      }
    }
  }
}

Available Tools

| Category | Tool | Tier | Description | |----------|------|------|-------------| | Channels | list_channels | Read | List all accessible text channels | | Channels | get_channel_info | Read | Get metadata for a specific channel | | Channels | create_channel | Write | Create a new text channel | | Channels | delete_channel | Write | Delete a text channel | | Messages | get_channel_messages | Read | Read message history from a channel | | Messages | send_message | Write | Send a message to a channel | | Users | list_users | Read | List server members | | Users | get_user_info | Read | Get profile data for a specific user | | DMs | get_direct_messages | Read | Read DM history with a user | | DMs | send_direct_message | Write | Send a direct message to a user | | Search | search_messages | Read | Search messages across channels | | Threads | get_thread_replies | Read | Get replies in a message thread | | Threads | reply_to_thread | Write | Reply to a message thread | | Reactions | add_reaction | Write | Add an emoji reaction to a message | | Reactions | remove_reaction | Write | Remove an emoji reaction from a message | | Files | upload_file | Write | Upload a file to a channel |

Comparable Projects

stoat-mcp is the first MCP server for the Stoat (formerly Revolt) platform.

Security

The Lethal Trifecta

This MCP server creates a combination that requires careful consideration:

  1. AI with access to private messages — the AI can read chat history
  2. AI with ability to send messages — the AI can communicate externally
  3. User-controlled message content — messages may contain prompt injection attempts

This combination means a malicious message in a channel could potentially instruct the AI to exfiltrate private data from other channels by sending it somewhere attacker-controlled.

Mitigations

  • Write operations are disabled by default. Only enable STOAT_ENABLE_WRITE or STOAT_ENABLE_SEND_MESSAGE when you specifically need the AI to send messages.
  • Use the channel blocklist to prevent the AI from reading sensitive channels: STOAT_CHANNEL_BLOCKLIST="private-channel,admin-channel"
  • Use the channel allowlist to restrict the AI to only specific channels: STOAT_CHANNEL_ALLOWLIST="ai-channel,support-channel"
  • Review AI actions before approving message sends in your MCP client.

Recommendations

  • Start with read-only access and only enable writes when needed
  • Use the most restrictive channel filtering that meets your needs
  • Never put secrets or credentials in channels the AI can read
  • Monitor AI-sent messages for unexpected behavior

Development

# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Run specific test file
pytest tests/test_config.py

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Communication servers.