MCP ExplorerExplorer

Slack MCP server

@modelcontextprotocolon 2 months ago
52364 MIT
HostedFreeOfficial
Messaging
#slack#api#bot
Channel management and messaging capabilities

Overview

What is Slack MCP server

The Model Context Protocol (MCP) is an open-source project managed by Anthropic, aimed at facilitating the creation and management of servers for various functionalities.

Use cases

MCP servers can be utilized to enhance desktop applications like Claude Desktop by configuring them as MCP clients, enabling seamless integration of server functionalities into the application.

How to use

To use MCP servers, one can directly run TypeScript-based servers with npx or Python-based servers with uvx or pip. Configuring MCP servers into an MCP client like Claude Desktop enhances their utility.

Key features

Key features of MCP servers include ease of setup and use, as well as the ability to configure various servers for different functionalities into an MCP client for seamless integration.

Where to use

MCP servers are best used in conjunction with MCP clients like Claude Desktop, allowing for the integration of various server functionalities to enhance desktop applications effortlessly.

Content

Getting Started

Using MCP Servers in this Repository

Typescript-based servers in this repository can be used directly with npx.

For example, this will start the Memory server:

npx -y @modelcontextprotocol/ver-memory

Python-based servers in this repository can be used directly with uvx or pip. uvx is recommended for ease of use and setup.

For example, this will start the Git server:

# With uvx
uvx mcp-server-git

# With pip
pip install mcp-server-git
python -m mcp_server_git

Follow these instructions to install uv / uvx and these to install pip.

Using an MCP Client

However, running a server on its own isn't very useful, and should instead be configured into an MCP client. For example, here's the Claude Desktop configuration to use the above server:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/ver-memory"
      ]
    }
  }
}

Additional examples of using the Claude Desktop as an MCP client might look like:

{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/ver-filesystem",
        "/path/to/allowed/files"
      ]
    },
    "git": {
      "command": "uvx",
      "args": [
        "mcp-server-git",
        "--repository",
        "path/to/git/repo"
      ]
    },
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/ver-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    },
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/ver-postgres",
        "postgresql://localhost/mydb"
      ]
    }
  }
}

Creating Your Own Server

Interested in creating your own MCP server? Visit the official documentation at modelcontextprotocol.io for comprehensive guides, best practices, and technical details on implementing MCP servers.

Contributing

See CONTRIBUTING.md for information about contributing to this repository.

Security

See SECURITY.md for reporting security vulnerabilities.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Community

Support

If you find MCP servers useful, please consider starring the repository and contributing new servers or improvements!


Managed by Anthropic, but built together with the community. The Model Context Protocol is open source and we encourage everyone to contribute their own servers and improvements!

Installation

Local

{
  "mcpServers": {
    "slack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-slack"
      ],
      "env": {
        "SLACK_BOT_TOKEN": "<YOUR_SLACK_BOT_TOKEN>",
        "SLACK_TEAM_ID": "<YOUR_SLACK_TEAM_ID>"
      }
    }
  }
}

Remote

{
  "mcpServers": {
    "slack": {
      "type": "streamable-http",
      "url": "https://router.mcpso.cc/mcp/slack"
    }
  }
}

Tools

slack_list_channels
List public channels in the workspace with pagination
slack_post_message
Post a new message to a Slack channel
slack_reply_to_thread
Reply to a specific message thread in Slack
slack_add_reaction
Add a reaction emoji to a message
slack_get_channel_history
Get recent messages from a channel
slack_get_thread_replies
Get all replies in a message thread
slack_get_users
Get a list of all users in the workspace with their basic profile information
slack_get_user_profile
Get detailed profile information for a specific user

MCP Server Configuration

This MCP server is hosted, and you can test tools online for free after connecting.

Required Environment Variables

The unique identifier of the Slack workspace, required for operations within the workspace.

The OAuth token for the bot user in the Slack workspace, used for authenticating API requests.

To execute tools on this server, you must first configure environment variables and connect to the server.

Comments

Recommend MCP Servers

View All MCP Servers