Claude Code Slack Channel
FreeNot checkedMCP server that connects Claude Code to Slack, allowing two-way communication via Slack Socket Mode without tunnels.
About
MCP server that connects Claude Code to Slack, allowing two-way communication via Slack Socket Mode without tunnels.
README
Connect Claude Code to your Slack workspace using the Model Context Protocol (MCP). This server runs a Slack App in Socket Mode that routes incoming messages from Slack directly into your local Claude Code session, and gives Claude the ability to securely reply back!
Features
- Two-Way Communication: Send messages from Slack to Claude Code, and allow Claude Code to natively reply using an MCP tool (
send_slack_message). - Zero Configuration Tunnels: Uses Slack Socket Mode, meaning no
ngrokor public IP addresses are required. Runs completely locally! - Private Channel Support: Fully supports routing messages from private Slack channels.
Setup Instructions
1. Create a Slack App
- Go to Slack API Apps and click Create New App > From scratch.
- Go to Socket Mode (left sidebar) and toggle it On.
- Generate an App-Level Token with the
connections:writescope. (Starts withxapp-). - Go to OAuth & Permissions (left sidebar), scroll to Scopes > Bot Token Scopes, and add the
channels:history,chat:write, andgroups:historyscopes. - Go to Event Subscriptions (left sidebar), toggle Enable Events to On, and subscribe to
message.channelsandmessage.groupsunder "Subscribe to bot events". - Important: Scroll to the bottom and click Save Changes.
- Go to Install App and install it into your workspace to get your Bot User OAuth Token (Starts with
xoxb-).
2. Configure Claude Code
You can add this MCP server to your global Claude Code configuration (~/.claude.json) or to a project-specific .claude.json configuration.
Run npm install in this directory to install the @slack/bolt and tsx dependencies. Then, add the following to your mcpServers block, replacing the path and tokens with your actual values:
{
"mcpServers": {
"slack-channel": {
"type": "stdio",
"command": "npx",
"args": [
"tsx",
"/path/to/this/repository/webhook.ts"
],
"env": {
"SLACK_APP_TOKEN": "xapp-...",
"SLACK_BOT_TOKEN": "xoxb-...",
"SLACK_CHANNEL_ID": "C0..." // Optional: add a channel ID here so it only listens to one specific channel!
}
}
}
}
3. Usage
- Simply restart Claude Code. The server will initialize in the background and connect to Slack.
- Invite your bot to any channel in Slack using
/invite @YourBotName. - Send a message in that channel, and it will seamlessly appear in Claude Code as context!
- You can ask Claude Code directly to "Reply to that Slack message" and it will autonomously use the
send_slack_messagetool to post back.
⚠️ Architecture Caveat: Global vs. Local Configuration
Slack's Socket Mode allows multiple WebSocket connections using the identical App Token, and load-balances (randomizes) incoming messages across all connected clients.
Because of this:
- Global Configuration (
~/.claude.json): If you have multiple Terminal windows open running Claude Code simultaneously, each window spawns its own MCP server. When you send a Slack message, Slack will randomly route it to only one of your active terminals. - Local Configuration (
./.claude.json): If you only want Slack messages to route uniquely to a specific project workspace, do not configure this server globally. Instead, configure themcpServersblock in a local.claude.jsonfile inside that specific project folder so the webhook server is only spawned when you are actively working in that directory.
Troubleshooting
If messages aren't arriving:
- Ensure you have invited the bot to the channel.
- Ensure you clicked the yellow "Reinstall to Workspace" banner in Slack after changing event scopes.
- Check the
slack-debug.logfile generated in the root of this repository.
Installing Claude Code Slack Channel
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/AppGambitStudio/Claude-Code-Slack-ChannelFAQ
Is Claude Code Slack Channel MCP free?
Yes, Claude Code Slack Channel MCP is free — one-click install via Unyly at no cost.
Does Claude Code Slack Channel need an API key?
No, Claude Code Slack Channel runs without API keys or environment variables.
Is Claude Code Slack Channel hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Claude Code Slack Channel in Claude Desktop, Claude Code or Cursor?
Open Claude Code Slack Channel on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Gmail
Read, send and search emails from Claude
by GoogleSlack
Send, search and summarize Slack messages
by SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Klavis AI
Open Source MCP Infra. Hosted MCP servers and MCP clients on Slack and Discord.
Work90210/APIFold
Turn any REST API into a hosted MCP server. 18 free public servers (GitHub, Stripe, Slack, OpenAI, Notion, and more) — no setup required, bring your own API key
by Work90210arikusi/deepseek-mcp-server
MCP server for DeepSeek AI with chat, reasoning, multi-turn sessions, function calling, thinking mode, and cost tracking.
by arikusihashgraph-online/hashnet-mcp-js
MCP server for the Registry Broker. Discover, register, and chat with AI agents on the Hashgraph network.
by hashgraph-onlineprofullstack/mcp-server
A comprehensive MCP server aggregating 20+ tools including SEO optimization, document conversion, domain lookup, email validation, QR generation, weather data,
by profullstackWayStation-ai/mcp
Seamlessly and securely connect Claude Desktop and other MCP hosts to your favorite apps (Notion, Slack, Monday, Airtable, etc.). Takes less than 90 secs.
by waystation-aiCompare Claude Code Slack Channel with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All communication MCPs
