Overview
Slack is a channel management and messaging solution that enables seamless interaction within workspaces, integrating with various tools for efficiency.
To use Slack, create a Slack app, configure necessary bot token scopes, and install the app to your workspace. The system supports various commands to manage channels, post messages, and retrieve user information.
- List public channels in the workspace - Post messages to channels - Reply to message threads - Add emoji reactions to messages - Retrieve channel message history - Get detailed user profiles
- Team communication across multiple channels
- Project management using message threads
- Integrating with third-party applications and services
Add to your AI client
Use these steps to connect Slack in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"slack-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_IDS": "C01234567, C76543210",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"slack-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_IDS": "C01234567, C76543210",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"slack-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_IDS": "C01234567, C76543210",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"slack-modelcontextprotocol": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_IDS": "C01234567, C76543210",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"slack-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_IDS": "C01234567, C76543210",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"slack-modelcontextprotocol": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_CHANNEL_IDS": "C01234567, C76543210",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}FAQ
What is required to set up Slack?
You need to create a Slack app, configure scopes, and install it in your workspace.
Can Slack be integrated with other tools?
Yes, Slack supports integration with various third-party applications to enhance productivity.
Is there a limit on the number of channels I can manage?
The maximum number of channels returned in a single query can be set to 200, but there is no overall limit on channels within a workspace.