mcp-slack
Provides tools for listing channels, reading messages, and posting messages to Slack using a bot token.
Click on "Install 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., "@mcp-slackRead last 20 messages from #announcements"
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.
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]"Related MCP server: Slack MCP Server
Environment Variables
Variable | Required | Description |
| Yes | Bot User OAuth Token ( |
| No | Fallback channel for |
Copy .env.example to .env and fill in your values.
Tools
Tool | Description |
| List all channels accessible by the bot |
| Read last N messages from a channel (default: 20, max: 100) |
| 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_TOKENInvite 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-slackClaude 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/
pytestLicense
MIT
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/antonio-mello-ai/mcp-slack'
If you have feedback or need assistance with the MCP directory API, please join our Discord server