Slack MCP Server: Complete Setup and Usage Guide 2026
Enable AI to interact with Slack channels - step-by-step guide to Slack MCP Server
Slack MCP Server: Complete Setup and Usage Guide 2026
Enable AI to interact with Slack channels - step-by-step guide to Slack MCP Server
Slack MCP Server: Complete Guide 2026 What is Slack MCP Server? **Slack MCP Server** is an MCP (Model Context Protocol) server that enables AI assistants to Enable AI to interact with Slack channels. MCP is an open protocol that standardizes how AI
Slack MCP Server: Complete Guide 2026
What is Slack MCP Server?
Slack MCP Server is an MCP (Model Context Protocol) server that enables AI assistants to Enable AI to interact with Slack channels. MCP is an open protocol that standardizes how AI models interact with external tools and data sources.
Prerequisites
Installation
Option 1: NPM (Recommended)
bash
npm install -g @communication/slack-mcp-server-mcp
Option 2: From Source
bash
git clone https://github.com/modelcontextprotocol/slack-mcp-server-mcp
cd slack-mcp-server-mcp
npm install
npm run build
Configuration
Claude Desktop Setup
Edit your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
json
{
"mcpServers": {
"slack-mcp-server": {
"command": "npx",
"args": [
"-y",
"@communication/slack-mcp-server-mcp"
],
"env": {
"SLACK_MCP_SERVER_API_KEY": "your-api-key-here",
"DEBUG": "false"
}
}
}
}
Environment Variables
bash
Required
export SLACK_MCP_SERVER_API_KEY=your_key_hereOptional
export SLACK_MCP_SERVER_TIMEOUT=30
export SLACK_MCP_SERVER_MAX_RESULTS=50
Available Tools
After installation, Claude has access to these tools:
Core Tools
slack_mcp_server_list
Description: List available resources
Parameters: { limit: number, filter: string }slack_mcp_server_get
Description: Get specific resource by ID or name
Parameters: { id: string }slack_mcp_server_create
Description: Create a new resource
Parameters: { name: string, content: any }slack_mcp_server_update
Description: Update existing resource
Parameters: { id: string, updates: any }slack_mcp_server_delete
Description: Delete a resource
Parameters: { id: string, confirm: boolean }
Usage Examples
Example 1: Basic Usage in Claude
Once configured, you can ask Claude naturally:
You: "Use Slack MCP Server to help me with Enable AI to interact with Slack channels"Claude: "I'll use the Slack MCP Server MCP server to help you.
[Uses slack_mcp_server_list tool]
Here's what I found..."
Example 2: Complex Workflow
You: "Please analyze my communication setup and suggest improvements"Claude will:
List all resources using Slack MCP Server
Analyze the current configuration
Identify opportunities for improvement
Suggest specific changes with reasoning
Building a Custom MCP Server
You can also build your own MCP server:
typescript
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import {
CallToolRequestSchema,
ListToolsRequestSchema,
} from "@modelcontextprotocol/sdk/types.js";const server = new Server(
{
name: "my-communication-server",
version: "0.1.0",
},
{
capabilities: {
tools: {},
},
}
);
// Define available tools
server.setRequestHandler(ListToolsRequestSchema, async () => {
return {
tools: [
{
name: "communication_query",
description: "Enable AI to interact with Slack channels",
inputSchema: {
type: "object",
properties: {
query: {
type: "string",
description: "Your query"
}
},
required: ["query"]
}
}
]
};
});
// Handle tool calls
server.setRequestHandler(CallToolRequestSchema, async (request) => {
if (request.params.name === "communication_query") {
const { query } = request.params.arguments as { query: string };
// Your implementation here
const result = await performQuery(query);
return {
content: [
{
type: "text",
text: JSON.stringify(result, null, 2)
}
]
};
}
throw new Error(Unknown tool: ${request.params.name});
});
// Start server
const transport = new StdioServerTransport();
await server.connect(transport);
Troubleshooting
Common Issues
Issue: Server not starting
bash
Check if node is properly installed
node --version # Should be 18+Reinstall the package
npm install -g @communication/slack-mcp-server-mcp --force
Issue: Authentication failing
bash
Verify your API key
echo $SLACK_MCP_SERVER_API_KEYTest API key validity
curl -H "Authorization: Bearer $SLACK_MCP_SERVER_API_KEY" https://api.slack.com/v1/test
Security Considerations
bash
Use environment-specific keys (never hardcode)
In production, use a secrets manager
export SLACK_MCP_SERVER_API_KEY=$(aws secretsmanager get-secret-value --secret-id mcp-keys --query SecretString --output text | jq -r '.communication_key')Limit MCP server permissions to minimum required
Use read-only tokens when possible
Conclusion
Slack MCP Server unlocks the ability to Enable AI to interact with Slack channels directly through your AI assistant. This makes complex communication tasks dramatically faster and more intuitive.
*Slack MCP Server MCP setup guide | May 2026*
相关工具
相关教程
Let AI access and manage your GitHub repositories - step-by-step guide to GitHub MCP Server
Query and manage databases with natural language - step-by-step guide to Postgres MCP Server
Give AI agents access to your local files - step-by-step guide to Filesystem MCP Server
Manage project issues with AI assistance - step-by-step guide to Linear MCP Server
Process payments and manage subscriptions via AI - step-by-step guide to Stripe MCP Server
Access and manage Google Drive documents with AI - step-by-step guide to Google Drive MCP