SuperAPIAI Directory

slack-mcp-server

github.com · AI developer platforms

Slack DMs, channels, threads and search without an OAuth app or admin approval.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

Slack MCP Server aims to let AI agents go directly into your Slack workspace, without installing a Slack app, without admin approval, and without upgrading to Business+, to follow up on unread messages, parse threads, search, and track mentions. It works through the Slack login session already present in your Chrome browser, reading Slack as you and with your permissions, so it cannot read channels you do not have access to, nor can it impersonate other users.

Main capabilities

The server provides a total of 20 tools, divided into three categories:

  • 13 read-only operations: read channels, direct messages, threads, and search results, export complete conversation history with threads, check unread status, and resolve user information. Some read tools support include_rich_message_fields: true to display attachments, blocks, files, reactions, and metadata.
  • 4 write-path tools: send replies, add or remove reactions, and mark conversations as read. Each write tool carries MCP's destructive annotation, and compatible clients will ask before executing.
  • 3 local workflow tools: bind workflow types to channels, priority contacts, retention policies, and cadence. slack_catch_me_up reads that scope locally and provides evidence to the agent, such as which threads are unanswered and for how long, what priority contacts said or what was pinned, and which conversations are actually making progress. The server is only responsible for collecting; summaries are generated by the agent that calls it.

The package includes six editable templates: oncall-handoff, support-triage, exec-monday, sprint-tracker, customer-feedback, and incident-room.

Tool advertising can be trimmed: SLACK_MCP_TOOLS=essentials advertises only six tools (unread, history, search, thread, user lookup, send), SLACK_MCP_TOOLS=read advertises only the 13 read-only operations, --tools=slack_x,slack_y specifies an explicit set, and the default is all 20. Filtering only changes what is advertised, not what can be called.

Usage

Node 22 or 24 is recommended; the versions supported and tested by CI are Node 20+.

Persistent CLI approach:

npm install -g @jtalk22/slack-mcp
slack-mcp --setup

After setup is complete, copy the stdio command printed by --setup and paste it into your client, or run the claude mcp add line it prints, then fully restart the client and have the agent run slack_health_check. If the workspace name appears in the response, the connection is working.

On macOS, setup can extract and persist the selected storage backend from Chrome. Other platforms require SLACK_TOKEN and SLACK_COOKIE to be provided through the client's environment configuration. For Docker, HTTP, and detailed client examples, see docs/SETUP.md and docs/DEPLOYMENT-MODES.md.

Credential extraction process: --setup looks for the latest xoxc- token in Chrome's on-disk LevelDB, snapshots the cookie SQLite database and its WAL companion files, retrieves Chrome Safe Storage from the macOS Keychain, and runs Chrome-compatible PBKDF2 + AES-128-CBC decryption locally. No DevTools, clipboard steps, browser flags, or open Slack tabs are required. On failure, it indicates the specific stage, such as keychain_timeout, no_slack_cookie_row, cookie_decrypt_failed, etc.

Credential storage supports three backends: auto, keychain-only, and file. It provides owner-only readable token files, a Keychain path with no plaintext credentials written to disk, atomic writes, cross-process locking, refresh mutual exclusion, proactive health checks, and automatic refresh on macOS, and supports isolated configuration for work and personal Slack.

Use Cases

  • Free workspaces: Free workspaces retain 90 days of message history, allow 10 app integrations, and include only basic AI. Advanced AI features (cross-workspace AI search, channel recaps, Slackbot as an agent, AI workflow generation) start with Business+, at $15 per user per month billed annually. This package lets such workspaces gain Slack agent capabilities using an existing AI subscription.
  • App slots are full: It does not install a Slack app and does not consume one of the 10 app slots.
  • NoObtaining administrator approval: it does not require administrator approval, because it is not an app that requires approval.
  • Exporting still-visible content: on the free plan, history older than 90 days will be inaccessible, and slack_get_full_conversation can export DMs and private channels along with threads within the window period. It cannot retrieve content that has already expired.

Limitations and caveats

  • Enterprise Grid: Grid runs aggressive session anomaly detection, and browser session automation may trigger it, causing the session to be flagged and terminated. On Grid, Slack's official MCP server should be used.
  • Browser session automation should be treated as an acceptable-use decision for you and your workspace. It does not circumvent server-side retention, DLP, compliance export, or audit controls.
  • The credential extraction mechanism uses the same access patterns as credential stealers, and Chrome App-Bound Encryption exists precisely to make this kind of reading harder. The difference is that you run it on your own machine, against your own session, and no data is transmitted. The source code is plain JavaScript in the repository, and auditing it before handing over a live session is recommended.
  • Provenance labeling: each message carries origin (self, internal, external, bot, unknown) and author_trusted, derived from fields Slack already returns, with no additional API calls. Authors who cannot be clearly attributed to the workspace are reported as untrusted. SLACK_MCP_PROVENANCE=off|label|strict, with label as the default. In strict mode, slack_send_message is withheld after a session has read external-author text, and must be released by the caller setting confirm_untrusted_context.
  • Two surfaces are still unlabeled: the display names, real names, and titles returned by user tools, and the channel topics and purposes returned by slack_list_conversations, are all free text that an attacker can set.
  • The four write-path tools are hidden from tools/list and rejected at dispatch, because clients can call names that were never provided.
  • slack_session_report returns only counts: the number of messages read, the number of external-author messages and their origins, the number of attempted writes, and the number of withheld writes, without message text, channel names, or user IDs.
  • Willcredentials expire, for varying durations. slack_token_status shows their age. When Slack rejects them (invalid_auth, not_authed, token_expired, token_revoked, account_inactive, or HTTP 401), run npx -y @jtalk22/slack-mcp --setup. On macOS, slack_refresh_tokens or --refresh-tokens can be used to refresh.
  • Outbound calls are rate-limited by default: SLACK_MCP_MIN_REQUEST_INTERVAL_MS defaults to 350, and SLACK_MCP_MAX_CONCURRENCY defaults to 3. Rate limiting reduces risk but does not eliminate it.
  • The user cache is used only for username lookup, is populated on demand, holds at most 500 entries, has a TTL of one hour, and does not cache message content or channel history.
  • Supports MCP 2026-07-28 and the 2025 revisions; the same binary negotiates the version over stdio, and is stateless over HTTP (no Mcp-Session-Id, GET / DELETE return 405).
  • Each version is published through CI with npm provenance, and can be verified with npm audit signatures.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools