Communication·
intermediate
·10 min read·Apr 4, 2026How to Connect Slack to AI Agents with the Slack MCP Server
Integrate Slack with your AI agent using MCP. Read messages, post updates, manage channels, and automate Slack workflows.
Slackmessagingteam communicationautomationworkspace
Connect Slack to AI Agents with MCP
The Slack MCP server enables AI agents to interact with your Slack workspace — reading channels, posting messages, and managing conversations.
Prerequisites
- ▸Slack workspace admin access
- ▸A Slack Bot Token ()code
xoxb-... - ▸Node.js 18+
Creating a Slack Bot Token
- ▸Visit api.slack.com/apps
- ▸Click Create New App → From scratch
- ▸Under OAuth & Permissions, add these Bot Token Scopes:
- ▸— Read channel messagescode
channels:history - ▸— List channelscode
channels:read - ▸— Post messagescode
chat:write - ▸— View user infocode
users:read - ▸— Add reactionscode
reactions:write
- ▸
- ▸Install the app to your workspace
- ▸Copy the Bot User OAuth Token
Configuration
json
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-slack"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-token-here",
"SLACK_TEAM_ID": "T0123456789"
}
}
}
}Available Tools
- ▸— Browse workspace channelscode
list_channels - ▸— Send messages to channelscode
post_message - ▸— Reply in message threadscode
reply_to_thread - ▸— React to messages with emojicode
add_reaction - ▸— Read recent messagescode
get_channel_history - ▸— Read thread conversationscode
get_thread_replies - ▸— Full-text search across workspacecode
search_messages - ▸— List workspace memberscode
get_users - ▸— Get user detailscode
get_user_profile
Example Workflows
Daily Standup Summary
code
"Summarize today's messages in the #engineering channel and highlight action items"Cross-Channel Analysis
code
"Search for all mentions of 'deployment' across channels in the last week and create a summary"Automated Responses
code
"Post a message to #general summarizing the key decisions from #leadership-sync"Best Practices
- ▸Principle of least privilege: Only grant the scopes your use case requires
- ▸Audit bot actions: Monitor what the bot posts
- ▸Use threads: Reply in threads to avoid flooding channels
- ▸Rate limiting: Slack has API rate limits; the server handles retries automatically