Skip to main content
Glama
mcp-slack-crunchtools

mcp-slack-crunchtools

by crunchtools

mcp-slack-crunchtools

Secure MCP server for Slack workspaces. Provides Claude Code (and other MCP clients) with read access to your Slack channels, messages, users, and files, and can send a message on your behalf.

Features

  • Mostly read: 15 of the 17 tools only read and publish readOnlyHint: true. The other two send a message and cancel a scheduled one; nothing edits or deletes existing content.

  • Secure: 6-layer security model (input validation, token handling, client hardening, output sanitization, runtime protection, supply chain security).

  • User OAuth Token: Uses xoxp- tokens for user-scoped access to your workspace.

  • No SDK dependency: Uses httpx directly for minimal, auditable HTTP calls.

Related MCP server: Slack MCP Server

Quick Start

claude mcp add mcp-slack-crunchtools \
    --env SLACK_USER_TOKEN=xoxp-your-token \
    -- uvx mcp-slack-crunchtools

Using Container

claude mcp add mcp-slack-crunchtools \
    --env SLACK_USER_TOKEN=xoxp-your-token \
    -- podman run -i --rm -e SLACK_USER_TOKEN quay.io/crunchtools/mcp-slack

Local Development

claude mcp add mcp-slack-crunchtools \
    --env SLACK_USER_TOKEN=xoxp-your-token \
    -- uv run mcp-slack-crunchtools

Setup

See CLAUDE.md for detailed instructions on creating a Slack app and obtaining a User OAuth Token.

Configuration

Authentication uses one of two mutually exclusive modes. The server picks cookie mode when both cookie variables are set, and token mode otherwise.

Variable

Required

Default

Description

SLACK_USER_TOKEN

token mode

—

User OAuth token (xoxp-...) from a Slack app installed in the workspace.

SLACK_COOKIE_TOKEN

cookie mode

—

Browser session token (xoxc-...). Must be paired with SLACK_COOKIE_D.

SLACK_COOKIE_D

cookie mode

—

Value of the d cookie (xoxd-...) from the same browser session. Sent as a Cookie: header alongside SLACK_COOKIE_TOKEN.

SLACK_ADD_MESSAGE_DELAY

no

3m

How far ahead outgoing messages are scheduled, giving you a window to cancel one. Duration string: 30s, 5m, 2h, or a bare integer for seconds. Set to 0, 0s, none, or false to disable scheduling and post immediately.

Which auth mode to use

Cookie mode is the working path for this deployment. Token mode requires a Slack app to be created and approved in the workspace; where that approval is not available, cookie mode is the only way to authenticate at all.

Cookie mode borrows an existing browser session rather than holding a credential issued to an application. That has consequences worth stating plainly:

  • Both values are live session credentials. Anything holding them can act as you in Slack, with your full access. Treat them exactly as you would your password.

  • They expire when the browser session does, so cookie mode needs periodic re-extraction. A sudden wave of auth failures usually means the session rotated, not that the server broke.

  • Slack does not issue these for programmatic use and can invalidate them at any time. Cookie mode is a workaround for the absence of an approved app, not a supported integration path.

Prefer SLACK_USER_TOKEN whenever a Slack app can actually be installed.

Tools

Tool

Description

slack_auth_test

Test connection and get token owner info

slack_list_channels

List workspace channels

slack_get_channel_info

Get channel details

slack_get_channel_history

Read channel messages

slack_get_thread_replies

Read thread replies

slack_list_channel_members

List channel members

slack_search_messages

Search messages

slack_get_reactions

Get message reactions

slack_list_reactions

List user's reactions

slack_list_stars

List starred items

slack_get_user_info

Get user details

slack_list_users

List workspace members

slack_get_user_profile

Get user profile

slack_list_files

List files (metadata only)

slack_get_file_info

Get file metadata

slack_send_message

Schedule a message SLACK_ADD_MESSAGE_DELAY ahead, or post it immediately when the delay is 0 (write)

slack_cancel_scheduled_message

Cancel a scheduled message before it sends (write)

The two write tools need the chat:write scope in token mode.

Security

See SECURITY.md for the full security design document.

License

AGPL-3.0-or-later

Available Tools

17 tools
slack_auth_testSlack Auth TestA
Read-only

Test Slack authentication and get info about the token owner.

Returns the authenticated user's ID, team ID, team name, username, and workspace URL. Use this to verify the connection is working.

Inputs: no named parameters. Returns: object

slack_cancel_scheduled_messageSlack Cancel Scheduled MessageB

