cd ~
git clone https://github.com/jtalk22/slack-mcp-server.git
# or if already exists:
cd ~/slack-mcp-server
npm install
tmpdir="$(mktemp -d)"
cd "$tmpdir"
npx -y @jtalk22/slack-mcp --version
npx -y @jtalk22/slack-mcp --help
npx -y @jtalk22/slack-mcp --doctor
Expected:
--version and --help succeed.--doctor exits with one clear status:
0 ready1 missing credentials2 invalid/expired credentials3 connectivity/runtime issue--status is read-only and never performs Chrome extraction.Option A: Setup Wizard (recommended)
npx -y @jtalk22/slack-mcp --setup
Option B: Automatic Extraction (repo clone workflow)
npm run tokens:auto
Option C: Manual Extraction
d and copy its value (starts with xoxd-)JSON.parse(localStorage.localConfig_v2).teams[Object.keys(JSON.parse(localStorage.localConfig_v2).teams)[0]].token
xoxc-)npm run tokens:refresh
And paste both values when prompted.
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"slack": {
"command": "/opt/homebrew/bin/node",
"args": ["/Users/YOUR_USERNAME/slack-mcp-server/src/server.js"],
"env": {
"SLACK_TOKEN": "xoxc-your-token-here",
"SLACK_COOKIE": "xoxd-your-cookie-here",
"PATH": "/opt/homebrew/bin:/usr/bin:/bin"
}
}
}
}
Important:
YOUR_USERNAME with your actual username~/.slack-mcp-tokens.json into the env sectionVerify it’s working: Check ~/Library/Logs/Claude/mcp-server-slack.log
Edit ~/.claude.json and add under mcpServers:
{
"mcpServers": {
"slack": {
"type": "stdio",
"command": "node",
"args": ["/Users/YOUR_USERNAME/slack-mcp-server/src/server.js"],
"env": {}
}
}
}
Claude Code reads tokens from ~/.slack-mcp-tokens.json automatically.
The Slack tools will now be available in both Claude Desktop and Claude Code.
In Claude Code, try:
slack_health_check
You should see your username and team name.
Run npx -y @jtalk22/slack-mcp --doctor to confirm diagnostic code, then npx -y @jtalk22/slack-mcp --setup with Slack open in Chrome.
Tokens have expired. Run npx -y @jtalk22/slack-mcp --doctor and follow the suggested next action.
~/.claude.json syntaxMake sure:
View > Developer > Allow JavaScript from Apple Events