๐ฆพ A strong MCP (Model Context Protocol) server for Slack integration, providing standardized access to Slack's API features through both MCP tools and webhook processing.
Key Features:
- ๐ค MCP Server: Provides 6 essential Slack tools for AI assistants and clients
- ๐ช Webhook Server: Processes real-time Slack events with secure verification
- ๐ Integrated Mode: Combined MCP + webhook server for complete Slack platform integration
- ๐ Multiple Transports: Supports stdio, SSE, and HTTP streaming protocols
- ๐ฆ Easy Deployment: Docker, Kubernetes, and cloud platform ready
Use Cases:
- Building AI assistants with Slack integration
- Creating custom automation tools for Slack workflows
- Developing real-time Slack applications with event processing
- Integrating Slack with other tools and platforms
slack-mcp-server supports Python 3.12+ for optimal performance and modern language features.
Choose your preferred installation method:
# Minimal base (protocol only)
pip install slack-mcp
# MCP server feature set
pip install "slack-mcp[mcp]"
# Webhook server feature set
pip install "slack-mcp[webhook]"
# Everything
pip install "slack-mcp[all]"# Minimal base
uv add slack-mcp
# MCP server / Webhook / All
uv add "slack-mcp[mcp]"
uv add "slack-mcp[webhook]"
uv add "slack-mcp[all]"# Minimal base
poetry add slack-mcp
# MCP server / Webhook / All
poetry add slack-mcp -E mcp
poetry add slack-mcp -E webhook
poetry add slack-mcp -E allNote: Installation extras
- [mcp]: Installs the MCP server feature set (SSE/Streamable transports; not the integrated webhook mode)
- [webhook]: Installs FastAPI/Uvicorn and related parts for Slack webhook handling (not the integrated mode)
- [all]: Installs everything in this project
- Base (no extra): Minimal install with only the base protocol rules of this project
For Production/Development:
# Copy the production environment template
cp .env.example .env
# Edit with your actual values
# Required: Slack bot token
export SLACK_BOT_TOKEN="xoxb-your-bot-token-here"
# Optional: For webhook server
export SLACK_SIGNING_SECRET="your-signing-secret"For Testing:
# Copy the test environment template
cp test/.env.test.example test/.env.test
# Edit with your test values (used by pytest)
# Required: E2E test token
export E2E_TEST_API_TOKEN="xoxb-your-test-token"# Start with stdio transport (default)
slack-mcp-server
# Start with SSE transport for web clients
slack-mcp-server --transport sse --host 0.0.0.0 --port 3001# Start standalone webhook server
slack-webhook-server --host 0.0.0.0 --port 3000# Combined server with both MCP and webhook functionality
slack-mcp-server --integrated --transport sse --port 8000| Tool | Description | Usage |
|---|---|---|
slack_post_message |
Send messages to channels | Post notifications, updates |
slack_read_channel_messages |
Read channel message history | Analyze conversations |
slack_read_thread_messages |
Read thread replies | Follow discussions |
slack_thread_reply |
Reply to message threads | Engage in conversations |
slack_read_emojis |
Get workspace emojis | Access custom reactions |
slack_add_reactions |
Add emoji reactions | React to messages |
# Pull and run with environment variables
docker run -p 3000:3000 \
-e SLACK_BOT_TOKEN="xoxb-your-token" \
-e SLACK_SIGNING_SECRET="your-secret" \
chisanan232/slack-mcp-server:latestComprehensive documentation is available at https://chisanan232.github.io/slack-mcp-server/
- ๐ User Guide - Installation, configuration, and usage
- ๐ ๏ธ Developer Guide - Contributing, architecture, and development workflow
- ๐๏ธ API Reference - Complete CLI and configuration reference
- ๐ Deployment Guide - Production deployment patterns
slack-mcp-server follows coding styles black and PyLint to control code quality, with additional tools for comprehensive code analysis.
- Black: Consistent code formatting
- PyLint: Code analysis and style checking
- MyPy: Static type checking
- isort: Import sorting and organization
- Pre-commit: Automated code quality checks
# Install development dependencies
uv sync --dev
# Run code quality checks
uv run pre-commit run --all-files
# Run tests
uv run pytestCurrent download statistics for slack-mcp package:
We welcome contributions! Please see our Contributing Guide for details.
- Report Issues - Found a bug? Let us know!
- Request Features - Have ideas? We'd love to hear them!
- Join Discussions - Connect with the community
- Development Setup - Start contributing code
Want to add support for additional message queue systems? Create custom queue backend plugins using our template:
Slack MCP Server Backend MQ Template - Quick-start template for developing queue backend plugins
- Complete project structure with best practices
- Pre-configured CI/CD workflows
- Comprehensive documentation
๐ Documentation: https://chisanan232.github.io/Slack-MCP-Server-Backend-MQ-Template/
