Skip to main content
Glama

slack-mcp

A lean MCP server that acts in Slack as you, through a user OAuth token (xoxp-…). One small Python process covers messaging, threads, search, users, channels, user groups and reactions, plus the APIs most Slack MCP servers skip: scheduled messages, canvases and Slack Lists.

Tools

Tool

What it does

Slack methods

conversations_history

Channel or DM messages as CSV; limit is a count (50) or a window (1d, 2w, 3m)

conversations.history

conversations_replies

A thread as CSV

conversations.replies

conversations_add_message

Post as you; markdown is rendered by Slack (markdown_text), unfurling off

chat.postMessage

conversations_preview_message

Post a DRAFT of a text message to your own DM and return a preview_hash; conversations_add_message with that hash sends only the identical payload, once

chat.postMessage

conversations_update_message

Edit the text of a message you posted (markdown by default)

chat.update

conversations_delete_message

Delete a message you posted

chat.delete

conversations_search_messages

Search with channel, user, date and thread filters, or fetch one message by URL

search.messages

users_search

Find users by ID, handle, name or email, with their DM channel

users.list, users.info

channels_list / channels_me

All channels, filtered and sorted / channels you are in

conversations.list, users.conversations

usergroups_list / usergroups_me

User groups / the groups you belong to (read-only)

usergroups.list

reactions_add / reactions_remove

Emoji reactions

reactions.*

schedule_message, list_scheduled_messages, delete_scheduled_message

Scheduled messages; text is markdown by default, like posting

chat.scheduleMessage, chat.scheduledMessages.list, chat.deleteScheduledMessage

canvas_create, canvas_edit, canvas_find_sections, canvas_read, canvas_delete

Canvases from and to markdown

canvases.*, files.info

list_create, list_items, list_item_create, list_items_update, list_item_delete, list_delete

Slack Lists (paid plans); list_delete removes the List's file because Slack has no List-delete method

slackLists.*, files.delete

Wherever a tool takes a channel, it accepts an ID, #channel-name, or @user for that user's DM. conversations_add_message, conversations_preview_message and schedule_message also accept @a,@b for a group DM with those users (it needs the mpim:write scope; Slack returns the existing group DM when one exists). Only those three tools open a DM that does not exist yet; read tools and conversations_update_message fail instead. A preview's hash covers the resolved channel, thread_ts, content_type and the exact text; pending previews are held in memory, so a server restart drops them. A user is matched by ID, handle, then display or real name, and an ambiguous name is refused. Paging cursors carry the original window and page size. Tool names and parameters match korotovsky/slack-mcp-server for the overlapping tools, so existing prompts and permission rules keep working.

Related MCP server: Slack MCP Server

Message checks

Before any text is sent, conversations_add_message, conversations_preview_message, conversations_update_message and schedule_message check it locally. A text that would render wrongly is refused before any Slack call is made; the refusal lists what is wrong and carries the corrected text to retry with. A message sent as blocks is not checked.

Check

When

Refuses

Dialect

always

Slack mrkdwn under text/markdown: <url|label> links, • bullets, and *single-asterisk* spans (italic in markdown, bold in mrkdwn)

Mentions

always

a bare @name, which notifies no one: use <@U…>, <!subteam^S…>, or backticks

paragraphs

opt-in

a paragraph or list item over 80 words or 5 sentences

plain-markup

opt-in

markup in a text/plain message, where it shows literally

Turn the opt-in rules on in the launcher with SLACK_MCP_STYLE, a comma-separated list: export SLACK_MCP_STYLE=paragraphs,plain-markup. An unknown rule name stops the server at startup.

slack-mcp-check runs the same checks offline, with no token and no network call:

slack-mcp-check [--content-type text/plain] [--style paragraphs,plain-markup] [--json] [FILE]

It reads the text from FILE or standard input and exits 0 (passes), 1 (refused) or 2 (could not check). With --json it prints one object: {"schema": 1, "ok": false, "content_type": "text/markdown", "style": [], "issues": [{"kind": "dialect", "message": "…"}], "retry": {"content_type": "text/markdown", "text": "…"}}; retry is null when there is no corrected text. --style defaults to SLACK_MCP_STYLE.

