slack-mcp-go

rwatts3/slack-mcp-go

3.2

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.

Tools
8
Resources
0
Prompts
0

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

  1. Set the Slack Bot Token:

    Export your Slack bot token as an environment variable:

    export SLACK_BOT_TOKEN="your-slack-bot-token"
    
  2. 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 your slack-mcp-go binary. If you used go install, this will typically be in your GOPATH/bin. You can find your GOPATH by running go 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 your slack-mcp-go binary. If you used go install, this will typically be in your GOPATH/bin. You can find your GOPATH by running go env GOPATH.

    [
      {
        "name": "slack-mcp-go",
        "command": ["/Users/rwatts/go/bin/slack-mcp-go"],
        "transport": "stdio",
        "env": {
          "SLACK_BOT_TOKEN": "your-slack-bot-token"
        }
      }
    ]
    
  3. 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:

ToolDescription
add_reactionAdd a reaction to a message.
get_channel_historyGet channel history.
get_thread_repliesGet thread replies.
get_user_profileGet user profile.
get_usersGet all users.
list_channelsList all channels.
post_messagePost a message to a channel.
reply_to_threadReply to a thread.

Logging

The server logs to /tmp/slack-mcp-go.log.