Slack MCP Server
A Model Context Protocol (MCP) server for Slack integration. This server provides tools for interacting with Slack, including sending messages, managing channels, and accessing workspace information.
Features
- Channel Management: Create, list, join, and archive channels
- Messaging: Send messages to channels or threads, get channel history
- Users: Get user information and list workspace members
- Files: Upload files to channels
- Reactions: Add reactions to messages
- Resources: Access information about channels, users, and messages
- Prompts: Templates for common Slack actions
Installation
pip install mcp-slack
Configuration
Set the following environment variables:
export SLACK_BOT_TOKEN="xoxb-your-bot-token"
export SLACK_APP_TOKEN="xapp-your-app-token" # Optional, needed for socket mode
To get these tokens:
- Create a Slack App at https://api.slack.com/apps
- Add the necessary permission scopes (channels:read, chat:write, etc.)
- Install the app to your workspace
- Get the Bot Token from the "OAuth & Permissions" page
Usage
Starting the server directly
mcp-slack
Using with Claude Desktop
Add the following to your claude_desktop_config.json file:
"mcp-slack": {
"command": "uvx",
"args": [
"mcp-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_APP_TOKEN": "xapp-your-app-token"
}
}
Replace the environment variables with your actual Slack credentials.
Available Tools
- send_message: Send a message to a channel or thread
- list_channels: List available channels in the workspace
- get_channel_history: Get message history for a channel
- list_users: List users in the workspace
- create_channel: Create a new channel
- archive_channel: Archive a channel
- join_channel: Join a channel
- add_reaction: Add a reaction to a message
- upload_file: Upload a file to a channel
Available Resources
- slack://channels: List of all channels in the workspace
- slack://users: List of all users in the workspace
- slack://channel/{channel_id}: Information about a specific channel
- slack://user/{user_id}: Information about a specific user
Available Prompts
- create_message: Template for creating a new message
- create_channel: Template for creating a new channel
- schedule_message: Template for scheduling a message
Permissions Required
The Slack bot requires the following scopes:
channels:read- To list and get channel informationchannels:write- To create and archive channelschat:write- To send messagesfiles:write- To upload filesreactions:write- To add reactionsusers:read- To list and get user information
Version
0.0.1
Metadata
Release files for mcp-slack 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_slack-0.0.2.tar.gz | 5.3 kB | Without provenance | Details for mcp_slack-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_slack-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for mcp_slack-0.0.2-py3-none-any.whl |
Total release size: 11.3 kB
Release files / mcp_slack-0.0.2.tar.gz
| Download URL | mcp_slack-0.0.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a6a1236f1fdd3310ac85cff221e557b2d14013f26c5e1c8e59187e17c84f177
|
|
BLAKE2b-256 checksum How to use checksums |
a12d358733e9e2da43167dc77abbd634c29a506f6adca33912850a9a406d4c88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Release files / mcp_slack-0.0.2-py3-none-any.whl
| Download URL | mcp_slack-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc016a573290f3d532e008ddc62199ec80d742da2fcac6132666b50c32052eac
|
|
BLAKE2b-256 checksum How to use checksums |
d44adc3316d7dad0801805c985919adbef04d3ea0355a0efcb5d8d3e6990da0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.13
|
Security for mcp-slack 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.