This MCP server allows Claude to interact with Slack workspaces on your behalf, enabling operations like posting messages, listing channels, adding reactions, and retrieving conversation history.
To use this MCP server, you'll need to create a Slack app, configure appropriate permissions, and then set up the server through one of several available methods.
Navigate to "OAuth & Permissions" in your Slack app settings and add these scopes:
channels:history
- View messages in public channelschannels:read
- View basic channel informationchat:write
- Send messages as yourselfreactions:write
- Add emoji reactions to messagesusers:read
- View users and their basic informationAfter adding these scopes:
xoxp-
T
) by following this guidanceInstall and build the server:
git clone https://github.com/lars-hagen/slack-user-mcp.git
cd slack-user-mcp
npm install
npm run build
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"slack": {
"command": "npm",
"args": [
"run",
"--prefix",
"/path/to/slack-user-mcp",
"start"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
Add to your claude_desktop_config.json
:
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_TOKEN",
"-e",
"SLACK_TEAM_ID",
"mcp/slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
For automatic installation with Claude Desktop:
npx -y @smithery/cli install @lars-hagen/slack-user-mcp2 --client claude
slack_list_channels
Lists public channels in the workspace.
limit
(default: 100, max: 200): Maximum number of channels to returncursor
: Pagination cursor for next pageslack_post_message
Posts a new message to a Slack channel.
channel_id
: The ID of the channel to post totext
: The message text to postslack_reply_to_thread
Replies to a specific message thread.
channel_id
: The channel containing the threadthread_ts
: Timestamp of the parent messagetext
: The reply textslack_add_reaction
Adds an emoji reaction to a message.
channel_id
: The channel containing the messagetimestamp
: Message timestamp to react toreaction
: Emoji name without colonsslack_get_channel_history
Gets recent messages from a channel.
channel_id
: The channel IDlimit
(default: 10): Number of messages to retrieveslack_get_thread_replies
Gets all replies in a message thread.
channel_id
: The channel containing the threadthread_ts
: Timestamp of the parent messageslack_get_users
Gets list of workspace users with basic profile information.
cursor
: Pagination cursor for next pagelimit
(default: 100, max: 200): Maximum users to returnslack_get_user_profile
Gets detailed profile information for a specific user.
user_id
: The user's IDIf you encounter permission errors, verify that:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "slack" '{"command":"npx","args":["-y","@modelcontextprotocol/server-slack-user"],"env":{"SLACK_TOKEN":"xoxp-your-user-token","SLACK_TEAM_ID":"T01234567"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack-user"
],
"env": {
"SLACK_TOKEN": "xoxp-your-user-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect