slack-mcp-server
Overview
slack-mcp-server is a server application designed to enable Claude to interact with Slack workspaces through the Slack API.
To use slack-mcp-server, build the Docker image and run it with your Slack bot token and team ID as environment variables.
- Seamless integration with Slack API - Enables Claude to perform actions within Slack workspaces - Easy to set up using Docker
- Automating responses in Slack channels
- Integrating AI functionalities into Slack for enhanced collaboration
- Managing Slack workspace interactions through a custom bot
Add to your AI client
Use these steps to connect slack-mcp-server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"slack-mcp-server-anycontext-ai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-mcp-server-anycontext-ai"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"slack-mcp-server-anycontext-ai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-mcp-server-anycontext-ai"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"slack-mcp-server-anycontext-ai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-mcp-server-anycontext-ai"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"slack-mcp-server-anycontext-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-mcp-server-anycontext-ai"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"slack-mcp-server-anycontext-ai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-mcp-server-anycontext-ai"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"slack-mcp-server-anycontext-ai": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-mcp-server-anycontext-ai"
]
}
}
}FAQ
What is required to run slack-mcp-server?
You need Docker installed and a valid Slack bot token and team ID.
Can I customize the bot's behavior?
Yes! You can modify the server code to customize how Claude interacts with Slack.
Is slack-mcp-server open source?
Yes! The project is available on GitHub for anyone to use and contribute.