MCP server for Slack — read/write messages, manage threads, and react to messages.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add slack --env SLACK_BOT_TOKEN='<SLACK_BOT_TOKEN>' -- npx -y slack-workspace-mcp-server~/.codex/config.toml
[mcp_servers.slack]
command = "npx"
args = ["-y", "slack-workspace-mcp-server"]
env = { SLACK_BOT_TOKEN = "<SLACK_BOT_TOKEN>" }
# codex mcp add slack --env SLACK_BOT_TOKEN='<SLACK_BOT_TOKEN>' -- npx -y slack-workspace-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"slack-workspace-mcp-server"
],
"env": {
"SLACK_BOT_TOKEN": "<SLACK_BOT_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"slack": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"slack-workspace-mcp-server"
],
"env": {
"SLACK_BOT_TOKEN": "<SLACK_BOT_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"slack-workspace-mcp-server"
],
"env": {
"SLACK_BOT_TOKEN": "<SLACK_BOT_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"slack-workspace-mcp-server"
],
"env": {
"SLACK_BOT_TOKEN": "<SLACK_BOT_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"slack-workspace-mcp-server"
],
"env": {
"SLACK_BOT_TOKEN": "<SLACK_BOT_TOKEN>"
}
}
}
}Environment variables
SLACK_BOT_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.