
最强大的MCP Slack服务器,无需权限要求,支持应用,支持GovSlack,支持DM,群组DMs,并有智能的历史获取逻辑。
概览
Slack Workspaces 的模范上下文协议(MCP)服务器。最强大的 MCP Slack 服务器——支持 Stdio、SSE 和 HTTP 传输、代理设置、DM、群组 DM、智能历史获取(按日期或计数),可通过 OAuth 或完全隐形模式工作,无需 Workspace 😏 权限和范围。 我们需要您的支持!每月有超过3万名工程师访问该仓库,已有超过9000人在使用。如果您认可我们贡献者为该项目所付出的努力,请考虑给该仓库打星。 这款功能丰富的 Slack MCP 服务器具备:- :无需额外权限或机器人安装即可运行服务器(隐形模式),或使用安全的 OAuth 令牌访问,无需刷新或从浏览器中提取令牌(OAuth 模式)。- :可集成企业 Slack 设置。- :从通道和线程获取消息,包括活动消息,并利用通道名称检索(例如
概述(AI 翻译)
Slack Workspaces 的模范上下文协议(MCP)服务器。最强大的 MCP Slack 服务器——支持 Stdio、SSE 和 HTTP 传输、代理设置、DM、群组 DM、智能历史获取(按日期或计数),可通过 OAuth 或完全隐形模式工作,无需 Workspace 😏 权限和范围。
[!重要] 我们需要您的支持!每个月,有超过3万名工程师访问该仓库,已有超过9,000人在使用。
如果您欣赏我们贡献者为本项目所做的工作,请考虑给该仓库打星。
这个功能丰富的 Slack MCP 服务器具备:
- 隐形和开放模式:无需额外权限或机器人安装即可运行服务器(隐形模式),或使用安全的OAuth令牌访问,无需刷新或从浏览器中提取令牌(OAuth模式)。
- 企业工作空间支持:可与企业Slack系统集成。
- 通道和线程支持
#Name@Lookup:从通道和线程获取消息,包括活动消息,并利用通道名称(例如 #general)及ID检索通道。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Slack MCP Server
Model Context Protocol (MCP) server for Slack Workspaces. The most powerful MCP Slack server — supports Stdio, SSE and HTTP transports, proxy settings, DMs, Group DMs, Smart History fetch (by date or count), may work via OAuth or in complete stealth mode with no permissions and scopes in Workspace 😏.
[!IMPORTANT]
We need your support! Each month, over 30,000 engineers visit this repository, and more than 9,000 are already using it.If you appreciate the work our contributors have put into this project, please consider giving the repository a star.
This feature-rich Slack MCP Server has:
- Stealth and OAuth Modes: Run the server without requiring additional permissions or bot installations (stealth mode), or use secure OAuth tokens for access without needing to refresh or extract tokens from the browser (OAuth mode).
- Enterprise Workspaces Support: Possibility to integrate with Enterprise Slack setups.
- Channel and Thread Support with
#Name@Lookup: Fetch messages from channels and threads, including activity messages, and retrieve channels using their names (e.g., #general) as well as their IDs. - Smart History: Fetch messages with pagination by date (d1, 7d, 1m) or message count.
- Unread Messages: Get all unread messages across channels efficiently with priority sorting (DMs > partner channels > internal), @mention filtering, and mark-as-read support.
- Search Messages: Search messages in channels, threads, and DMs using various filters like date, user, and content.
- Safe Message Posting: The
conversations_add_messagetool is disabled by default for safety. Enable it via an environment variable, with optional channel restrictions. - DM and Group DM support: Retrieve direct messages and group direct messages.
- Embedded user information: Embed user information in messages, for better context.
- Cache support: Cache users and channels for faster access.
- Stdio/SSE/HTTP Transports & Proxy Support: Use the server with any MCP client that supports Stdio, SSE or HTTP transports, and configure it to route outgoing requests through a proxy if needed.
Analytics Demo
Add Message Demo
Tools
1. conversations_history:
Get messages from the channel (or DM) by channel_id, the last row/column in the response is used as ‘cursor’ parameter for pagination if not empty
- Parameters:
channel_id(string, required): -channel_id(string): ID of the channel in format Cxxxxxxxxxx or its name starting with#...or@...aka#generalor@username_dm.
安装
npx @modelcontextprotocol/inspector go run mcp/mcp-server.go --transport stdio