Home / Integrations / Slack
Slack
Connect Claude Code to Slack via MCP to receive coding requests, post updates, and share results directly in your team channels.
Setup
- 1.Create a Slack App and get a Bot TokenGo to api.slack.com/apps, create a new app, add the required scopes (channels:read, chat:write, users:read), and install it to your workspace. Copy the Bot User OAuth Token.
- 2.Configure the Slack MCP serverAdd the Slack MCP server to Claude Code. This gives the agent tools to read messages, post replies, and interact with channels.
claude mcp add slack -- npx -y @anthropic-ai/slack-mcp-server # Set SLACK_BOT_TOKEN when prompted - 3.Test by reading a channelVerify the integration works by asking Claude Code to read recent messages from a test channel.
claude "read the last 5 messages from #dev-general on Slack"
Features
- +Reads messages from Slack channels and threads to understand context
- +Posts progress updates and code snippets to specified channels
- +Shares PR links and deployment status with the team automatically
- +Reads bug reports posted in Slack and starts investigating immediately
- +Searches Slack message history for past decisions and context
Use Cases
A teammate posts a bug report in Slack. You ask Claude Code to read the thread, investigate the reported issue in your codebase, fix it, and post the PR link back in the thread.
While Claude Code works on a feature, ask it to post progress updates to a Slack channel. The team stays informed without you typing manual updates.
Before implementing a feature, ask Claude Code to search Slack for past discussions about the topic. It finds relevant threads and summarizes the decisions that were made, giving you context before you start coding.
How Claude Code talks to Slack
Claude Code connects to Slack through an MCP server that wraps the Slack Web API. Once configured, Claude Code can read channel messages, post replies, search message history, and react to messages. This turns Slack from a communication tool into a trigger point for AI-assisted development.
The integration is most powerful when combined with other tools. For example, a teammate reports a bug in Slack → Claude Code reads the report → investigates the codebase → pushes a fix → posts the PR link back in the Slack thread. The entire loop happens without context switching.
Example: Slack-driven bug fix
Security and permissions
The Slack MCP server only accesses channels and conversations that your bot token has been granted access to. It runs locally on your machine and communicates directly with Slack's API. Review the scopes carefully and only grant the minimum permissions needed for your workflow.
Can Claude Code send DMs on Slack?+
Does Claude Code monitor Slack channels in real time?+
Can I restrict which channels Claude Code accesses?+
Related tools
Related terms
Master Claude Code in days, not months
37 hands-on lessons from beginner to CI/CD automation. Module 1 is free.
START FREE →