Skip to main content
Glama
Slack Notifier MCP

Slack Notifier MCP

by Strand-AI

Slack Notifier MCP

Python 3.10+ MCP License: MIT uv

MCP server for bidirectional Slack communication with Claude Code. Get notified when tasks complete, and respond to Claude's questions directly from Slack.

Quick Start

# Add to Claude Code (one command)
claude mcp add slack-notifier -s user \
  -e SLACK_BOT_TOKEN=xoxb-your-token \
  -e SLACK_DEFAULT_CHANNEL=YOUR-CHANNEL-ID \
  -- uvx slack-notifier-mcp@latest

Related MCP server: Slack Note Capture MCP Server

Features

  • Send Messages - Send messages with optional urgency levels and thread support

  • Ask & Wait - Ask questions and wait for replies via Slack threads

  • Bidirectional - Reply to Claude from Slack, get responses back in your terminal

  • Urgency Levels - Normal, important, and critical notifications with appropriate formatting

Slack App Setup

Before using this server, you need to create a Slack app:

  1. Go to api.slack.com/apps and click Create New App

  2. Choose From scratch, name it (e.g., "Claude Code"), and select your workspace

  3. Go to OAuth & Permissions in the sidebar

  4. Under Scopes > Bot Token Scopes, add:

    • chat:write - Send messages

    • channels:history - Read public channel messages

    • groups:history - Read private channel messages

    • im:history - Read DM messages

    • users:read - Get user display names

  5. Click Install to Workspace at the top

  6. Copy the Bot User OAuth Token (starts with xoxb-)

To get your default channel ID:

  • Open Slack, right-click the channel, and select View channel details

  • At the bottom, copy the Channel ID (starts with C)

Installation

claude mcp add slack-notifier -s user \
  -e SLACK_BOT_TOKEN=xoxb-your-token \
  -e SLACK_DEFAULT_CHANNEL=YOUR-CHANNEL-ID \
  -- uvx slack-notifier-mcp@latest

VS Code

code --add-mcp '{"name":"slack-notifier","command":"uvx","args":["slack-notifier-mcp@latest"],"env":{"SLACK_BOT_TOKEN":"xoxb-your-token","SLACK_DEFAULT_CHANNEL":"YOUR-CHANNEL-ID"}}'

Other MCP Clients

Add to your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "slack-notifier": {
      "command": "uvx",
      "args": ["slack-notifier-mcp@latest"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-token",
        "SLACK_DEFAULT_CHANNEL": "YOUR-CHANNEL-ID"
      }
    }
  }
}
  1. Go to Settings → MCP → Add new MCP Server

  2. Select command type

  3. Enter command: uvx slack-notifier-mcp@latest

  4. Add environment variables for SLACK_BOT_TOKEN and SLACK_DEFAULT_CHANNEL

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "slack-notifier": {
      "command": "uvx",
      "args": ["slack-notifier-mcp@latest"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-token",
        "SLACK_DEFAULT_CHANNEL": "YOUR-CHANNEL-ID"
      }
    }
  }
}

Any MCP-compatible client can use slack-notifier:

{
  "mcpServers": {
    "slack-notifier": {
      "command": "uvx",
      "args": ["slack-notifier-mcp@latest"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-token",
        "SLACK_DEFAULT_CHANNEL": "YOUR-CHANNEL-ID"
      }
    }
  }
}

Local Development

git clone https://github.com/strand-ai/slack-notifier-mcp.git
cd slack-notifier-mcp
uv sync
uv run slack-notifier-mcp

MCP Tools

send

Send a message to Slack with optional urgency and thread support.

# Simple message
send(message="Build completed successfully")

# With urgency (adds formatting and @here for critical)
send(
    message="Server is down!",
    urgency="critical"  # or "normal", "important"
)

# Reply in a thread
send(
    message="Done with the first step, moving on...",
    thread_ts="1234567890.123456"
)

# Mention user
send(
    message="Need your attention",
    mention_user=True
)

Parameters:

  • message (required): Message text (supports Slack mrkdwn)

  • channel (optional): Channel ID or name (uses default if not set)

  • thread_ts (optional): Thread timestamp to reply in a thread

  • urgency (optional): normal, important, or critical

  • mention_user (optional): If true, @mentions the configured user

ask_user

Send a question and wait for the user's reply.

