What is this?
The Slack MCP Server (@modelcontextprotocol/server-slack) brings the power of Model Context Protocol (MCP) directly into your Slack workspace. It implements the standard MCP resource, tool, and prompt interfaces, so any MCP-compatible client or agent can send messages, manage channels, lookup users, and automate notifications without custom code. With built-in support for OAuth 2.0 and Slack’s rate limits, it delivers enterprise-grade security and scalability out of the box.
Whether you’re building chatbots, orchestrating workflows, or automating routine stand-up reminders, this server offers a uniform API, extensible prompt library, and high-level tools to speed up development. Agents gain real-time context from channels and threads and can leverage pre-registered prompts for consistent dialogue across your Slack ecosystem.
Quick Start
Install the server using npm:
npm install @modelcontextprotocol/server-slack
Then add it to your MCP client configuration:
{
"mcpServers": {
"slack": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-slack"],
"env": {
"API_KEY": "your-api-key-here"
}
}
}
}
Key Features
Feature 1: Standardized Integration – Offers a uniform MCP API for Slack, eliminating the need for bespoke wrappers or custom code.
Feature 2: Extensible Prompt Library – Ships with Slack-specific prompt templates and tools for quick bot dialogues and workflows.
Feature 3: Secure & Scalable – Built on OAuth 2.0, enforces rate limits and retries, and supports socket mode for real-time event handling.
Example Usage
You can quickly send a message to a channel using the MCP client:
// Example code
const result = await client.callTool({
name: "sendMessage",
arguments: {
channel: "C123456",
text: "Hello world"
}
});
This code sends a text message to the specified channel and returns the API response, including success status and timestamp.
Configuration
The server accepts the following environment variables:
API_KEY – Your MCP access token from the identity provider, required to authenticate requests.
SETTING_1 (optional) – Enable socket mode by setting to true, which allows real-time event subscriptions.
Available Tools/Resources
sendMessage: Send text or Block Kit messages to channels, threads, or users.
lookupUser: Search for a user by email, Slack ID, or username and fetch profile details.
Who Should Use This?
This server is perfect for:
Use case 1: Development teams that want to build AI-driven chatbots and automate routine notifications in Slack.
Use case 2: DevOps engineers looking to integrate alerts and monitoring events into team channels using a standard protocol.
Use case 3: Platform teams that need a scalable, secure bridge between MCP agents and Slack without custom development.
Conclusion
With the Slack MCP Server, you can focus on building smarter Slack integrations while relying on a consistent, protocol-driven foundation. Install the package, configure your Slack App and environment variables, and start leveraging powerful tools and prompts for your next chatbot or workflow automation.
Check out the GitHub repository for more information and to contribute.