Cover image
Slack-MCP主持人
Public

Slack-MCP主持人

Try Now
2025-04-08

Slack的MCP主机服务器应用程序

3 years

Works with Finder

2

Github Watches

0

Github Forks

2

Github Stars

Slack MCP Host

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

Features

  • 🤖 LLM-powered conversations in Slack
  • 🔧 Integration with multiple MCP servers
  • 📝 Markdown rendering support
  • 🔍 Collapsible tool execution results
  • 💾 Conversation history maintenance
  • 🔐 Secure configuration management

Prerequisites

  • Python 3.11+
  • uv for dependency management
  • A Slack workspace with admin access
  • OpenAI API access
  • One or more MCP servers

Setup

  1. Clone the repository
git clone https://github.com/yourusername/slack-mcp-host.git
cd slack-mcp-host
  1. Create and activate virtual environment
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies
uv sync
  1. Configure environment
cp .env.example .env

Edit .env with your credentials:

SLACK_API_KEY=xoxb-your-slack-bot-token
OPENAI_API_KEY=your-openai-api-key
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4

# MCP Servers
SLACK_MCP_NEO4J_MOVIES=uvx mcp-neo4j-cypher --url neo4j+s://demo.neo4jlabs.com --username movies --password movies
SLACK_MCP_TIME=uvx mcp-server-time
  1. Create Slack App
  • Go to api.slack.com/apps
  • Click "Create New App" → "From an app manifest"
  • Select your workspace
  • Copy and paste the contents of manifest.yml
  • Create the app and install it to your workspace

Deployment

Cloudflare Workers

  1. Install Wrangler
npm install -g wrangler
  1. Login to Cloudflare
wrangler login
  1. Set secrets
wrangler secret put SLACK_API_KEY
wrangler secret put OPENAI_API_KEY
  1. Deploy
wrangler deploy
  1. Update Slack App configuration
  • Go to your Slack App settings
  • Update the Event Subscription URL to your Cloudflare Workers URL: https://slack-mcp-host.<your-worker-subdomain>.workers.dev/slack/events

Usage Example

Here's an example interaction flow:

  1. User starts conversation
User: Can you help me find movies directed by Christopher Nolan?
  1. Bot responds with tool execution
Bot: I'll help you find movies directed by Christopher Nolan using the Neo4j Movies database.

<details><summary>Tool Results</summary>
Tool neo4j_movies result:
- Inception (2010)
- The Dark Knight (2008)
- Interstellar (2014)
- Memento (2000)
- The Prestige (2006)
</details>

Would you like to know more details about any of these movies?
  1. User follows up
User: Tell me more about Inception
  1. Bot executes another query
Bot: I'll get the details about Inception for you.

<details><summary>Tool Results</summary>
Tool neo4j_movies result:
Title: Inception (2010)
Director: Christopher Nolan
Cast: Leonardo DiCaprio, Joseph Gordon-Levitt, Ellen Page
Plot: A thief who steals corporate secrets through dream-sharing technology is given the inverse task of planting an idea into the mind of a C.E.O.
</details>

The movie received critical acclaim for its innovative storytelling and visual effects. Would you like to know about any other movies or specific aspects of Inception?

Development

To run locally for development:

uvicorn src.api:app --reload --port 8000

Use ngrok or similar to expose your local server:

ngrok http 8000

Update your Slack App's Event Subscription URL with the ngrok URL.

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • 林乔安妮
  • A fashion stylist GPT offering outfit suggestions for various scenarios.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

    Reviews

    5 (1)
    Avatar
    user_HwSgjujx
    2025-04-17

    As a dedicated user of the slack-mcp-host, I find it to be an invaluable tool in integrating Slack with various MCP applications. Created by the talented jexp, this product simplifies seamless communication and task management within my team. The setup was straightforward, and the performance has been consistently reliable. Highly recommend checking it out on GitHub!