Provides a Slack-based MCP server with real-time responses, autonomous AI planning, and tools for Slack management, web research, and cross-server orchestration.
Configuration
View docs{
"mcpServers": {
"bahakizil-slack_mcp": {
"url": "https://mcp.example.com/mcp",
"headers": {
"OPENAI_API_KEY": "sk-xxxxxxxxxxxxxxxxxxxxxxxx",
"TAVILY_API_KEY": "tvly-xxxxxxxx",
"SLACK_APP_TOKEN": "xapp-xxxxxxxxxxxx-xxxxxxxxxxxx",
"SLACK_BOT_TOKEN": "xoxb-xxxxxxxxxxxx-xxxxxxxxxxxx"
}
}
}
}Transform your Slack workspace into an autonomous AI-powered assistant with a production-ready Slack MCP Server. It combines real-time Slack Socket Mode interactions with AI-powered tooling to manage the workspace, run web research, and execute cross-tool tasks, all via an extensible MCP framework.
You run a local MCP server that connects to Slack in real time and exposes a suite of AI tools. Install the server, start it, and then interact with it from Slack by mentioning the bot or directing it through commands. The autonomous AI agent can plan multi-step tasks, discover available tools, perform web research, and deliver results back to Slack channels. Use the multi-tool capabilities to analyze conversations, synthesize insights, and post updates automatically.
Prerequisites: you need Python 3.11 or newer and a working network connection to Slack, OpenAI, and Tavily APIs. Ensure you have Python installed and you can install dependencies.
Step-by-step commands to set up and run the server locally.
git clone https://github.com/bahakizil/slack_mcp.git
cd slack_mcp
pip install -r requirements.txtConfigure your environment with API keys and tokens that your MCP server needs to connect to Slack and AI services.
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_APP_TOKEN=xapp-your-app-token
OPENAI_API_KEY=sk-your-openai-key
TAVILY_API_KEY=tvly-your-tavily-keyLaunch the server using Python. The server will start in real-time Socket Mode and expose an HTTP endpoint for health checks.
python main.pyIf you want to connect to Claude Desktop, you can add the MCP server configuration to Claude Desktop so it can start the server automatically within that environment.
{
"mcpServers": {
"slack_ai_assistant": {
"command": "python",
"args": ["/full/path/to/main.py"],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-actual-bot-token-here",
"SLACK_APP_TOKEN": "xapp-your-actual-app-token-here",
"OPENAI_API_KEY": "sk-your-actual-openai-api-key-here",
"TAVILY_API_KEY": "tvly-your-actual-tavily-api-key-here"
}
}
}
}Send messages to a specified Slack channel
List all channels in the workspace
Retrieve message history from a channel
Search messages across the workspace
Create a new Slack channel
AI-powered analysis of a Slack conversation
Ask questions to the AI model for explanations or brainstorming
Self-planning AI agent capable of multi-step tasks
General web search
News-specific search
Deep research analysis on a topic
Connect external MCP servers
Show all configured MCP servers
Establish connections to external MCP servers
Close connections to external MCP servers
Browse external MCP tools
Execute external MCP tools