Connecting AI agents to Slack with MCP: the official server and the alternatives
On this page
Slack runs an official MCP server at https://mcp.slack.com/mcp. It signs each person in with OAuth as themselves, needs a Slack app the workspace admin has approved, and works today from Claude (claude.ai, Desktop and Claude Code), Cursor and Perplexity without building anything. The old Slack reference server from modelcontextprotocol/servers is archived with an unpatched data-leak bug, so new setups should start with Slack’s own server.
Checked as of November 2026 against Slack’s MCP server overview, its Claude and Cursor setup pages, the Slack MCP and Skills Plugin page and the archived reference server.
Slack’s official MCP server
Slack announced the server on February 17, 2026, alongside the Real-time Search API. The overview page sets out how it works:
- Streamable HTTP only, at
https://mcp.slack.com/mcp. No SSE. - No Dynamic Client Registration. Every MCP client must be backed by a registered Slack app with a fixed app ID, and only apps published in the Slack Marketplace or internal apps may use MCP. Unlisted apps are refused.
- Confidential OAuth with the app’s
client_idandclient_secret, issuing a user token. PKCE is available for desktop clients. - Calls act as the signed-in user, so the agent sees the channels and DMs that person can see.
- Admins approve the client through Slack’s normal app approval process, and MCP activity shows up in Slack’s audit logs.
- If the app has an IP allowlist, MCP requests from other addresses are rejected.
The no-DCR rule is why a bare URL doesn’t work in most clients. The client has to present the client ID of an approved app, which is why Slack’s own setup instructions for each client include one.
Enterprise+ organizations using Okta can go further and manage access through the identity provider. Slack currently documents this only for Claude, and it needs an Org Owner in Slack, a Super Admin in Okta and an Owner in Claude.
Slack MCP tools
The server covers search (messages, files, users, channels), reading channel history and threads, sending, drafting and scheduling messages, canvases, lists, reactions, user profiles and a two-step file upload. Tool names seen in clients include slack_search_public, slack_search_public_and_private, slack_search_channels, slack_search_users, slack_read_channel, slack_read_thread, slack_send_message, slack_send_message_draft, slack_schedule_message, slack_create_canvas, slack_update_canvas, slack_read_canvas and slack_read_user_profile.
Each tool needs specific scopes on the user token. The ones that matter most for risk:
| Capability | Scopes |
|---|---|
| Search messages and channels | search:read.public, search:read.private, search:read.mpim, search:read.im |
| Read a channel or thread | channels:history, groups:history, mpim:history, im:history |
| Send or schedule a message | chat:write |
| Create a conversation | channels:write, groups:write, im:write, mpim:write |
| Create or update a canvas | canvases:read, canvases:write |
| Upload a file | files:write |
Rate limits match the Web API method behind each tool: Tier 3 (50+ per minute) for reading a channel or thread, Tier 2 for searching users and channels, and the special chat.postMessage limits for sending.
Set up the Slack MCP server in Claude Code
Slack’s documented route is its plugin, which configures the server and prompts for OAuth when it loads:
claude plugin install slack@claude-plugins-official
The plugin also adds Slack development skills. If you want only the MCP server, the plugin’s config is a normal HTTP entry with Slack’s client ID and a fixed callback port, which you can add yourself:
claude mcp add-json slack \
'{"type":"http","url":"https://mcp.slack.com/mcp","oauth":{"clientId":"1601185624273.8899143856786","callbackPort":3118}}'
Run /mcp in a session to sign in. If you’ve already connected Slack as a claude.ai connector, Claude Code also loads it through your claude.ai login; the Claude Code MCP docs show such connectors under names like claude.ai Slack.
Set up the Slack MCP server in Cursor
Install the plugin from an agent chat with /add-plugin slack, use the Add to Cursor button on Slack’s page, or add the entry to .cursor/mcp.json or ~/.cursor/mcp.json:
{
"mcpServers": {
"slack": {
"url": "https://mcp.slack.com/mcp",
"auth": {
"CLIENT_ID": "3660753192626.8903469228982"
}
}
}
}
Cursor shows a connect button for the server; select it to run the OAuth flow. The client IDs differ between Claude Code and Cursor because each is a separate Slack app your admin approves.
Connect Slack to Claude and claude.ai
Slack is in Claude’s connector directory, published by Slack. Open Customize, choose Connectors, select +, find Slack and complete the OAuth flow. On Claude Team and Enterprise plans, an Owner or Primary Owner has to add the connector for the organization before members can connect, and the Slack side still needs the app approved. The Claude custom connectors guide shows how a remote server is added the same way.
Codex isn’t on Slack’s list yet. The plugin page says that for Codex it installs the skills only, because the Slack MCP server isn’t available there.
The archived reference server
The Slack server in modelcontextprotocol/servers now lives in servers-archived, and the @modelcontextprotocol/server-slack npm package is marked deprecated. It was a local stdio server using a bot token (xoxb-) and eight tools, including slack_get_channel_history, slack_post_message and slack_reply_to_thread.
Johann Rehberger reported on May 27, 2025 that it posted messages without disabling link unfurling. An agent tricked into posting a link with data in the URL makes Slack’s preview bot fetch that URL, sending the data to the attacker with no click. The server was archived two days later and won’t be patched; the bug is CVE-2025-34072.
The servers README says the code is “now maintained by Zencoder” in zencoderai/slack-mcp-server. As of this writing its chat.postMessage calls still don’t pass unfurl_links or unfurl_media, and the repository hasn’t had a push since July 2025.
Community Slack MCP servers
A widely used community option is korotovsky/slack-mcp-server (MIT). It runs over stdio, SSE or HTTP and accepts a user OAuth token (xoxp-), a bot token (xoxb-, no search) or browser session values (xoxc- and xoxd-), which the README calls stealth mode because no app is installed in the workspace. Two defaults are sensible: posting through conversations_add_message is off unless SLACK_MCP_ADD_MESSAGE_TOOL enables it, optionally for listed channel IDs only, and link unfurling in posted messages stays off unless SLACK_MCP_ADD_MESSAGE_UNFURLING allows it.
Stealth mode is the part to think about. It uses your logged-in browser session, so no app goes through your workspace admin’s approval. In a company workspace, that’s a conversation to have with whoever owns Slack before you try it.
Why read history plus post message is risky
Slack is close to the textbook lethal trifecta in one server. Channel history and search are untrusted content, written by anyone in the workspace and, through Slack Connect, by people outside it. Private channels and DMs are private data. chat:write is a way out, and an unfurled link is another.
So decide, per agent, which half it gets:
- A research or summarizing agent gets search and read tools and no send tools.
- An agent that posts status updates gets
slack_send_messageand nothing that reads history. - When one agent needs both, every send waits for a person who reads the full message text and any links in it.
In Claude Code, that’s a deny or ask rule on the send tools, using the server name you chose. The Claude Code permissions guide covers the syntax:
{
"permissions": {
"deny": ["mcp__slack__slack_schedule_message"],
"ask": ["mcp__slack__slack_send_message", "mcp__slack__slack_send_message_draft"]
}
}
In Cursor, keep the send tools out of the MCP allowlist so they always prompt or go to the classifier. Slack’s own security note makes the same point from the other side: be careful about connecting other MCP servers in the same session, since that’s how Slack content reaches tools that can send it elsewhere. The MCP security guide covers the wider set of risks.