MCP server for Slack integration
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_slack-0.0.2.tar.gz.
File metadata
- Download URL: mcp_slack-0.0.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a6a1236f1fdd3310ac85cff221e557b2d14013f26c5e1c8e59187e17c84f177
|
|
| MD5 |
7196267513f1b07c5c847aa34922be46
|
|
| BLAKE2b-256 |
a12d358733e9e2da43167dc77abbd634c29a506f6adca33912850a9a406d4c88
|
File details
Details for the file mcp_slack-0.0.2-py3-none-any.whl.
File metadata
- Download URL: mcp_slack-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc016a573290f3d532e008ddc62199ec80d742da2fcac6132666b50c32052eac
|
|
| MD5 |
0a9eb5dae6044feffcd0e5d569e4b1c5
|
|
| BLAKE2b-256 |
d44adc3316d7dad0801805c985919adbef04d3ea0355a0efcb5d8d3e6990da0e
|