How to Use Slack MCP Server Effortlessly

The Slack Model Context Protocol (MCP) Server seamlessly integrates AI assistants like Claude into your Slack workspace. Read to learn how to use it.

Emmanuel Mumba

Emmanuel Mumba

23 June 2025

How to Use Slack MCP Server Effortlessly

The Slack Model Context Protocol (MCP) Server provides a seamless way to integrate AI assistants like Claude into your Slack workspace, transforming them into active participants in your team's daily communications. Built with a robust TypeScript implementation, this server allows AI to post messages, retrieve user information, and interact with various workspace elements in real time. By bridging the gap between artificial intelligence and team collaboration, Slack MCP Server enhances productivity, streamlines workflows, and enables smarter, more efficient workplace interactions—all within the familiar Slack environment.

💡
Before diving into the setup of Slack MCP Server, check out Apidog—a powerful tool for designing, testing, and documenting APIs. Apidog allows you to seamlessly integrate your APIs, enhancing your workflow with structured models and easy collaboration. If you're looking to boost your automation and API management, Apidog is a great companion tool to use alongside Slack MCP Server.
button

Understanding the Model Context Protocol

Before diving into the specifics of the Slack MCP Server, it's important to understand what the Model Context Protocol represents. MCP is a standardized interface that allows AI models to interact with external systems and services. It provides a structured way for AI assistants to access tools, retrieve information, and take actions beyond their training data. In the context of Slack integration, the MCP server functions as an interpreter between the AI assistant's requests and the Slack API's requirements, handling authentication, formatting, and response processing.

Comprehensive Feature Set

The Slack MCP Server implementation offers an extensive suite of capabilities that mirror the most essential functions of the native Slack interface:

Channel Management and Navigation

Robust Messaging Capabilities

Enhanced User Engagement

Technical Implementation

The Slack MCP Server is built on a modern stack designed for reliability and performance:

Detailed Installation Guide

Setting up the Slack MCP Server requires careful attention to both the Slack application configuration and the server deployment. This comprehensive guide walks through each step of the process:

Creating and Configuring Your Slack Application

Create a New Slack App:

Configure OAuth Scopes:
The server requires specific permissions to function properly:

Install to Workspace:

Retrieve Team ID:

Deployment Options

The Slack MCP Server offers multiple deployment methods to accommodate various infrastructure preferences:

This method leverages NPM's package execution functionality for a streamlined setup:

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

Docker Container Deployment

For environments where containerization is preferred:

{
  "mcpServers": {
    "slack": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SLACK_BOT_TOKEN",
        "-e",
        "SLACK_TEAM_ID",
        "mcp/slack"
      ],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-bot-token",
        "SLACK_TEAM_ID": "T01234567"
      }
    }
  }
}

To build the Docker image locally:

docker build -t mcp/slack -f src/slack/Dockerfile .

Source Deployment

For those who prefer direct control over the source code:

Clone the repository:

git clone https://github.com/modelcontextprotocol/server-slack.git

Install dependencies:

npm install

Build the TypeScript project:

npm run build

Start the server:

SLACK_BOT_TOKEN=xoxb-your-token SLACK_TEAM_ID=T01234567 node dist/index.js

Integration with AI Assistant Platforms

Claude Desktop Configuration

To connect the Slack MCP Server with Claude Desktop:

  1. Locate your Claude Desktop configuration file
  2. Add the MCP server configuration, adjusting paths and tokens as needed:
{
  "mcpServers": {
    "slack": {
      "command": "node",
      "args": ["/path/to/project/dist/index.js"],
      "env": {
        "SLACK_BOT_TOKEN": "xoxb-your-bot-token",
        "SLACK_TEAM_ID": "T01234567"
      }
    }
  }
}

Cursor Integration

Cursor is a modern AI-powered code editor that supports MCP servers. You can integrate the Slack MCP Server either globally or per-project:

Global Integration:

  1. Navigate to Cursor Settings > MCP
  2. Click "Add new global MCP server"
  3. Add the server configuration to ~/.cursor/mcp.json

Project-Specific Integration:

Create or edit .cursor/mcp.json in your project directory with the appropriate configuration.

Detailed Tool Reference

The Slack MCP Server exposes eight primary tools for interaction with Slack:

slack_list_channels

Lists available public channels in the workspace.

slack_post_message

Posts new messages to specified channels.

slack_reply_to_thread

Posts replies to existing message threads.

slack_add_reaction

Adds emoji reactions to messages.

slack_get_channel_history

Retrieves recent messages from a channel.

slack_get_thread_replies

Retrieves all replies in a specific message thread.

slack_get_users

Lists all workspace users with basic profile information.

slack_get_user_profile

Retrieves detailed profile information for a specific user.


When implementing the Slack MCP Server, several common issues may arise:

Authentication Problems

Permission Limitations

Channel Access Issues

Rate Limiting

By establishing this bridge between AI assistants and your Slack workspace, teams can unlock new possibilities for automation, information retrieval, and collaborative workflows. The Slack MCP Server represents an important step toward truly integrated AI assistance in the modern workplace, offering both the technical foundation and practical tools needed for meaningful AI participation in team communications.

Practice API Design-first in Apidog

Discover an easier way to build and use APIs