/ 目录 / 演练场 / slack-mcp-server
● 社区 korotovsky ⚡ 即开即用

slack-mcp-server

作者 korotovsky · korotovsky/slack-mcp-server

The most powerful Slack MCP server — stealth mode, DMs, group DMs, unread messages, search, and Enterprise/GovSlack support.

slack-mcp-server is a Go-based MCP server providing 15 tools for Slack workspace interaction. Supports three auth modes: stealth (no permissions needed, uses xoxc/xoxd tokens), OAuth (xoxp), and bot (xoxb). Features include channel history with smart pagination, unread message fetching with @mention filtering, message search, DM/group DM support, reactions, user group management, and Enterprise/GovSlack compatibility.

为什么要用

核心特性

实时演示

实际使用效果

slack-mcp-server-2.replay ▶ 就绪
0/0

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "slack-mcp-server-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/korotovsky/slack-mcp-server"
      ]
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "slack-mcp-server-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/korotovsky/slack-mcp-server"
      ]
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "slack-mcp-server-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/korotovsky/slack-mcp-server"
      ]
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "slack-mcp-server-2": {
      "command": "TODO",
      "args": [
        "See README: https://github.com/korotovsky/slack-mcp-server"
      ]
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "slack-mcp-server-2",
      "command": "TODO",
      "args": [
        "See README: https://github.com/korotovsky/slack-mcp-server"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "slack-mcp-server-2": {
      "command": {
        "path": "TODO",
        "args": [
          "See README: https://github.com/korotovsky/slack-mcp-server"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add slack-mcp-server-2 -- TODO 'See README: https://github.com/korotovsky/slack-mcp-server'

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: slack-mcp-server

How to catch up on unread Slack messages with AI assistance

👤 Busy professionals drowning in Slack notifications ⏱ ~10 min beginner

何时使用: Monday morning or after PTO — you have hundreds of unread messages across channels.

前置条件
  • Slack token (xoxc/xoxd for stealth, xoxp for OAuth) — Extract from browser cookies or create via Slack app settings
步骤
  1. Get unread summary
    Show me all my unread Slack messages, prioritized by @mentions first, then channels with most activity.✓ 已复制
    → Prioritized list of unread channels with message counts and highlights
  2. Read key threads
    Show me the full thread for the @mention in #engineering. Summarize what they need from me.✓ 已复制
    → Thread content with action items extracted
  3. Mark as read
    Mark #random and #general as read — I'll skip those.✓ 已复制
    → Channels marked as read

结果: Inbox zero on Slack in 10 minutes instead of 30.

注意事项
  • Stealth mode tokens expire periodically — Re-extract xoxc/xoxd tokens from your browser when they expire

Search Slack history for decisions and context

👤 Anyone who needs to find a specific conversation or decision from the past ⏱ ~5 min beginner

何时使用: You need to find that one Slack message where a decision was made weeks ago.

前置条件
  • Slack token configured — Set SLACK_TOKEN environment variable
步骤
  1. Search messages
    Search Slack for messages about 'API redesign' from the last month in engineering channels.✓ 已复制
    → Matching messages with timestamps, authors, and context
  2. Get the full thread
    Show me the full thread where the final decision was made.✓ 已复制
    → Complete thread with all replies

结果: Found the specific conversation with the context you needed.

注意事项
  • Search only works within channels you have access to — If a message was in a private channel, you need to be a member

组合

与其他 MCP 搭配,撬动十倍杠杆

slack-mcp-server-2 + github

Cross-reference Slack discussions with GitHub PRs and issues

Search Slack for mentions of PR #142, then get the PR details from GitHub and summarize the full context.✓ 已复制
slack-mcp-server-2 + filesystem

Export Slack conversations to files for documentation

Export the full #architecture-decisions channel history to ~/docs/architecture-decisions.md.✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
conversations_history channel: str, limit?: int Fetch messages from a channel or DM 1 Slack API call
conversations_unreads none Get all unread messages across channels Multiple Slack API calls
conversations_search_messages query: str, filters? Search messages across workspace 1 Slack API call
conversations_replies channel: str, ts: str Get thread replies 1 Slack API call
channels_list none List workspace channels 1 Slack API call
users_search query: str Find users by name or email 1 Slack API call
conversations_mark channel: str, ts: str Mark a channel as read (disabled by default) 1 Slack API call

成本与限制

运行它的成本

API 配额
Slack API rate limits: varies by method, typically 50+ req/min for most endpoints
每次调用 Token 数
300–2000 tokens per tool call
费用
Free — Slack API is free. Enterprise features require Slack Enterprise Grid.
提示
Use conversations_unreads for efficient catch-up instead of reading every channel individually.

安全

权限、密钥、影响范围

凭据存储: Slack tokens in SLACK_TOKEN environment variable. For stealth mode, extract xoxc + xoxd from browser.
数据出站: All calls to Slack API (api.slack.com). Supports proxy configuration.

故障排查

常见错误与修复

401 Invalid auth

Your Slack token expired or is invalid. Re-extract browser tokens (stealth) or regenerate the OAuth/bot token.

验证: curl -H 'Authorization: Bearer $SLACK_TOKEN' https://slack.com/api/auth.test
Channel not found

Use the channel name with # (e.g., #general) or the channel ID. Run channels_list to find the correct identifier.

验证: channels_list
Rate limited

Slack has per-method rate limits. The server handles backoff automatically, but reduce concurrent requests.

验证: Check server logs for retry messages

替代方案

slack-mcp-server 对比其他方案

替代方案何时用它替代权衡
Discord MCPYour team uses Discord instead of SlackDifferent platform, similar coverage

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills