MCP Setup Guide
How to Set Up Slack MCP with ClawdBot
Let ClawdBot read Slack channels, summarize discussions, and send messages on your behalf.
Overview
The Slack MCP enables:
- Read messages from specified channels
- Summarize channel activity ("What happened in #engineering today?")
- Send messages to channels
- List channel members and metadata
Prerequisites
- ClawdBot installed and running
- Slack workspace (admin access for app installation)
- Node.js 18+
Step 1 — Create a Slack App
- Go to api.slack.com/apps
- Click "Create New App" → "From scratch"
- Name it (e.g., "ClawdBot MCP") and select your workspace
Step 2 — Configure Bot Scopes
Go to "OAuth & Permissions" and add these Bot Token Scopes:
channels:history— read public channel messageschannels:read— list channelschat:write— send messagesusers:read— get user infogroups:history— read private channels (if needed)
Step 3 — Enable Socket Mode
- Go to "Socket Mode" in sidebar
- Enable Socket Mode
- Generate an App-Level Token with
connections:writescope - Copy this token (starts with
xapp-)
Step 4 — Install App to Workspace
- Go to "Install App" in sidebar
- Click "Install to Workspace"
- Authorize the requested permissions
- Copy the Bot User OAuth Token (starts with
xoxb-)
Step 5 — Get IDs
- Team ID: In Slack, click workspace name → Settings → Workspace settings → find ID starting with
T - Channel IDs: Right-click channel → View channel details → scroll to bottom for ID starting with
C
Step 6 — Add Config to ClawdBot
Slack CLI Config json
{
"Slack": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-YOUR-BOT-TOKEN",
"SLACK_APP_TOKEN": "xapp-YOUR-APP-TOKEN",
"SLACK_TEAM_ID": "T0123456789",
"SLACK_CHANNEL_IDS": "C0123456789,C9876543210",
"MCP_MODE": "stdio"
}
}
} Important: Store tokens as environment variables, not plaintext in config.
Step 7 — Verify
- Run
clawdbot status— Slack MCP should show as "running" - Test: "What's the latest message in #general?"
- Test: "Summarize today's discussion in #engineering"
Common Errors
| Error | Cause | Fix |
|---|---|---|
not_in_channel | Bot not added to channel | Invite bot: /invite @ClawdBot |
invalid_auth | Wrong or expired token | Regenerate Bot Token, update config |
missing_scope | Required scope not added | Add scope in OAuth & Permissions, reinstall app |
channel_not_found | Wrong channel ID | Verify channel ID in Slack settings |
Security Notes
- Limit to specific channels via
SLACK_CHANNEL_IDS - Use read-only scopes if you don't need to send messages
- Audit bot activity in Slack's admin panel
- Enterprise workspaces may require admin approval
Example Prompts
- "Summarize today's messages in #product"
- "What did @alice say in #engineering this week?"
- "Send 'Build complete!' to #deployments"
- "List active threads in #support"
Related MCPs
- Notion — for documentation
- GitHub — for code and issues
- Top 10 MCPs — full curated list