Claude Code

Slack integration for Claude Code using MCP (Model Context Protocol). Enable your team to use Claude Code collaboratively through Slack.
  • javascript

9

GitHub Stars

javascript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "engineers-hub-ltd-in-house-project-slack-claude-code-integration": {
      "command": "npm",
      "args": [
        "run",
        "start",
        "mcp"
      ],
      "env": {
        "DEBUG": "true",
        "CLAUDE_PATH": "claude",
        "PROJECT_PATH": "/home/yusuke/your-project",
        "SLACK_APP_TOKEN": "xapp-your-app-token-here",
        "SLACK_BOT_TOKEN": "xoxb-your-bot-token-here",
        "SLACK_SIGNING_SECRET": "your-signing-secret-here"
      }
    }
  }
}

You can run Claude Code through a dedicated MCP server, wrapping the Claude Code CLI so you can interact with it from Slack via MCP. This setup lets your team issue Claude Code commands through Slack channels, direct messages, or slash commands, while the MCP server handles project context, authentication, and command execution.

How to use

Use the MCP client to connect to the Claude Code MCP Server and issue commands that run Claude Code in a specific project context. You can call Claude Code from a Slack channel by mentioning the bot, send private tasks via direct messages, or trigger quick actions with a slash command. Include an optional --project path to switch projects on the fly and keep your workflow centralized in Slack.

How to install

Prerequisites you need before starting: Node.js 22 or newer (recommended) or Node.js 20+, npm or yarn, basic TypeScript knowledge for development, and the Claude Code CLI installed. You also need Slack workspace admin access to configure the Slack app and, optionally, Docker and Docker Compose for production deployment.

# 1) Install the Claude Code CLI if not already installed
npm install -g @anthropic-ai/claude-code

# 2) Clone the project repository (or use an existing local copy)
git clone https://github.com/your-org/slack-claude-code-integration.git
cd slack-claude-code-integration

# 3) Install dependencies for the MCP server and Slack bot
npm install

# 4) Build TypeScript sources
npm run build

# 5) Start the MCP server (stdio mode) and the Slack bot in separate processes
npm run start:mcp
npm run start:bot

# 6) Optional: run in development mode with hot reload
npm run dev

# 7) If using Docker for production, build and start with Docker
npm run docker:build
npm run docker:up
"

Additional sections

Configuration and security considerations are described below. You will use a shared environment for multiple projects, while restricting access to specific users and channels. The MCP server wraps Claude Code so commands run in a controlled, context-aware environment and results are returned to Slack.

# Example: .env.sample content used by the MCP server setup
SLACK_BOT_TOKEN=xoxb-your-bot-token-here
SLACK_SIGNING_SECRET=your-signing-secret-here
SLACK_APP_TOKEN=xapp-your-app-token-here

CLAUDE_PATH=claude
PROJECT_PATH=/home/yusuke/your-project
DEBUG=true

Available tools

claude_command

Executes a Claude Code command within a specified project directory via the MCP server

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational