Slack MCP Server 4520f0c0

MCP办公协作

提供方 lazallen · 包名 @modelcontextprotocol/inspector

办公协作 stdio · 本地进程 OAuth 授权 社区 / 第三方 ClaudeCursor
查看接入方式

Slack MCP Server是为Slack工作区设计的Model Context Protocol服务器,支持多种传输协议、代理设置、智能历史记录获取和多种消息管理功能。

一句话选型结论

按资料字段整理

Slack MCP Server 4520f0c0 属于办公协作类 MCP 服务器,stdio · 本地进程,OAuth 授权,可直接接入 Claude、Cursor,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类办公协作 传输方式stdio · 本地进程 鉴权OAuth 授权 部署方式本地部署
GitHub 星标 2 仓库热度,无公开仓库时显示未标注
工具数 13 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

办公协作
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量13暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

Slack集成Go本地部署消息管理企业协作自动化工具API服务器

安装与配置

stdio · 本地进程 OAuth 授权
客户端在本机拉起子进程,数据不出本机
npx @modelcontextprotocol/inspector go run mcp/mcp-server.go --transport stdio

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    stdio 服务在本地起进程,需要先装好 Node.js,再按安装命令拉取依赖。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后客户端会列出约 13 个工具,随便调一个只读工具确认能返回结果。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
日程与消息

查日程、发消息、约会议。

表单与审批

填表单、走审批流。

团队协作

同步任务、汇总进展。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 资料标注 13 个工具,覆盖面较广,能满足多种调用。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • stdio 方式要求本地装好运行时(如 Node.js),换机器要重新装一遍。
  • 使用前要准备好OAuth 授权对应的凭据,并按最小权限配置。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在办公协作场景里让模型直接调用外部能力的人。
  • 已经在用 Claude、Cursor 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Slack MCP Server 4520f0c0当前 13 stdio · 本地进程 本地部署 有 2026-05-17
CowAgent 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Karakeep MCP 未标注 未标注 未标注 无 2026-05-17
agentscope 未标注 stdio · 本地进程 本地部署 有 2026-04-11
note-gen 未标注 stdio · 本地进程 本地部署 有 2026-04-11
Everywhere 未标注 stdio · 本地进程 本地部署 有 2026-04-12

服务器档案

办公协作
字段来自项目仓库与公开索引,中文说明由本站标注
提供方lazallen上游标注的维护方 lazallen
分类办公协作本站按上游分类展示
连接方式stdio · 本地进程客户端在本机拉起子进程,数据不出本机
鉴权方式OAuth 授权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时@modelcontextprotocol/inspector · Node.js本地安装时用到的包标识与运行时
部署类型本地部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

21.0 KB
来自项目仓库与上游目录的原文,未做删改

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.
- Search Messages: Search messages in channels, threads, and DMs using various filters like date, user, and content.
- Safe Message Posting: The conversations_add_message tool 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 #general or @username_dm.
- include_activity_messages (boolean, default: false): If true, the response will include activity messages such as channel_join or channel_leave. Default is boolean false.
- cursor (string, optional): Cursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.
- limit (string, default: "1d"): Limit of messages to fetch in format of maximum ranges of time (e.g. 1d - 1 day, 1w - 1 week, 30d - 30 days, 90d - 90 days which is a default limit for free tier history) or number of messages (e.g. 50). Must be empty when 'cursor' is provided.

2. conversations_replies:

Get a thread of messages posted to a conversation by channelID and thread_ts, the last row/column in the response is used as cursor parameter for pagination if not empty.
- Parameters:
- channel_id (string, required): ID of the channel in format Cxxxxxxxxxx or its name starting with #... or @... aka #general or @username_dm.
- thread_ts (string, required): Unique identifier of either a thread’s parent message or a message in the thread. ts must be the timestamp in format 1234567890.123456 of an existing message with 0 or more replies.
- include_activity_messages (boolean, default: false): If true, the response will include activity messages such as 'channel_join' or 'channel_leave'. Default is boolean false.
- cursor (string, optional): Cursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.
- limit (string, default: "1d"): Limit of messages to fetch in format of maximum ranges of time (e.g. 1d - 1 day, 1w - 1 week, 30d - 30 days, 90d - 90 days which is a default limit for free tier history) or number of messages (e.g. 50). Must be empty when 'cursor' is provided.

3. conversations_add_message

Add a message to a public channel, private channel, or direct message (DM, or IM) conversation by channel_id and thread_ts.

> Note: Posting messages is disabled by default for safety. To enable, set the SLACK_MCP_ADD_MESSAGE_TOOL environment variable. If set to a comma-separated list of channel IDs, posting is enabled only for those specific channels. See the Environment Variables section below for details.

  • Parameters:
  • channel_id (string, required): ID of the channel in format Cxxxxxxxxxx or its name starting with #... or @... aka #general or @username_dm.
  • thread_ts (string, optional): Unique identifier of either a thread’s parent message or a message in the thread_ts must be the timestamp in format 1234567890.123456 of an existing message with 0 or more replies. Optional, if not provided the message will be added to the channel itself, otherwise it will be added to the thread.
  • payload (string, required): Message payload in specified content_type format. Example: 'Hello, world!' for text/plain or '# Hello, world!' for text/markdown.
  • content_type (string, default: "text/markdown"): Content type of the message. Default is 'text/markdown'. Allowed values: 'text/markdown', 'text/plain'.

4. conversations_search_messages

Search messages in a public channel, private channel, or direct message (DM, or IM) conversation using filters. All filters are optional, if not provided then search_query is required.

> Note: This tool is not available when using bot tokens (xoxb-*). Bot tokens cannot use the search.messages API.
- Parameters:
- search_query (string, optional): Search query to filter messages. Example: 'marketing report' or full URL of Slack message e.g. 'https://slack.com/archives/C1234567890/p1234567890123456', then the tool will return a single message matching given URL, herewith all other parameters will be ignored.
- filter_in_channel (string, optional): Filter messages in a specific channel by its ID or name. Example: C1234567890 or #general. If not provided, all channels will be searched.
- filter_in_im_or_mpim (string, optional): Filter messages in a direct message (DM) or multi-person direct message (MPIM) conversation by its ID or name. Example: D1234567890 or @username_dm. If not provided, all DMs and MPIMs will be searched.
- filter_users_with (string, optional): Filter messages with a specific user by their ID or display name in threads and DMs. Example: U1234567890 or @username. If not provided, all threads and DMs will be searched.
- filter_users_from (string, optional): Filter messages from a specific user by their ID or display name. Example: U1234567890 or @username. If not provided, all users will be searched.
- filter_date_before (string, optional): Filter messages sent before a specific date in format YYYY-MM-DD. Example: 2023-10-01, July, Yesterday or Today. If not provided, all dates will be searched.
- filter_date_after (string, optional): Filter messages sent after a specific date in format YYYY-MM-DD. Example: 2023-10-01, July, Yesterday or Today. If not provided, all dates will be searched.
- filter_date_on (string, optional): Filter messages sent on a specific date in format YYYY-MM-DD. Example: 2023-10-01, July, Yesterday or Today. If not provided, all dates will be searched.
- filter_date_during (string, optional): Filter messages sent during a specific period in format YYYY-MM-DD. Example: July, Yesterday or Today. If not provided, all dates will be searched.
- filter_threads_only (boolean, default: false): If true, the response will include only messages from threads. Default is boolean false.
- cursor (string, default: ""): Cursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.
- limit (number, default: 20): The maximum number of items to return. Must be an integer between 1 and 100.

5. channels_list:

Get list of channels
- Parameters:
- channel_types (string, required): Comma-separated channel types. Allowed values: mpim, im, public_channel, private_channel. Example: public_channel,private_channel,im
- sort (string, optional): Type of sorting. Allowed values: popularity - sort by number of members/participants in each channel.
- limit (number, default: 100): The maximum number of items to return. Must be an integer between 1 and 1000 (maximum 999).
- cursor (string, optional): Cursor for pagination. Use the value of the last row and column in the response as next_cursor field returned from the previous request.

6. reactions_add:

Add an emoji reaction to a message in a public channel, private channel, or direct message (DM, or IM) conversation.

> Note: Adding reactions is disabled by default for safety. To enable, set the SLACK_MCP_ADD_MESSAGE_TOOL environment variable. If set to a comma-separated list of channel IDs, reactions are enabled only for those specific channels. See the Environment Variables section below for details.

  • Parameters:
  • channel_id (string, required): ID of the channel in format Cxxxxxxxxxx or its name starting with #... or @... aka #general or @username_dm.
  • timestamp (string, required): Timestamp of the message to add reaction to, in format 1234567890.123456.
  • emoji (string, required): The name of the emoji to add as a reaction (without colons). Example: thumbsup, heart, rocket.

7. reactions_remove:

Remove an emoji reaction from a message in a public channel, private channel, or direct message (DM, or IM) conversation.

> Note: Removing reactions follows the same permission model as reactions_add. To enable, set the SLACK_MCP_ADD_MESSAGE_TOOL environment variable.

  • Parameters:
  • channel_id (string, required): ID of the channel in format Cxxxxxxxxxx or its name starting with #... or @... aka #general or @username_dm.
  • timestamp (string, required): Timestamp of the message to remove reaction from, in format 1234567890.123456.
  • emoji (string, required): The name of the emoji to remove as a reaction (without colons). Example: thumbsup, heart, rocket.

8. users_search:

Search for users by name, email, or display name. Returns user details and DM channel ID if available.

> Note: For OAuth tokens (xoxp/xoxb), this tool searches the local users cache using pattern matching. For browser session tokens (xoxc/xoxd), it uses the Slack edge API for real-time search.

  • Parameters:
  • query (string, required): Search query - matches against real name, display name, username, or email.
  • limit (number, default: 10): Maximum number of results to return (1-100).

  • Returns: CSV with fields:

  • UserID: User ID (e.g., U1234567890)
  • UserName: Slack username
  • RealName: User's real name
  • DisplayName: User's display name
  • Email: User's email address
  • Title: User's job title
  • DMChannelID: DM channel ID if available in cache (for quick messaging)

9. usergroups_list:

List all user groups (subteams) in the workspace.

  • Parameters:
  • include_users (boolean, default: false): Include list of user IDs in each group.
  • include_count (boolean, default: true): Include user count for each group.
  • include_disabled (boolean, default: false): Include disabled/archived groups.

  • Returns: CSV with fields: id, name, handle, description, user_count, is_external

> Required OAuth scopes: usergroups:read

10. usergroups_create:

Create a new user group in the workspace.

  • Parameters:
  • name (string, required): Name of the user group (e.g., "Engineering Team").
  • handle (string, optional): Mention handle without @ (e.g., "engineering"). If not provided, Slack will auto-generate one.
  • description (string, optional): Purpose or description of the group.
  • channels (string, optional): Comma-separated channel IDs for default channels where group mentions will be highlighted.

  • Returns: JSON with created group details (id, name, handle, description)

> Required OAuth scopes: usergroups:write

11. usergroups_update:

Update an existing user group's metadata.

  • Parameters:
  • usergroup_id (string, required): ID of the user group (e.g., "S1234567890").
  • name (string, optional): New name for the group.
  • handle (string, optional): New mention handle.
  • description (string, optional): New description.
  • channels (string, optional): New default channels (comma-separated IDs). This replaces existing default channels.

  • Returns: JSON with updated group details

> Required OAuth scopes: usergroups:write

12. usergroups_users_update:

Update the members of a user group. This replaces all existing members.

  • Parameters:
  • usergroup_id (string, required): ID of the user group (e.g., "S1234567890").
  • users (string, required): Comma-separated user IDs to set as members (e.g., "U123,U456,U789").

  • Returns: JSON with updated group details including new user list

> Required OAuth scopes: usergroups:write

