Slack MCP Host logo

Slack MCP Host

by jexp

A Slack bot that integrates MCP (Machine Control Protocol) servers with Slack, providing LLM-powered interactions in dedicated channels. It can execute tools from configured MCP servers and present results in a user-friendly format.

View on GitHub

Last updated: N/A

What is Slack MCP Host?

Slack MCP Host is a Slack bot designed to integrate Machine Control Protocol (MCP) servers with Slack, enabling LLM-powered interactions within dedicated Slack channels. It allows users to interact with MCP servers through natural language within Slack.

How to use Slack MCP Host?

To use Slack MCP Host, you need to clone the repository, configure the environment with your Slack API key, OpenAI API key, and MCP server details. Then, create a Slack App using the provided manifest, deploy the bot (e.g., to Cloudflare Workers), and update the Slack App configuration with the deployment URL. Once set up, users can interact with the bot in Slack channels to execute tools from configured MCP servers.

Key features of Slack MCP Host

  • LLM-powered conversations in Slack

  • Integration with multiple MCP servers

  • Markdown rendering support

  • Collapsible tool execution results

  • Conversation history maintenance

  • Secure configuration management

Use cases of Slack MCP Host

  • Executing database queries via natural language in Slack

  • Retrieving real-time data from MCP servers through Slack commands

  • Automating tasks on MCP servers based on Slack user input

  • Providing a user-friendly interface for interacting with complex MCP systems

  • Centralized management of MCP servers through a Slack bot

FAQ from Slack MCP Host

What is MCP?

MCP stands for Machine Control Protocol. It's a protocol used to interact with and control various machines or systems.

What are the prerequisites for using Slack MCP Host?

You need Python 3.11+, uv for dependency management, a Slack workspace with admin access, OpenAI API access, and one or more MCP servers.

How do I configure the bot with my Slack API key?

You need to edit the .env file and set the SLACK_API_KEY variable to your Slack bot token.

Can I use this bot with multiple MCP servers?

Yes, the bot supports integration with multiple MCP servers. You can configure them in the .env file.

How do I deploy the bot to Cloudflare Workers?

You need to install Wrangler, login to Cloudflare, set the necessary secrets (SLACK_API_KEY, OPENAI_API_KEY), and then deploy using the wrangler deploy command. Finally, update the Slack App's Event Subscription URL with your Cloudflare Workers URL.