The Slack Integration for Claude enables seamless interaction between Claude and Slack workspaces. This integration allows Claude to perform various tasks within Slack, such as posting messages, replying to threads, and managing reactions.
slack_list_channelslimit (number, default: 100, max: 200): Maximum number of channels to return.cursor (string): Pagination cursor for next page.slack_post_messagechannel_id (string): The ID of the channel to post to.text (string): The message text to post.slack_reply_to_threadchannel_id (string): The channel containing the thread.thread_ts (string): Timestamp of the parent message.text (string): The reply text.slack_add_reactionchannel_id (string): The channel containing the message.timestamp (string): Message timestamp to react to.reaction (string): Emoji name without colons.slack_get_channel_historychannel_id (string): The channel ID.limit (number, default: 10): Number of messages to retrieve.slack_get_thread_replieschannel_id (string): The channel containing the thread.thread_ts (string): Timestamp of the parent message.slack_get_userscursor (string): Pagination cursor for next page.limit (number, default: 100, max: 200): Maximum users to return.slack_get_user_profileuser_id (string): The user's ID.Name your app and select your workspace.
Configure Bot Token Scopes:
Navigate to "OAuth & Permissions" and add these scopes:
channels:history: View messages and other content in public channels.channels:read: View basic channel information.chat:write: Send messages as the app.reactions:write: Add emoji reactions to messages.users:read: View users and their basic information.Install App to Workspace:
Save the "Bot User OAuth Token" that starts with xoxb-.
Get your Team ID:
T).Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_BOT_TOKEN",
"-e",
"SLACK_TEAM_ID",
"mcp/slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
If you encounter permission errors, verify that:
1. All required scopes are added to your Slack app.
2. The app is properly installed to your workspace.
3. The tokens and workspace ID are correctly copied to your configuration.
4. The app has been added to the channels it needs to access.
Docker build:
docker build -t mcp/slack -f src/slack/Dockerfile .
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.