Slack MCP Server
An MCP server for Slack: channel history, threads, DMs, search and unreads, with posting off by default
- 1,879 ★ on the repository
- Last commit
- MIT
Broad access
Why this level
- Reads private and work conversations
- Uses Slack tokens and session cookies
- Can post as the user when enabled
Install
- Works in
In your terminal, with SkillFoxx CLI
npx skillfoxx add mcp/slack-mcp-serverDetects the agents on your machine, shows the access level and pins the version.
Other ways to install
Access and checks
How we reviewBroad accessThe tool can change data, run commands or handle secrets.
- Reads private and work conversations
- Uses Slack tokens and session cookies
- Can post as the user when enabled
This is third-party code. Review the repository files before installing.
What it does
The server lets the agent read Slack channels, threads, DMs and group DMs, search messages with filters and collect unreads with DMs first. History can be fetched by time range or message count, and channels and users can be referenced by name. Posting, reactions and marking as read are enabled through separate variables and can be limited to specific channels. It works with a user token, a bot token or browser session tokens.
Who it is for. For Slack users who want an agent to go through conversations and find relevant discussions.
Good fit when
- You need a summary of today's unreads
- You need to find where a decision was discussed in old threads
- You need to draft a channel reply based on history
Not a fit when
- Workspace rules forbid session tokens and third-party integrations
- Your team does not use Slack
Example request
Collect my Slack unreads for today, DMs and mentions firstMCP
- Transport
- stdio, sse, http
- Authentication
- key is optional
Environment variables
SLACK_MCP_XOXP_TOKENsecret- User OAuth token. One token option is required.
SLACK_MCP_XOXB_TOKENsecret- Bot token with limited access.
SLACK_MCP_XOXC_TOKENsecret- Browser token, used together with SLACK_MCP_XOXD_TOKEN.
SLACK_MCP_XOXD_TOKENsecret- Browser session cookie d.
SLACK_MCP_ADD_MESSAGE_TOOL- Enables posting: true or a list of channel IDs.
Limitations
Needs one of: xoxp, xoxb, or an xoxc/xoxd browser token pair. Browser tokens work without installing an app but may violate company policy. A bot token cannot search and only sees channels it was invited to. Some tools require browser tokens. Slack availability from Russia is not guaranteed. Not an official Slack product.
How to disable. Remove the slack block from the MCP config or disable the extension in Claude Desktop. Revoke the token or log out of the browser session.
FAQ
Can the agent post to channels?
Only if SLACK_MCP_ADD_MESSAGE_TOOL is set. You can allow all channels or list specific IDs.
Which token should I use?
xoxp covers most tools through a regular app, xoxb is limited to the bot's channels and has no search, xoxc/xoxd need no app install and unlock tools such as saved items.
Discussion
No questions or reviews yet.
Related
MCP serversSlack export without admin rights and a local MCP server: the agent analyzes your messages, threads, files and users
Slack MCP and Skills Plugin: the official Slack plugin
Slack MCP and Skills Plugin
Slack skills and MCP in one plugin: Claude Code, Cursor and Codex get search, messaging, Block Kit and nine skills for building Slack apps
A Telethon MCP server: the agent reads and sends messages and manages chats, contacts and folders in your Telegram account
An MCP server for macOS: an agent reads, searches and sends messages in the Messages app on your Mac
Pachca MCP
mcp-pachca
MCP server for the Pachca corporate messenger: chats, message search, users and sending messages
A Slack CLI and skill: the agent reads channels and threads and searches messages and files, and drafts or sends only when you ask
Comparison with similar tools
Entries that share the main search query, and how they differ.
| Entry | Official | Authentication | Repository stars | Main difference |
|---|---|---|---|---|
| Slack MCP Server (this entry) | no | key is optional | 1,879 | |
| agent-slack | no | 568 | a Slack CLI and skill | |
| DingTalk Workspace CLI (dws) | yes | 3,843 | official DingTalk CLI with agent skills |
README in short
The README lists tools for history, threads, search, channel lists, reactions, user groups, unreads and saved items, plus resources with channel and user directories. Installation is covered via the Claude Desktop DXT extension, the Cursor installer, npx and Docker. The server runs over stdio, SSE and HTTP and supports proxies, Enterprise Slack and GovSlack. The user and channel cache is needed for lookups by name. MIT licensed.