ask_user(
    question="Should I use PostgreSQL or SQLite for the database?",
    context="Setting up the backend for the new API",
    timeout_minutes=10
)
# Returns: {"success": True, "reply": "Use PostgreSQL", ...}

Parameters:

  • question (required): The question to ask

  • channel (optional): Channel ID or name

  • context (optional): Additional context about what you're working on

  • timeout_minutes (optional): How long to wait (default 5, max 30)

get_thread_replies

Check for new replies in a thread.

get_thread_replies(
    channel="YOUR-CHANNEL-ID",
    thread_ts="1234567890.123456",
    since_ts="1234567891.000000"  # Only newer messages
)

Environment Variables

Variable

Required

Description

SLACK_BOT_TOKEN

Yes

Bot token from Slack app (xoxb-...)

SLACK_DEFAULT_CHANNEL

No

Default channel for notifications

Example Usage

Tell Claude Code:

"Notify me on Slack when the tests finish running"

"Ask me on Slack whether to proceed with the database migration"

"Send a Slack notification if any errors occur while I'm away"

Debugging

Run the MCP inspector to test tools:

npx @anthropics/mcp-inspector uvx slack-notifier-mcp@latest

Check if your token works:

curl -H "Authorization: Bearer xoxb-your-token" \
  https://slack.com/api/auth.test

Development

# Install with dev dependencies
uv sync --extra dev

# Run tests
uv run pytest

# Format code
uv run black slack_mcp
uv run ruff check slack_mcp --fix

License

MIT

Available Tools

3 tools
ask_userA

Send a question to the user via Slack and wait for their reply.

Use this when you need user input or a decision. The user will be notified and can reply in the Slack thread. This will BLOCK until the user replies or the timeout is reached.

IMPORTANT - NON-BLOCKING USAGE: To avoid blocking, run this tool in a background agent/task. Example with Claude Code's Task tool:

Task(
    prompt="Call ask_user with question='Your question here'",
    run_in_background=True
)

This lets you continue working while waiting for the Slack reply. You'll be notified when the background task completes with the user's response.

Args: question: The question to ask the user. channel: Channel name or ID. Uses SLACK_DEFAULT_CHANNEL if not specified. context: Optional context to include (e.g., what you're working on). timeout_minutes: How long to wait for a reply (default 5 minutes, max 30).

Returns: Dict with success status and user's reply text if received.

Inputs: question (required), channel, context, timeout_minutes. Returns: object

get_thread_repliesA

Get replies in a Slack thread.

Use this to check for new messages in a thread you started.

Args: channel: Channel ID containing the thread. thread_ts: Timestamp of the parent message. since_ts: Only return messages after this timestamp (optional).

Returns: Dict with success status and list of replies.

Inputs: channel (required), thread_ts (required), since_ts. Returns: object

sendA

Send a message to a Slack channel or thread.

Args: message: Message text. Supports Slack mrkdwn formatting. channel: Channel name or ID. Uses SLACK_DEFAULT_CHANNEL if not specified. thread_ts: Thread timestamp to reply in a thread. urgency: Message urgency level. 'critical' adds @here mention. mention_user: If True, @mentions the configured user (requires SLACK_USER_ID).

Returns: Dict with success status and message details.

Inputs: message (required), channel, thread_ts, urgency, +1 more. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: ask_user for interactive questions, get_thread_replies for retrieving thread responses, and send for posting messages. No semantic overlap.

    Naming Consistency4/5

    All tools use snake_case verb_noun pattern (ask_user, get_thread_replies), with 'send' being a single-verb exception but still follows the verb-first convention. Minor inconsistency in specificity.

    Tool Count3/5

    Three tools is minimal for a Slack integration, but the server's 'notifier' scope justifies a lean set. Still, the surface feels thin compared to typical Slack API needs.

    Completeness3/5

    Core messaging workflows are covered: send, read replies, and ask for input. However, missing essential operations like listing channels, updating messages, or managing reactions limit the surface.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Human-in-the-Loop MCP server that enables AI assistants to request information or clarification from humans via Slack. It uses real-time, thread-based conversations with socket mode integration to bridge the gap between AI systems and human experts.
      6
      MIT
    • F
      license
      A
      quality
      Not graded
      maintenance
      Enables two-way communication between Claude and Slack for posting messages, managing threads, and handling files. It specifically supports asynchronous workflows by allowing Claude to poll for remote user replies and send task notifications.
      9
      -