Slack MCP Server
Enables LLMs to interact with Slack workspaces by listing channels and posting messages using OAuth 2.0 authentication.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Slack MCP Serverpost 'Meeting starts in 5 minutes' to the #general channel"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Slack MCP Server
A Model Context Protocol (MCP) server that enables LLMs to interact with Slack workspaces through OAuth 2.0 authentication.
Features
🔐 OAuth 2.0 Authentication: Secure Slack OAuth flow with automatic token management
🚀 FastMCP Framework: Built with the official MCP SDK's FastMCP framework
💾 Token Persistence: Tokens are saved locally or in DynamoDB for cloud deployments
📱 Slack Integration: Post messages and list channels in Slack workspaces
🔄 Dynamic Client Registration: Supports VSCode MCP extension and other clients
☁️ GitHub + App Runner: Deploy directly from GitHub with AWS App Runner
Related MCP server: Slack MCP Server
Prerequisites
Python 3.11+
Slack App with OAuth 2.0 configured
uv (Python package manager)
Quick Start
1. Slack App Configuration
Create a new Slack App at https://api.slack.com/apps
Add OAuth Scopes in "OAuth & Permissions":
chat:write- Post messageschannels:read- List channels
Add Redirect URLs:
Local:
http://localhost:8080/slack/callbackProduction:
https://your-domain.com/slack/callback
Copy the Client ID and Client Secret
2. Installation
# Clone the repository
git clone https://github.com/miyatsuki/study-slack-remote-mcp.git
cd study-slack-remote-mcp
# Install dependencies using uv
uv sync3. Configuration
Create a .env file:
# Required: Slack OAuth credentials
SLACK_CLIENT_ID=your_client_id
SLACK_CLIENT_SECRET=your_client_secret
# Optional: Service base URL (for production deployments)
# SERVICE_BASE_URL=https://your-apprunner-url.awsapprunner.com4. Run the Server
# Start the server
uv run python server.py
# Or run in background
nohup uv run python server.py > server.log 2>&1 &Usage
With VSCode MCP Extension
Install the MCP extension for VSCode
Connect to the server URL:
http://localhost:8080/mcp/The OAuth flow will start automatically when you first use a tool
With Claude Desktop
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"slack": {
"command": "uv",
"args": [
"--directory",
"/path/to/slack-mcp-server",
"run",
"python",
"server.py"
]
}
}
}Available Tools
list_channels: Get a list of Slack channels
Returns: Dictionary mapping channel names to IDspost_message: Post a message to a Slack channel
Args: - channel_id: Channel ID (required) - text: Message text (required) Returns: Success/failure messageget_auth_status: Check authentication status
Returns: Current authentication state and session info
Authentication Flow
When a tool is first used, the OAuth flow automatically starts
A browser window opens for Slack authorization
After authorization, the token is saved for future use
Subsequent requests use the cached token
Authentication
The server uses FastMCP's built-in OAuth 2.0 support with dynamic client registration. This allows compatibility with various MCP clients including VSCode's MCP extension.
Token Management
OAuth tokens are mapped between MCP tokens and Slack tokens internally
Tokens are persisted locally in memory (or DynamoDB in cloud)
OAuth flow starts automatically when tools are first used
Dynamic client registration supported for VSCode and other clients
Port Configuration
The server uses a single port:
8080: MCP server endpoint (includes health check and OAuth callback routes)
AWS App Runner Deployment (ECR-based)
The project uses ECR-based deployment with AWS App Runner for production:
# First, set up AWS Systems Manager parameters:
aws ssm put-parameter --name "/slack-mcp/dev/client-id" --value "your-client-id" --type "String"
aws ssm put-parameter --name "/slack-mcp/dev/client-secret" --value "your-secret" --type "SecureString"
aws ssm put-parameter --name "/slack-mcp/dev/service-base-url" --value "https://your-apprunner-url.awsapprunner.com" --type "String"
# Build and push Docker image to ECR:
./build-and-push.sh
# Create App Runner service (if not exists) or update existing service
aws apprunner update-service --service-arn <your-service-arn> --source-configuration '...'App Runner provides:
Deployment from ECR with pre-built Docker images
Built-in HTTPS with automatic certificates
Manual deployment control (auto-deploy disabled by default)
Auto-scaling and simplified management
Avoids Python 3.11 build issues with App Runner's source code deployment
Project Structure
study-slack-remote-mcp/
├── server.py # Main MCP server using FastMCP framework
├── slack_oauth_provider.py # Slack OAuth provider implementation
├── storage_interface.py # Storage abstraction (local/cloud)
├── storage_dynamodb.py # DynamoDB storage for AWS
├── token_storage.py # Local file-based token storage
├── Dockerfile # Docker container configuration
├── build-and-push.sh # ECR deployment script
├── requirements.txt # Python dependencies for Docker
├── pyproject.toml # Project dependencies
├── uv.lock # Locked dependencies
├── tests/ # Unit tests
├── infrastructure/ # AWS CDK deployment code
├── CLAUDE.md # Development guidelines
└── .env # Environment variables (create from .env.example)Development
Testing
# Check server health
curl http://localhost:8080/health
# Test with MCP client
mcp run uv --directory /path/to/study-slack-remote-mcp run python server.pyDebugging
Enable debug logging by checking server.log:
tail -f server.logTroubleshooting
Port Already in Use
# Check what's using port 8080
lsof -i :8080
# Kill process using port 8080 if needed
kill -9 $(lsof -ti:8080)OAuth Errors
bad_redirect_uri: Ensure the redirect URL in Slack app matches exactly:
Must include the full path:
http://localhost:8080/slack/callbackPort must be 8080 (MCP server port)
invalid_client_id: Verify SLACK_CLIENT_ID in .env
Token not found: Complete OAuth by authorizing in browser
Security Considerations
OAuth tokens are mapped between MCP tokens and Slack tokens
Tokens stored in memory locally, DynamoDB in production
Dynamic client registration supports various MCP clients
OAuth callbacks use HTTPS in production (App Runner)
Contributing
Fork the repository
Create a feature branch
Follow the guidelines in CLAUDE.md
Submit a pull request
License
MIT License - see LICENSE file for details
References
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceA Model Context Protocol server implementation that enables AI assistants to interact with Slack workspaces, allowing them to browse channels, send messages, reply to threads, add reactions, and retrieve user information.Last updated9162Apache 2.0
- AlicenseAqualityDmaintenanceA server implementing Model Context Protocol that enables AI assistants to interact with Slack API through a standardized interface, providing tools for messaging, channel management, user information retrieval, and more.Last updated11110Apache 2.0
- Flicense-qualityDmaintenanceA Model Context Protocol server that integrates with Slack API, allowing users to send messages, view channel history, manage channels, send direct messages, and retrieve user lists from Slack workspaces.Last updated1
- AlicenseBqualityCmaintenanceA Model Context Protocol server that integrates with Swit collaboration tools, allowing LLM clients to interact with Swit workspaces, channels, and messages through OAuth authentication.Last updated917MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Slack MCP without OAuth — 21 tools, session-based, local-first. Free OSS + hosted tier from $19/mo.
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/miyatsuki/study-slack-remote-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server