rwatts3/slack-mcp-go
If you are the rightful owner of slack-mcp-go and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This project is a Model Context Protocol (MCP) server for Slack, written in Go, enabling interaction with the Slack API through predefined tools.
Slack MCP Server (Go)
This project is a Model Context Protocol (MCP) server for Slack, written in Go. It allows you to interact with the Slack API through a set of predefined tools.
Prerequisites
- Go 1.18 or later
- A Slack Bot Token
Installation
You can install the server using go install
:
go install github.com/rwatts3/slack-mcp-go@latest
Setup
-
Set the Slack Bot Token:
Export your Slack bot token as an environment variable:
export SLACK_BOT_TOKEN="your-slack-bot-token"
-
Configure your MCP client:
Add the server to your MCP client's configuration file.
VSCode Copilot
For VSCode Copilot, add the following to your
settings.json
file. You can open this file by running the "Preferences: Open User Settings (JSON)" command in VSCode.Make sure the
command
points to the location of yourslack-mcp-go
binary. If you usedgo install
, this will typically be in yourGOPATH/bin
. You can find yourGOPATH
by runninggo env GOPATH
.{ "github.copilot.mcp.servers": { "slack-mcp-go": { "command": ["/Users/rwatts/go/bin/slack-mcp-go"], "args": [], "type": "stdio", "env": { "SLACK_BOT_TOKEN": "your-slack-bot-token" } } } }
Claude Desktop
For Claude Desktop, create or edit the
~/.anthropic/mcp_servers.json
file.Make sure the
command
points to the location of yourslack-mcp-go
binary. If you usedgo install
, this will typically be in yourGOPATH/bin
. You can find yourGOPATH
by runninggo env GOPATH
.[ { "name": "slack-mcp-go", "command": ["/Users/rwatts/go/bin/slack-mcp-go"], "transport": "stdio", "env": { "SLACK_BOT_TOKEN": "your-slack-bot-token" } } ]
-
Run the server:
The server will be started automatically by your MCP client when a tool is called.
Available Tools
The following tools are available through the MCP server:
Tool | Description |
---|---|
add_reaction | Add a reaction to a message. |
get_channel_history | Get channel history. |
get_thread_replies | Get thread replies. |
get_user_profile | Get user profile. |
get_users | Get all users. |
list_channels | List all channels. |
post_message | Post a message to a channel. |
reply_to_thread | Reply to a thread. |
Logging
The server logs to /tmp/slack-mcp-go.log
.