Slack MCP Server

Slack MCP Server

An MCP server that enables AI agents to send messages, payloads, and Markdown-formatted content to Slack via Incoming Webhooks.

Category
访问服务器

README

Slack MCP Server

CI

A Model Context Protocol (MCP) server that posts notifications to Slack via an Incoming Webhook. AI agents call tools instead of shelling out to curl.

Features

  • send_message — plain text and optional Block Kit blocks
  • send_payload — pre-built payload object or multi-part array (rate-limit aware)
  • send_markdown — Markdown → Block Kit conversion with Slack size limits and splitting
  • STDIO and SSE transports
  • Works with Claude Code, Cursor, OpenCode, and other MCP clients

Installation

git clone https://github.com/rokej/slack-mcp-server.git
cd slack-mcp-server
pip install -e ".[dev]"

Or install a release wheel:

pip install https://github.com/rokej/slack-mcp-server/releases/download/v0.1.0/slack_mcp_server-0.1.0-py3-none-any.whl

Configuration

Copy .env.example to .env (or export the variable):

export SLACK_WEBHOOK_URL="https://hooks.slack.com/services/T…/B…/…"

Create a webhook at Slack API — Your Apps → Incoming Webhooks.

Usage

# STDIO (default) — for MCP clients
slack-mcp-server

# SSE transport
slack-mcp-server --transport sse --port 8080

Claude Code / Cursor / OpenCode

{
  "mcpServers": {
    "slack-webhook": {
      "command": "slack-mcp-server",
      "env": {
        "SLACK_WEBHOOK_URL": "${SLACK_WEBHOOK_URL}"
      }
    }
  }
}

In Agent Swarm, add Slack Webhook from the workspace MCP catalog — Swarmer injects SLACK_WEBHOOK_URL into sandboxes.

Agent container images

Pin a release wheel the same way as jira-mcp-server:

ARG SLACK_MCP_VERSION=0.1.0
RUN curl -fsSL -o /tmp/slack_mcp_server-${SLACK_MCP_VERSION}-py3-none-any.whl \
      "https://github.com/rokej/slack-mcp-server/releases/download/v${SLACK_MCP_VERSION}/slack_mcp_server-${SLACK_MCP_VERSION}-py3-none-any.whl" \
    && python3 -m pip install --no-cache-dir /tmp/slack_mcp_server-*.whl \
    && rm -f /tmp/slack_mcp_server-*.whl \
    && slack-mcp-server --help | head -5

Tools

Tool Purpose
send_message Post plain text + optional Block Kit blocks
send_payload Post a pre-built JSON payload (object or array)
send_markdown Convert Markdown to Block Kit and send

Development

pip install -e ".[dev]"
make test
make lint

Releasing

  1. Bump version in pyproject.toml and __version__ in slack_mcp_server/__init__.py
  2. Commit, then tag and push:
    git tag v0.1.0
    git push origin v0.1.0
    
  3. The Release workflow builds slack_mcp_server-X.Y.Z-py3-none-any.whl and attaches it to the GitHub Release

License

Apache License 2.0 — see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选