
slack-mcp-server
by korotovsky·★ 1,603·综合分 56
功能丰富的 Slack MCP 服务器,支持隐身模式、OAuth 和全面的消息管理工具。
概述
korotovsky 开发的 Slack MCP 服务器通过模型上下文协议(MCP)与 Slack 工作区提供全面集成。它支持隐身模式(无需权限)和 OAuth 认证,提供不同安全需求的灵活性。服务器提供广泛的工具用于消息检索、发布、搜索和反应管理,具有智能历史获取功能,并支持频道、线程、私聊和群聊。设计可与支持 Stdio、SSE 或 HTTP 传输的任何 MCP 客户端配合使用,使其在各种集成场景中具有高度灵活性。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您需要通过 MCP 服务器全面集成 Slack,特别是想要隐身模式功能或需要避免传统机器人安装,请选择此服务器。
什么时候不要选它
如果您默认需要写入 Slack 权限(出于安全考虑发布功能默认关闭),或使用机器人令牌(xoxb-)(这会限制搜索功能),请不要选择此服务器。
此 server 暴露的工具
从 README 抽取出 12 个工具conversations_historychannel_id (string, required), include_activity_messages (boolean, default: false), cursor (string, optional), limit (string, default: "1d")Get messages from a channel or DM by channel ID with pagination support
conversations_replieschannel_id (string, required), thread_ts (string, required), include_activity_messages (boolean, default: false), cursor (string, optional), limit (string, default: "1d")Get a thread of messages posted to a conversation
conversations_add_messagechannel_id (string, required), thread_ts (string, optional), payload (string, required), content_type (string, default: "text/markdown")Add a message to a public channel, private channel, or direct message conversation
conversations_search_messagessearch_query (string, optional), filter_in_channel (string, optional), filter_in_im_or_mpim (string, optional), filter_users_with (string, optional), filter_users_from (string, optional), filter_date_before (string, optional), filter_date_aSearch messages in channels or DMs with various filters
channels_listchannel_types (string, required), sort (string, optional), limit (number, default: 100), cursor (string, optional)Get list of channels with filtering options
reactions_addchannel_id (string, required), timestamp (string, required), emoji (string, required)Add an emoji reaction to a message
reactions_removechannel_id (string, required), timestamp (string, required), emoji (string, required)Remove an emoji reaction from a message
users_searchquery (string, required), limit (number, default: 10)Search for users by name, email, or display name
usergroups_listinclude_users (boolean, default: false), include_count (boolean, default: true), include_disabled (boolean, default: false)List all user groups (subteams) in the workspace
usergroups_createname (string, required), handle (string, optional), description (string, optional), channels (string, optional)Create a new user group in the workspace
usergroups_updateusergroup_id (string, required), name (string, optional), handle (string, optional), description (string, optional), channels (string, optional)Update an existing user group's metadata
usergroups_users_updateusergroup_id (string, required), users (string, required)Update the members of a user group, replacing existing members
可对比工具
安装
安装
- 安装 Go 包:
go install github.com/korotovsky/slack-mcp-server@latest- 配置 Claude Desktop(添加到 claude_desktop_config.json):
{
"mcpServers": {
"slack": {
"command": "slack-mcp-server",
"args": []
}
}
}- 设置身份验证的环境变量:
export SLACK_MCP_TOKEN="xoxc-your-token-here"对于 OAuth 模式,设置:
export SLACK_MCP_TOKEN="xoxp-your-oauth-token-here"要启用消息发布,添加:
export SLACK_MCP_ADD_MESSAGE_TOOL="true" # 或特定频道 IDFAQ
- 这个服务器需要在 Slack 中安装机器人吗?
- 不需要,它可以在隐身模式下运行,无需任何权限或机器人安装,但也提供 OAuth 模式以获得更安全的访问。
- 我可以使用此服务器发布消息吗?
- 出于安全考虑,消息发布默认禁用。您可以通过设置 SLACK_MCP_ADD_MESSAGE_TOOL 环境变量来启用它。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by korotovskii · 2025-05-19
- 帖子 by korotovskii · 2025-04-27
- 帖子 by rusq · 2026-02-24
slack-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。