Cancel a scheduled Slack message before it sends.

Inputs: channel_id (required), scheduled_message_id (required). Returns: object

slack_get_channel_historySlack Get Channel HistoryC
Read-only

Get message history from a Slack channel.

Inputs: channel_id (required), limit, cursor, latest, +2 more. Returns: object

slack_get_channel_infoSlack Get Channel InfoC
Read-only

Get detailed information about a Slack channel.

Inputs: channel_id (required). Returns: object

slack_get_file_infoSlack Get File InfoB
Read-only

Get metadata about a Slack file (no content download).

Inputs: file_id (required), page, count. Returns: object

slack_get_reactionsSlack Get ReactionsB
Read-only

Get reactions for a specific Slack message.

Inputs: timestamp (required), channel_id (required), full. Returns: object

slack_get_thread_repliesSlack Get Thread RepliesC
Read-only

Get replies in a Slack message thread.

Inputs: thread_ts (required), channel_id (required), limit, cursor, +3 more. Returns: object

slack_get_user_infoSlack Get User InfoC
Read-only

Get information about a Slack user.

Inputs: user_id (required). Returns: object

slack_get_user_profileSlack Get User ProfileC
Read-only

Get a Slack user's profile information.

Inputs: user_id (required), include_labels. Returns: object

slack_list_channel_membersSlack List Channel MembersC
Read-only

List members of a Slack channel.

Inputs: channel_id (required), limit, cursor. Returns: object

slack_list_channelsSlack List ChannelsC
Read-only

List channels in the Slack workspace.

Inputs: limit, types, cursor, exclude_archived. Returns: object

slack_list_filesSlack List FilesA
Read-only

List files in the Slack workspace (metadata only, no content download).

Inputs: page, count, ts_to, types, +3 more. Returns: object

slack_list_reactionsSlack List ReactionsC
Read-only

List reactions made by a user.

Inputs: full, page, count, user_id. Returns: object

slack_list_starsSlack List StarsB
Read-only

List starred items for the authenticated user.

Inputs: page, count, cursor. Returns: object

slack_list_usersSlack List UsersC
Read-only

List users in the Slack workspace.

Inputs: limit, cursor. Returns: object

slack_search_messagesSlack Search MessagesA
Read-only

Search messages in the Slack workspace.

Supports Slack search modifiers: from:user, in:channel, has:link, before:date, after:date, during:month.

Inputs: query (required), page, sort, count, +1 more. Returns: object

slack_send_messageSlack Send MessageA

Send or schedule a Slack message.

When SLACK_ADD_MESSAGE_DELAY is set (default: 3m), the message is scheduled via chat.scheduleMessage, giving a cancellation window before delivery. Use slack_cancel_scheduled_message with the returned scheduled_message_id to cancel. Set SLACK_ADD_MESSAGE_DELAY=0 to post immediately.

Inputs: text (required), channel_id (required), thread_ts. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource+action (channel history vs. thread replies vs. search vs. members). The weakest pair is slack_get_user_info vs. slack_get_user_profile, which read as near-duplicates, and get_reactions vs. list_reactions require reading descriptions carefully to separate (reactions on a message vs. reactions by a user). Otherwise selection is straightforward.

    Naming Consistency5/5

    Every tool uses the same slack_ prefix followed by a verb_noun pattern (get_channel_info, list_users, send_message, cancel_scheduled_message). There are no camelCase or stylistic deviations, and the verbs (get/list/search/send/cancel/test) map predictably to the operation type.

    Tool Count4/5

    Seventeen tools is slightly above the ideal band but is well justified for a Slack surface spanning users, channels, messages, threads, reactions, stars, and files. Each tool covers a distinct Slack endpoint rather than being redundant padding.

    Completeness3/5

    The surface is heavily read-oriented: there is no add_reaction, no update/edit message, no delete message, no channel create/join/leave, and no file upload (files are explicitly metadata-only). Sending, scheduling, and cancelling messages are covered, but an agent asked to react to, edit, or upload would hit dead ends.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that provides read-only access to Slack data including messages, channels, and users through secure API endpoints.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A read-only MCP server that enables AI assistants to access Slack workspace data, including channels, messages, threads, and user information.
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Read-only MCP server for Slack with OAuth 2.1 authentication, enabling message retrieval, thread replies, search, user and channel listing.
      9
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      A self-hosted, read-only Slack MCP server that runs locally and provides read-only access to Slack channels, messages, and users via the Slack Web API, with no third-party intermediary.
      7
      MIT