Slack MCP Server
Communicationstdiov0.6.2
Provides access to the Slack API through the Model Context Protocol. Enables AI agents to read and send messages, manage channels, search conversation history, and interact with Slack workspaces. Supports listing channels, reading threads, posting messages, and adding reactions programmatically. Originally maintained by Anthropic, now maintained by Zencoder.
连接
将此配置添加到 .claude/mcp.json
{
"mcpServers": {
"slack": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-slack"
],
"env": {
"SLACK_BOT_TOKEN": "<YOUR_SLACK_BOT_TOKEN>",
"SLACK_TEAM_ID": "<YOUR_SLACK_TEAM_ID>"
}
}
}
}工具 (5)
send_message
Send a message to a Slack channel or direct message conversation.
{
"type": "object",
"required": [
"channel_id",
"text"
],
"properties": {
"text": {
"type": "string",
"description": "Message text to send (supports Slack markdown)"
},
"thread_ts": {
"type": "string",
"description": "Thread timestamp to reply in a thread"
},
"channel_id": {
"type": "string",
"description": "Slack channel or conversation ID"
}
}
}list_channels
List all public channels in the Slack workspace with their names and topics.
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"description": "Maximum number of channels to return (default 100)"
},
"cursor": {
"type": "string",
"description": "Pagination cursor for next page of results"
}
}
}get_channel_history
Retrieve recent messages from a Slack channel.
{
"type": "object",
"required": [
"channel_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "Number of messages to retrieve (default 10)"
},
"channel_id": {
"type": "string",
"description": "Slack channel ID"
}
}
}search_messages
Search for messages across the Slack workspace matching a query.
{
"type": "object",
"required": [
"query"
],
"properties": {
"count": {
"type": "integer",
"description": "Number of results to return"
},
"query": {
"type": "string",
"description": "Search query string"
}
}
}add_reaction
Add an emoji reaction to a message in a Slack channel.
{
"type": "object",
"required": [
"channel_id",
"timestamp",
"reaction"
],
"properties": {
"reaction": {
"type": "string",
"description": "Emoji name without colons (e.g., thumbsup)"
},
"timestamp": {
"type": "string",
"description": "Timestamp of the message to react to"
},
"channel_id": {
"type": "string",
"description": "Channel containing the message"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 许可证
- MIT
- 版本
- 0.6.2
- 星标
- 67
- 最后更新
- 2026年1月27日