13. usergroups_me:

Manage your user group membership: list groups you're in, join a group, or leave a group.

  • Parameters:
  • action (string, required): Action to perform - list to see your groups, join to add yourself, leave to remove yourself.
  • usergroup_id (string, optional): ID of the user group (e.g., "S1234567890"). Required for join and leave actions.

  • Returns:

  • For list: CSV with groups you're a member of
  • For join/leave: JSON with result message and updated group info

> Required OAuth scopes: usergroups:read (for list), usergroups:read + usergroups:write (for join/leave)

Resources

The Slack MCP Server exposes two special directory resources for easy access to workspace metadata:

1. slack:///channels — Directory of Channels

Fetches a CSV directory of all channels in the workspace, including public channels, private channels, DMs, and group DMs.

  • URI: slack:///channels
  • Format: text/csv
  • Fields:
  • id: Channel ID (e.g., C1234567890)
  • name: Channel name (e.g., #general, @username_dm)
  • topic: Channel topic (if any)
  • purpose: Channel purpose/description
  • memberCount: Number of members in the channel

2. slack:///users — Directory of Users

Fetches a CSV directory of all users in the workspace.

  • URI: slack:///users
  • Format: text/csv
  • Fields:
  • userID: User ID (e.g., U1234567890)
  • userName: Slack username (e.g., john)
  • realName: User’s real name (e.g., John Doe)

Setup Guide

  • Authentication Setup
  • Installation
  • Configuration and Usage

Environment Variables (Quick Reference)

Variable · Required? · Default · Description
SLACK_MCP_XOXC_TOKEN · Yes · nil · Slack browser token (xoxc-...)
SLACK_MCP_XOXD_TOKEN · Yes
· nil · Slack browser cookie d (xoxd-...)
SLACK_MCP_XOXP_TOKEN · Yes · nil · User OAuth token (xoxp-...) — alternative to xoxc/xoxd
SLACK_MCP_XOXB_TOKEN · Yes
· nil · Bot token (xoxb-...) — alternative to xoxp/xoxc/xoxd. Bot has limited access (invited channels only, no search)
SLACK_MCP_PORT · No · 13080 · Port for the MCP server to listen on
SLACK_MCP_HOST · No · 127.0.0.1 · Host for the MCP server to listen on
SLACK_MCP_API_KEY · No · nil · Bearer token for SSE and HTTP transports
SLACK_MCP_PROXY · No · nil · Proxy URL for outgoing requests
SLACK_MCP_USER_AGENT · No · nil · Custom User-Agent (for Enterprise Slack environments)
SLACK_MCP_CUSTOM_TLS · No · nil · Send custom TLS-handshake to Slack servers based on SLACK_MCP_USER_AGENT or default User-Agent. (for Enterprise Slack environments)
SLACK_MCP_SERVER_CA · No · nil · Path to CA certificate
SLACK_MCP_SERVER_CA_TOOLKIT · No · nil · Inject HTTPToolkit CA certificate to root trust-store for MitM debugging
SLACK_MCP_SERVER_CA_INSECURE · No · false · Trust all insecure requests (NOT RECOMMENDED)
SLACK_MCP_ADD_MESSAGE_TOOL · No · nil · Enable message posting via conversations_add_message by setting it to true for all channels, a comma-separated list of channel IDs to whitelist specific channels, or use ! before a channel ID to allow all except specified ones. If empty, the tool is only registered when explicitly listed in SLACK_MCP_ENABLED_TOOLS.
SLACK_MCP_ADD_MESSAGE_MARK · No · nil · When conversations_add_message is enabled (via SLACK_MCP_ADD_MESSAGE_TOOL or SLACK_MCP_ENABLED_TOOLS), setting this to true will automatically mark sent messages as read.
SLACK_MCP_ADD_MESSAGE_UNFURLING · No · nil · Enable to let Slack unfurl posted links or set comma-separated list of domains e.g. github.com,slack.com to whitelist unfurling only for them. If text contains whitelisted and unknown domain unfurling will be disabled for security reasons.
SLACK_MCP_USERS_CACHE · No · ~/Library/Caches/slack-mcp-server/users_cache.json (macOS)
~/.cache/slack-mcp-server/users_cache.json (Linux)
%LocalAppData%/slack-mcp-server/users_cache.json (Windows) · Path to the users cache file. Used to cache Slack user information to avoid repeated API calls on startup.
SLACK_MCP_CHANNELS_CACHE · No · ~/Library/Caches/slack-mcp-server/channels_cache_v2.json (macOS)
~/.cache/slack-mcp-server/channels_cache_v2.json (Linux)
%LocalAppData%/slack-mcp-server/channels_cache_v2.json (Windows) · Path to the channels cache file. Used to cache Slack channel information to avoid repeated API calls on startup.
SLACK_MCP_LOG_LEVEL · No · info · Log-level for stdout or stderr. Valid values are: debug, info, warn, error, panic and fatal
SLACK_MCP_GOVSLACK · No · nil · Set to true to enable GovSlack mode. Routes API calls to slack-gov.com endpoints instead of slack.com for FedRAMP-compliant government workspaces.
SLACK_MCP_ENABLED_TOOLS · No · nil · Comma-separated list of tools to register. If empty, all read-only tools and usergroups tools are registered; write tools (conversations_add_message, reactions_add, reactions_remove, attachment_get_data) require their specific env var OR must be explicitly listed here. When a write tool is listed here, it's enabled without channel restrictions. Available tools: conversations_history, conversations_replies, conversations_add_message, reactions_add, reactions_remove, attachment_get_data, conversations_search_messages, channels_list, usergroups_list, usergroups_me, usergroups_create, usergroups_update, usergroups_users_update.

*You need one of: xoxp (user), xoxb (bot), or both xoxc/xoxd tokens for authentication.

Limitations matrix & Cache

Users Cache Channels Cache Limitations
:x: :x: No cache, No LLM context enhancement with user data, tool channels_list will be fully not functional. Tools conversations_* will have limited capabilities and you won't be able to search messages by @userHandle or #channel-name, getting messages by @userHandle or #channel-name won't be available either.
:white_check_mark: :x: No channels cache, tool channels_list will be fully not functional. Tools conversations_* will have limited capabilities and you won't be able to search messages by @userHandle or #channel-name, getting messages by @userHandle or #channel-name won't be available either.
:white_check_mark: :white_check_mark: No limitations, fully functional Slack MCP Server.

Debugging Tools```bash

Run the inspector with stdio transport

npx @modelcontextprotocol/inspector go run mcp/mcp-server.go --transport stdio

View logs

tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
```

Security

  • Never share API tokens
  • Keep .env files secure and private

License

Licensed under MIT - see LICENSE file. This is not an official Slack product.

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
Slack MCP Server 4520f0c0 怎么安装?

在客户端按下面的安装命令接入:npx @modelcontextprotocol/inspector go run mcp/mcp-server.go --transport stdio。对应的包名是 @modelcontextprotocol/inspector。装完在客户端配置里引用同一个包或端点。

Slack MCP Server 4520f0c0 怎么在 Claude、Cursor 里配置?

它的传输方式是stdio · 本地进程,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Slack MCP Server 4520f0c0 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Slack MCP Server 4520f0c0 需要 API Key 吗?

资料标注需要OAuth 授权认证,使用前准备好对应凭据,并按最小权限配置。

Slack MCP Server 4520f0c0 支持哪些客户端?

资料标注支持 Claude、Cursor;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Slack MCP Server 4520f0c0 能提供哪些能力?

资料显示约 13 个工具;能力标签包括 Slack、Go、Claude、消息管理。具体工具清单以官方文档为准。

Slack MCP Server 4520f0c0 需要什么运行环境?

运行时为 Node.js;属于本地进程,需要在本机装好运行环境。

Slack MCP Server 4520f0c0 是本地还是远程?

它是本地进程(stdio),由客户端在本机拉起。传输方式为stdio · 本地进程。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。