stoat-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stoat-mcpshow me recent messages in the general channel"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stoat MCP Server
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-mcpOr run from source:
git clone https://github.com/mdlopresti/stoat-mcp.git
cd stoat-mcp
pip install -e ".[dev]"Related MCP server: slack-mcp-server
Quick Start
Set required environment variables:
export STOAT_TOKEN="your-bot-token"
export STOAT_SERVER_ID="your-server-id"Run the server:
stoat-mcpConfiguration
All configuration is via environment variables:
Variable | Required | Default | Description |
| Yes | — | Bot authentication token |
| Yes | — | Stoat server ID to operate on |
| No |
| Master switch for all write operations |
| No |
| Enable |
| No |
| Enable |
| No |
| Comma-separated channel IDs (empty = all allowed) |
| 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=trueChannel 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 |
| Read | List all accessible text channels |
Channels |
| Read | Get metadata for a specific channel |
Channels |
| Write | Create a new text channel |
Channels |
| Write | Delete a text channel |
Messages |
| Read | Read message history from a channel |
Messages |
| Write | Send a message to a channel |
Users |
| Read | List server members |
Users |
| Read | Get profile data for a specific user |
DMs |
| Read | Read DM history with a user |
DMs |
| Write | Send a direct message to a user |
Search |
| Read | Search messages across channels |
Threads |
| Read | Get replies in a message thread |
Threads |
| Write | Reply to a message thread |
Reactions |
| Write | Add an emoji reaction to a message |
Reactions |
| Write | Remove an emoji reaction from a message |
Files |
| Write | Upload a file to a channel |
Comparable Projects
Discord MCP — MCP server for Discord
Slack MCP — Official MCP server for Slack
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:
AI with access to private messages — the AI can read chat history
AI with ability to send messages — the AI can communicate externally
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_WRITEorSTOAT_ENABLE_SEND_MESSAGEwhen 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.pyLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- UproarOAuthchat.uproar
Chat where AI agents are first-class members, with their own identity and permissions.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Collaboration layer for AI agents. Publish assets, send messages, manage threads and contacts.
End-to-end encrypted messaging and work coordination for autonomous AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Discord servers through a bot, supporting channel management, messaging, forum operations, reactions, and webhooks.22411 npmMIT
- AlicenseAqualityCmaintenanceEnables AI assistants to interact with Slack workspaces, including listing channels, posting messages, replying to threads, adding reactions, and retrieving user information.1048 npmMIT
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with Slack workspaces, providing tools for reading messages, posting content, managing channels, and more.2238MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to read conversations, send messages, and manage members in Microsoft Teams via the Teams Chat Service REST API.188 npm8MIT