Setup

  1. Create a Slack app at https://api.slack.com/apps → From a manifest:

    {
      "display_information": { "name": "Slack MCP" },
      "oauth_config": {
        "scopes": {
          "user": [
            "channels:history", "channels:read", "groups:history", "groups:read",
            "im:history", "im:read", "im:write", "mpim:history", "mpim:read", "mpim:write",
            "users:read", "users:read.email", "chat:write", "search:read",
            "usergroups:read", "reactions:write",
            "canvases:read", "canvases:write", "files:read", "files:write", "lists:read", "lists:write"
          ]
        }
      },
      "settings": { "org_deploy_enabled": false, "socket_mode_enabled": false, "token_rotation_enabled": false }
    }

    Drop the scopes for tools you will not use; a call that needs a missing scope fails with missing_scope (token lacks scope: …).

  2. Install to Workspace and copy the User OAuth Token.

  3. Register a launcher that reads the token from your secret manager at startup, so the token never lands in a config file or on a command line:

    #!/usr/bin/env bash
    # slack-mcp-start.sh
    SLACK_USER_TOKEN="$(op read 'op://Private/Slack MCP/token')" || exit 1   # or any secret manager
    export SLACK_USER_TOKEN
    exec uvx --from git+https://github.com/asaphe/slack-mcp@v0.2.0 slack-mcp

    To install both commands (slack-mcp and slack-mcp-check) once instead of resolving them at each start, run uv tool install git+https://github.com/asaphe/slack-mcp@v0.2.0 and end the launcher with exec slack-mcp.

    claude mcp add slack --scope user -- /path/to/slack-mcp-start.sh

    Avoid claude mcp add … -e SLACK_USER_TOKEN="$(…)": the shell expands the secret before Claude Code runs, and it is stored in plain text in ~/.claude.json.

Security

  • The token is read from SLACK_USER_TOKEN only, sent only in the Authorization header to slack.com/api/ and, for canvas_read, to files.slack.com over HTTPS (any other file URL is refused and redirects are not followed). It is never logged or included in errors.

  • Posting tools act as you. Gate them in your MCP client (for Claude Code: permissions.ask on mcp__slack__conversations_add_message, schedule_message, canvas_create, canvas_edit, list_create, list_item_create, list_items_update, delete_scheduled_message, reactions_*).

  • No telemetry, no disk cache; user and channel directories live in memory for the process lifetime.

  • Tools run in worker threads, so a slow Slack call or a rate-limit wait never blocks the MCP connection.

Development

uv sync --all-groups
uv run pytest
uv run ruff check . && uv run ruff format --check . && uv run mypy src

License

MIT

Available Tools

28 tools
canvas_createA
Destructive

Create a canvas from markdown. channel_id tabs it in that channel; omit for a standalone canvas.

Inputs: title, channel_id, markdown_content.

canvas_deleteB
Destructive

Delete a canvas (permanent).

Inputs: canvas_id (required).

canvas_editA
Destructive

Apply one edit. operation: insert_at_start|insert_at_end|insert_before|insert_after|replace|delete|rename. insert_before/insert_after/delete need section_id (canvas_find_sections); replace without section_id replaces the whole canvas; rename uses markdown_content as the new title.

Inputs: canvas_id (required), operation (required), section_id, markdown_content.

canvas_find_sectionsB
Read-only

Find section IDs in a canvas by text and/or type (h1, h2, h3, any_header, list, table, ...).

Inputs: canvas_id (required), contains_text, section_types.

canvas_readC
Read-only

A canvas's title and text content.

Inputs: canvas_id (required).

channels_listB
Read-only

Workspace channels as CSV. channel_types: comma-separated public_channel, private_channel, im, mpim. query: case-insensitive substring over query_targets (name, topic, purpose). sort: 'popularity' (member count).

Inputs: channel_types (required), sort, limit, query, +2 more. Returns: result

channels_meB
Read-only

Conversations you are a member of, as CSV. channel_types as in channels_list.

Inputs: limit, cursor, channel_types. Returns: result

conversations_add_messageA
Destructive

Post a message as you. content_type: 'text/markdown' (standard markdown, rendered by Slack) or 'text/plain'. blocks: a Block Kit array, which takes precedence; text then becomes the notification fallback. preview_hash: from conversations_preview_message; the post is refused unless channel, thread_ts, content_type and text are exactly what was previewed, and each preview sends once. Link and media unfurling is off.

Inputs: channel_id (required), text, blocks, thread_ts, +2 more. Returns: result

conversations_delete_messageB
Destructive

Delete a message you posted (permanent).

Inputs: timestamp (required), channel_id (required).

conversations_historyA
Read-only

Messages in a channel or DM as CSV, newest first. limit: a count ('50') or a window ('1d', '2w', '3m', counted from local midnight); leave it empty when passing cursor. A non-empty Cursor column on the last row means more results: pass it back as cursor, which keeps the original window and page size.

Inputs: channel_id (required), limit, cursor, include_activity_messages. Returns: result

conversations_preview_messageA

Post a DRAFT of a message to your own DM, exactly as it would render, and return its preview_hash. Sending it is conversations_add_message with the same channel_id, text, thread_ts and content_type plus preview_hash, which refuses anything but those exact bytes. Previews live until the server restarts.

Inputs: text (required), channel_id (required), thread_ts, content_type. Returns: result

conversations_repliesB
Read-only

A thread (parent plus replies) as CSV. thread_ts: the parent's ts, e.g. 1234567890.123456. limit and cursor work as in conversations_history.

