Slack MCP Server
Provides tools for interacting with Slack, including sending messages, searching messages, listing channels and users, and retrieving message history and thread replies.
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., "@Slack MCP Serversend a message to #general saying hello"
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.
Slack MCP Server
A Model Context Protocol (MCP) server for Slack integration, allowing Claude to interact with your Slack workspace. This server runs exclusively in Docker/Podman containers.
Features
Send messages to channels or users
Send replies to message threads
Search for messages across the workspace
List all channels in workspace
Get channel message history
Get replies from message threads
List all users in workspace
Related MCP server: MCP Server for Slack
Prerequisites
Docker or Podman installed
A Slack Bot Token (see Setup section)
Setup
1. Create a Slack App
Click "Create New App" → "From scratch"
Give it a name and select your workspace
2. Configure Bot Token Scopes
Go to OAuth & Permissions and add these Bot Token Scopes:
channels:readchat:writeusers:readchannels:historygroups:readgroups:history
3. Install the App
Click "Install to Workspace"
Copy the Bot User OAuth Token (starts with
xoxb-)
4. Set Up Environment Variable
Create a .env file in the project root:
SLACK_BOT_TOKEN=xoxb-your-bot-token-hereRunning with Docker
Build the Image
docker build -t slack-mcp-server .Run the Container
docker run -i \
-e SLACK_BOT_TOKEN=xoxb-your-bot-token-here \
slack-mcp-serverUsing docker-compose
# Set your token in .env file first
docker-compose upRunning with Podman
Build the Image
podman build -t slack-mcp-server .Run the Container
podman run -i \
-e SLACK_BOT_TOKEN=xoxb-your-bot-token-here \
slack-mcp-serverUsing podman-compose
# Set your token in .env file first
podman-compose upConfiguration with Claude Code
Add this to your Claude Code MCP settings file:
Docker Configuration
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_BOT_TOKEN=xoxb-your-actual-bot-token-from-step-3",
"slack-mcp-server"
]
}
}
}Podman Configuration
{
"mcpServers": {
"slack": {
"command": "podman",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_BOT_TOKEN=xoxb-your-actual-bot-token-from-step-3",
"slack-mcp-server"
]
}
}
}Alternative: Using Environment File
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--env-file",
"/absolute/path/to/.env",
"slack-mcp-server"
]
}
}
}Available Tools
The server communicates via stdio and provides these tools:
send_message: Send a message to a channel or usersend_thread_reply: Send a reply to a message threadsearch_messages: Search for messages across the workspace (supports Slack search syntax)list_channels: List all workspace channelsget_channel_history: Get recent messages from a channelget_thread_replies: Get all replies from a message threadlist_users: List all workspace users
Search Examples
The search_messages tool supports Slack's powerful search syntax:
"error message"- Search for exact phrasefrom:@username- Messages from specific userin:#channel- Messages in specific channelafter:2024-01-01- Messages after datehas:link- Messages containing linksCombine:
from:@john in:#general error- Complex queries
Development
Build and Test Locally
# Build the image
docker build -t slack-mcp-server:dev .
# Run tests
docker run --rm slack-mcp-server:dev npm testShell Access for Debugging
docker run -it --rm \
-e SLACK_BOT_TOKEN=xoxb-your-token \
--entrypoint /bin/sh \
slack-mcp-serverSecurity Features
Multi-stage build for minimal image size
Non-root user execution
Read-only root filesystem
No new privileges
Resource limits configured in docker-compose
Minimal Alpine Linux base image
Troubleshooting
Container exits immediately
Make sure you're running with -i (interactive) flag for stdin communication.
Token not found
Verify your SLACK_BOT_TOKEN is correctly set in the environment or .env file.
Permission errors
The container runs as a non-root user (nodejs). Ensure any mounted volumes have appropriate permissions.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/jerrelblankenship/jb-slack-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server