mcp-slack
Enables Slack integration with tools to list channels, read messages, and post messages using a bot token.
README
mcp-slack
MCP server for Slack integration, built with FastMCP. Provides tools for listing channels, reading messages, and posting to Slack.
Install
pip install -e ".[dev]"
Environment Variables
| Variable | Required | Description |
|---|---|---|
SLACK_BOT_TOKEN |
Yes | Bot User OAuth Token (xoxb-...) |
SLACK_DEFAULT_CHANNEL |
No | Fallback channel for slack_post_message |
Copy .env.example to .env and fill in your values.
Tools
| Tool | Description |
|---|---|
slack_list_channels |
List all channels accessible by the bot |
slack_read_channel(channel, limit?) |
Read last N messages from a channel (default: 20, max: 100) |
slack_post_message(channel, text) |
Send a message to a channel |
The channel parameter accepts either a channel name (without #) or a Slack channel ID.
Slack App Setup
-
Go to api.slack.com/apps and create a new app
-
Under OAuth & Permissions, add the required Bot Token Scopes for the tools you want to use:
Tool Required Bot Scopes slack_list_channelschannels:read,groups:readslack_read_channelchannels:history,groups:historyslack_post_messagechat:writeNote: Private-channel access (
groups:*) and DM scopes are only needed if the bot operates outside public channels. -
Install the app to your workspace
-
Copy the Bot User OAuth Token (
xoxb-...) toSLACK_BOT_TOKEN -
Invite the bot to channels it should access:
/invite @your-bot-name
Troubleshooting: missing_scope Error
If a tool fails with a missing_scope error, it means the bot doesn't have the necessary permissions to perform that action. Check the error message to see which scope is missing, cross-reference it with the table above, and add the missing scope in your Slack App's OAuth & Permissions page. (Remember to reinstall the app to your workspace after changing scopes!)
Usage
Standalone
mcp-slack
Claude Desktop config
{
"mcpServers": {
"slack": {
"command": "mcp-slack",
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-token"
}
}
}
}
Development
pip install -e ".[dev]"
ruff check src/ tests/
ruff format src/ tests/
pytest
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.