Inputs: thread_ts (required), channel_id (required), limit, cursor, +1 more. Returns: result

conversations_search_messagesA
Read-only

Search messages as CSV. search_query may carry Slack modifiers (in:, from:, before:, …) or be a message URL, which returns that one message. Users: ID, @handle or name. Channels: ID or #name. Dates: YYYY-MM-DD, today, yesterday, 'N days ago', 'July 2026' (during: the whole month) or a month name (during only). limit: 1-100; a cursor replays the original query and page size; filters passed with it are ignored.

Inputs: limit, cursor, search_query, filter_date_on, +8 more. Returns: result

conversations_update_messageA
Destructive

Edit a message you posted, replacing its text. content_type as in conversations_add_message; text/plain is sent as text, which Slack still formats as mrkdwn on this method.

Inputs: text (required), timestamp (required), channel_id (required), content_type. Returns: result

delete_scheduled_messageB
Destructive

Cancel a scheduled message before it posts.

Inputs: channel (required), scheduled_message_id (required).

list_createC
Destructive

Create a Slack List. schema: [{"key","name","type":"text|date|select|user|...","is_primary_column"?,"options"?}].

Inputs: name (required), schema, todo_mode.

list_deleteA
Destructive

Delete a whole List and its items (permanent). Slack has no List-delete method, so this deletes the List's file.

Inputs: list_id (required).

list_item_createB
Destructive

Add an item. initial_fields: [{"column_id", : value}]; text columns take "rich_text" blocks.

Inputs: list_id (required), initial_fields, parent_item_id.

list_item_deleteB
Destructive

Delete one item (row) from a List (permanent).

Inputs: item_id (required), list_id (required).

list_itemsC
Read-only

A List's items; include_list also returns its columns (column_id values for writes).

Inputs: list_id (required), limit, cursor, include_list.

list_items_updateC
Destructive

Update up to 100 cells: [{"row_id","column_id", : value}].

Inputs: cells (required), list_id (required).

list_scheduled_messagesC
Read-only

Your pending scheduled messages, optionally for one channel.

Inputs: cursor, channel.

reactions_addB

Add an emoji reaction (name without colons) to a message.

Inputs: emoji (required), timestamp (required), channel_id (required). Returns: result

reactions_removeB
Destructive

Remove your emoji reaction from a message.

Inputs: emoji (required), timestamp (required), channel_id (required). Returns: result

schedule_messageA
Destructive

Schedule a message up to 120 days ahead. post_at: Unix seconds or ISO-8601 with offset. content_type as in conversations_add_message; text/plain is sent as text, which Slack formats as mrkdwn here.

Inputs: text (required), channel (required), post_at (required), thread_ts, +1 more.

usergroups_listB
Read-only

User groups (@mention groups) as CSV: id, name, handle, description, user_count, users (if include_users).

Inputs: include_users, include_disabled. Returns: result

usergroups_meA
Read-only

User groups you belong to, as CSV.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource+action (canvas CRUD, list CRUD, message CRUD, reactions, scheduled messages), and the descriptions add useful clarification. The few soft overlaps are the list_items read vs list_items_update pair, conversations_history vs conversations_replies, and conversations_preview_message vs conversations_add_message, but the preview/post contract is spelled out explicitly enough that an agent can choose correctly.

    Naming Consistency3/5

    The dominant pattern is noun_verb (conversations_add_message, canvas_create, usergroups_list), but it breaks down in places: 'list' is a noun namespace in list_create/list_items yet a verb in list_scheduled_messages, and schedule_message/delete_scheduled_message drop the namespace prefix entirely. Mixed noun-first and verb-first conventions plus an ambiguous 'list_' overload make the set readable but not predictable.

    Tool Count3/5

    28 tools is at the heavy end, though the surface genuinely spans messages, threads, scheduling, canvases, lists, channels, users, usergroups and reactions, so each cluster earns its place. Still, some consolidation (e.g. channels_list/channels_me, usergroups_list/usergroups_me) could trim the count without losing capability.

    Completeness3/5

    Messaging, threading, scheduling, reactions, canvases and lists have solid lifecycle coverage, but the surrounding Slack surface has notable holes: no channel create/join/leave/invite or member listing, no user profile lookup beyond search, and no file upload. Agents can work around these via search/history, but common Slack workflows will hit dead ends.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Slack workspaces through comprehensive channel management, messaging, direct messages, search functionality, and user management capabilities.
      30
      5 npm
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with Slack workspaces through natural language, supporting channel management, message operations, user profiles, reactions, and threaded conversations.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Integrates AI assistants with Slack workspaces using OAuth 2.0 authenticated user tokens for secure, multi-functional interaction. It enables comprehensive operations including channel management, message searching, file handling, and reaction management through natural language.
      20
      169 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Slack workspaces, including listing channels, posting messages, replying to threads, adding reactions, and retrieving user information.
      10
      19 npm
      MIT