stdio communication

Slack MCP Server

Read channels, post messages, and manage Slack workspace data.

Installation

npx -y @modelcontextprotocol/server-slack

claude_desktop_config.json

{
  "mcpServers": {
    "server-slack": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-slack"
      ],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-bot-token",
        "SLACK_TEAM_ID": "T01234ABCDE"
      }
    }
  }
}

Environment Variables

Variable Required Description
SLACK_BOT_TOKEN ✓ Required Slack bot OAuth token (xoxb-…) with the required scopes.
SLACK_TEAM_ID ✓ Required The Slack workspace (team) ID, found in workspace settings.

Prerequisites

  • Node.js 18 or later
  • Required API keys — see the Environment Variables table above

Common Errors

  • Server not found / spawn error — ensure Node.js is on your PATH and the package is accessible via npx.
  • Permission denied — check that the path in args is readable by the process running your AI client.
  • Authentication failed — verify your API key is set correctly in the env block.