SlackMCP
Provides tools for interacting with a Slack workspace via Slack's Web API, including listing and reading channels, DMs, and threads; searching messages; listing users; sending and editing messages; opening DMs; getting permalinks; and adding reactions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SlackMCP send a message in #general saying I'll be 10 minutes late to standup"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SlackMCP
A self-hosted Model Context Protocol server for Slack. SlackMCP gives AI assistants such as Codex, Claude, and other MCP clients direct access to your Slack workspace. Your assistant can read, search, and send messages as you, with no signatures, footers, or attribution added.
SlackMCP runs on your own machine and talks directly to Slack's Web API. It uses no hosted proxy and sends no telemetry, and your token stays on your machine.
Why SlackMCP
Messages are sent exactly as written. SlackMCP never adds "sent by" text, signatures, footers, branding blocks, or attribution metadata. What you write is what your colleagues see.
It acts as you. With a User OAuth Token, messages come from your own Slack account, not a bot.
Data goes only to Slack. Requests go only to
https://slack.com/api/, redirects are refused, and tokens and message bodies are never logged.Results are readable. Read and search results replace raw user IDs with display names, so assistants can follow a conversation without extra lookups.
Writes are handled safely. Writes are never retried automatically, so a failed or uncertain send cannot produce a duplicate. Rate limits come back with Slack's suggested retry delay.
It follows the standard. It is built on the official MCP SDK and works with both earlier and current (2026-07-28) MCP stdio clients.
Related MCP server: Slack MCP Server
Features
Tool | Description | Required scopes |
| Verify the connected workspace and account | None |
| List channels, private channels, DMs, and group DMs |
|
| Read channel or DM history |
|
| Read a message and its thread replies | Matching |
| Search every conversation the token can see |
|
| List workspace members and their IDs |
|
| Send a message, optionally as a thread reply |
|
| Replace the text of an existing message |
|
| Open or resume a DM or group DM |
|
| Get a shareable link to a message | None |
| Add an emoji reaction to a message |
|
Each tool carries MCP annotations (read-only, destructive, idempotent), so clients can tell safe reads from writes and ask for confirmation before writes.
Requirements
Node.js 22.16 or later
A Slack workspace where you can install apps (some workspaces need admin approval)
An MCP-compatible client, such as Codex, Claude Desktop, Claude Code, or Cursor
Installation
git clone https://github.com/jaggerjack61/SlackMCP.git
cd SlackMCP
npm ci --ignore-scriptsConfiguration
1. Create the Slack app
Go to api.slack.com/apps and choose Create New App → From a manifest.
Select your workspace and paste the contents of
slack-app-manifest.json. The manifest requests every user scope listed above. If you only need to send messages, you can trim it tochat:write.Under OAuth & Permissions, click Install to Workspace and approve.
Copy the User OAuth Token (starts with
xoxp-).
User or bot token? A User OAuth Token (
xoxp-) acts as your own account and is required for search and for reading channel threads. A Bot User OAuth Token (xoxb-) acts as the app's bot user. Either way, Slack decides the sender name and any app labels it shows; SlackMCP cannot change these.
2. Store the token
cp .env.example .env
chmod 600 .envEdit .env:
SLACK_TOKEN=xoxp-your-token-hereSlackMCP loads the .env file next to package.json, whatever directory your client starts it from. A SLACK_TOKEN already set in the process environment takes precedence. Never commit .env or paste your token into a chat.
3. Register the server with your MCP client
Codex. Add the following to ~/.codex/config.toml (template: config/codex.toml.example):
[mcp_servers.slack_local]
command = "node"
args = ["/absolute/path/to/SlackMCP/src/index.js"]Claude Desktop, Cursor, and other JSON-configured clients. Merge the following into the client's mcpServers object (template: config/mcp.json.example):
{
"mcpServers": {
"slack-local": {
"command": "node",
"args": ["/absolute/path/to/SlackMCP/src/index.js"]
}
}
}If your client can't find node, replace it with the full path printed by command -v node.
4. Verify
Restart or reload your MCP client, then ask your assistant to run slack_auth_test. It should report your workspace and Slack user. If another Slack integration is also installed, tell your assistant to use slack-local for messaging.
Usage
Once connected, ask your assistant in plain language:
"Summarise what I missed in #engineering today."
"Find the thread where we discussed the Q3 launch date."
"Reply in that thread: 'Confirmed for the 14th, I'll update the tracker.'"
"DM Priya the link to that message."
Formatting
Messages use Slack's mrkdwn syntax (*bold*, _italic_, <https://example.com|label>), not standard Markdown. Set mrkdwn: false on slack_send_message to send plain text. Link and media previews (unfurls) are off by default and can be turned on per message. Messages can be up to 40,000 characters.
Addressing conversations
Send and edit tools take a conversation ID (starting with C, G, or D), not a user ID. To message a person, call slack_open_dm first to get their DM conversation ID. Message timestamps (ts) are passed as strings.
User names
slack_read_channel, slack_read_thread, and slack_search_messages replace user IDs with names:
<@U…>mentions in message text become@Nameeach message gets a
user_namefielda top-level
user_namesmap keeps the original IDs, so your assistant can still write<@ID>mentions when replying
Names are fetched with users.info and cached for as long as the server runs. If a name can't be fetched, the ID is left as it is and the read still succeeds.
Pagination
Read and list tools return one page at a time. To get the next page, pass response_metadata.next_cursor as cursor. Search pages through results with page and reports the total in paging.pages.
Network and proxy configuration
On Node.js 24 or later, set NODE_USE_ENV_PROXY=1 when launching to send requests through HTTP_PROXY / HTTPS_PROXY. Configure your MCP client to pass these variables on to the server (along with NO_PROXY and NODE_EXTRA_CA_CERTS if needed). Don't write proxy credentials into client config files.
Security
Your token is read once at startup from
.envor the environment. Restart the server after changing it.Requests are sent only to
https://slack.com/api/, and redirects are refused.Tokens and message bodies are never logged. Errors return only Slack's error code and, where relevant, the missing scopes.
Writes are never retried automatically. If a send fails because of a network error, check the conversation before sending again.
Search can return results from private channels and DMs your account can access. Grant only the scopes you need.
To report a vulnerability, please open a private security advisory on GitHub rather than a public issue.
Development
npm start # run the stdio server (waits for an MCP client)
npm test # run the test suiteThe test suite runs a real MCP client against the server over stdio, with Slack's responses mocked. It covers protocol negotiation for earlier and current MCP clients, exact message preservation, edit behaviour, pagination, input validation, user-name resolution, missing credentials, rate limiting, and failures where delivery is unknown. No real Slack messages are sent.
Project structure
src/
index.js Entry point: loads .env and starts the stdio transport
server.js Registers the MCP tools and handles errors
tools.js Tool definitions, input schemas, and Slack method mapping
slack.js Slack Web API client
users.js User ID → display name resolution with caching
test/ Node test runner suites and a stdio test fixture
config/ Sample client configurationsTroubleshooting
Symptom | Resolution |
|
|
| The error lists the scopes needed. Add them in the Slack app settings and reinstall the app. |
| The account is not a member of that channel. Join it first. |
| Check the conversation ID. To message a person, call |
Search or thread reads fail with a bot token | These need a User OAuth Token ( |
Client reports | Use the absolute path from |
References
License
Released under the MIT License.
Available Tools
11 toolsslack_add_reactionB
Add an authorized emoji reaction to a message. Use an emoji name without colons.
Inputs: name (required), channel (required), timestamp (required).
slack_auth_testARead-onlyIdempotent
Check the configured token and identify the connected Slack workspace and account.
Inputs: no named parameters.
slack_edit_messageADestructiveIdempotent
Replace an editable message with the exact supplied body. No signature or attribution is added. Only edit when authorized. Sending blocks:[] clears existing structured message blocks; Slack may retain an edited indicator.
Inputs: ts (required), text (required), channel (required), parse.
slack_get_permalinkARead-onlyIdempotent
Get the Slack URL for a message using its channel and timestamp.
Inputs: channel (required), message_ts (required).
slack_list_conversationsBRead-onlyIdempotent
List visible Slack channels and DMs. Follow response_metadata.next_cursor for more pages.
Inputs: limit, types, cursor, exclude_archived.
slack_list_usersBRead-onlyIdempotent
List workspace users to resolve user IDs. Follow response_metadata.next_cursor for more pages.
Inputs: limit, cursor.
slack_open_dmAIdempotent
Open or resume a direct message with explicitly authorized users. Returns a conversation ID for sending. Does not send a message.
Inputs: users (required).
slack_read_channelARead-onlyIdempotent
Read a page of channel or DM history, newest first. Requires access to the conversation. Follow next_cursor for more pages. User mentions in text are shown as @name; user_names maps user IDs to names (use <@ID> to mention someone when sending).
Inputs: channel (required), limit, cursor, latest, +1 more.
slack_read_threadARead-onlyIdempotent
Read a parent message and its thread replies. A user token is needed for public/private channel threads. Follow next_cursor for more pages. User mentions in text are shown as @name; user_names maps user IDs to names (use <@ID> to mention someone when sending).
Inputs: ts (required), channel (required), limit, cursor.
slack_search_messagesARead-onlyIdempotent
Search messages visible to the token, including private conversations it can access. Requires a user token with search:read. Use Slack search operators to limit the query. Follow paging.pages using page. User mentions in text are shown as @name; user_names maps user IDs to names (use <@ID> to mention someone when sending).
Inputs: query (required), page, sort, count, +2 more.
slack_send_messageA
Send the exact supplied message body to an authorized Slack channel or DM, with no added signature, footer, blocks, or attribution metadata. Only send when the user authorized the content and destination. Do not retry blindly after an uncertain result.
Inputs: text (required), channel (required), parse, mrkdwn, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Tools mostly target distinct resources/actions (list vs read vs send vs search vs edit). The only mild overlaps are slack_read_channel vs slack_read_thread and slack_open_dm vs slack_send_message, but descriptions clearly differentiate them (history vs thread replies, and opening vs sending).
All tools use a consistent slack_ prefix and follow verb_noun ordering (list_conversations, read_channel, send_message). The only minor deviation is slack_auth_test, where the noun/verb order is inverted, but it remains readable.
Eleven tools is well within the 3-15 sweet spot for a Slack messaging surface. Each tool covers a distinct operation (auth, list, read, search, send, edit, react, permalink, open DM) without redundancy.
Core read/write workflows (list, read, search, send, edit, react, permalink, open DM) are covered. Minor gaps remain: no delete/remove message, no documented way to send a thread reply (thread_ts not exposed), and no file upload support.
Related MCP Connectors
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that enables AI assistants to access Slack workspace data, including channels, messages, threads, and user information.3MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server for Slack workspace integration. This server allows AI assistants to interact directly with your Slack workspace, providing tools to manage channels, send messages, list users, and upload files.1MIT
- FlicenseNot gradedqualityDmaintenanceA Slack MCP server that gives AI assistants tools to read, search, and interact with Slack workspaces.-
- AlicenseAqualityDmaintenanceAn MCP server that enables AI agents to read and write Slack messages as the user, not as a bot, using Slack user tokens for authentic actions across multiple workspaces.101MIT