Skip to main content
Glama
andygruening

Slack Message MCP

by andygruening

Slack Message MCP

Tiny MCP server that exposes one tool over stdio or HTTP:

  • post_slack_message posts text to the channel in SLACK_CHANNEL_ID

Environment

Set these before starting the server:

export SLACK_BOT_TOKEN="xoxb-..."
export SLACK_CHANNEL_ID="C0123456789"

The Slack app needs chat:write and must be allowed to post in the target channel.

Optional for the HTTP server:

export PORT="3000"

The HTTP server does not perform app-level authentication. Deploy it only where the managed agent runtime or private network controls who can reach the endpoint.

Related MCP server: Slack

Run Locally With Stdio

node server.js

Claude Code Example

claude mcp add slack-message \
  --env SLACK_BOT_TOKEN="$SLACK_BOT_TOKEN" \
  --env SLACK_CHANNEL_ID="$SLACK_CHANNEL_ID" \
  -- node /Users/agruning/Documents/MCP/slack-message-mcp/server.js

Run As Remote HTTP MCP

Claude managed agents and the Claude API MCP connector cannot connect to local stdio servers. Deploy the HTTP server behind a public HTTPS URL:

npm run start:http

The MCP endpoint is:

POST /mcp

Health check:

GET /health

Claude managed agent / Messages API shape:

{
  "mcp_servers": [
    {
      "type": "url",
      "url": "https://your-domain.example.com/mcp",
      "name": "Slack"
    }
  ],
  "tools": [
    {
      "type": "mcp_toolset",
      "mcp_server_name": "Slack",
      "default_config": {
        "enabled": false
      },
      "configs": {
        "post_slack_message": {
          "enabled": true
        }
      }
    }
  ]
}

Use the beta header required by Anthropic's MCP connector:

anthropic-beta: mcp-client-2025-11-20
Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/andygruening/slack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server