/ 目錄 / 演練場 / 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