
ubie-oss/slack-mcp-server 是从 https://github.com/ubie-oss/slack-mcp-server. 导入的 MCP 服务器候选
概览
ubie-oss/slack-mcp-server 是从 https://github.com/ubie-oss/slack-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,用于访问Slack API。该服务器允许AI助手通过标准化界面与Slack API交互。
运输支持
该服务器支持传统和现代MCP传输方式:
- Stdio Transport(默认):基于进程的本地集成通信
- 可流式HTTP传输:基于HTTP的Web应用和远程客户端通信
特色
可用工具:
slack_list_channels- 在工作区中列出带有分页的公共通道slack_post_message- 向Slack频道发布新消息slack_reply_to_thread- 回复Slack中的特定消息线程slack_add_reaction- 在消息中添加反应表情slack_get_channel_history- 获取频道的最新消息slack_get_thread_replies- 在消息线程中获取所有回复slack_get_users- 检索工作区中所有用户的基本配置文件信息slack_get_user_profiles- 批量获取多个用户的配置文件信息(对批处理高效)slack_search_messages- 在工作区中搜索带有强大筛选功能的消息:- 基础查询搜索
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
slack-mcp-server
A MCP(Model Context Protocol) server for accessing Slack API. This server allows AI assistants to interact with the Slack API through a standardized interface.
Transport Support
This server supports both traditional and modern MCP transport methods:
- Stdio Transport (default): Process-based communication for local integration
- Streamable HTTP Transport: HTTP-based communication for web applications and remote clients
Features
Available tools:
slack_list_channels- List public channels in the workspace with paginationslack_post_message- Post a new message to a Slack channelslack_reply_to_thread- Reply to a specific message thread in Slackslack_add_reaction- Add a reaction emoji to a messageslack_get_channel_history- Get recent messages from a channelslack_get_thread_replies- Get all replies in a message threadslack_get_users- Retrieve basic profile information of all users in the workspaceslack_get_user_profiles- Get multiple users’ profile information in bulk (efficient for batch operations)slack_search_messages- Search for messages in the workspace with powerful filters:- Basic query search
- Location filters:
in_channel - User filters:
from_user,with - Date filters:
before(YYYY-MM-DD),after(YYYY-MM-DD),on(YYYY-MM-DD),during(e.g., “July”, “2023”) - Content filters:
has(emoji reactions),is(saved/thread) - Sorting options by relevance score or timestamp
Quick Start
Installation
npm install @ubie-oss/slack-mcp-server
NOTE: Its now hosted in GitHub Registry so you need your PAT.
Configuration
You need to set the following environment variables:
SLACK_BOT_TOKEN: Slack Bot User OAuth TokenSLACK_USER_TOKEN: Slack User OAuth Token (required for some features like message search)SLACK_SAFE_SEARCH(optional): When set totrue, automatically excludes private channels, DMs, and group DMs from search results. This is enforced server-side and cannot be overridden by clients.
You can also create a .env file to set these environment variables:
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_USER_TOKEN=xoxp-your-user-token
SLACK_SAFE_SEARCH=true # Optional: Enable safe search mode
Usage
Start the MCP server
Stdio Transport (default):
npx @ubie-oss/slack-mcp-server
Streamable HTTP Transport:
npx @ubie-oss/slack-mcp-server -port 3000
You can also run the installed module with node:
# Stdio transport
node node_modules/.bin/slack-mcp-server
# HTTP transport
node node_modules/.bin/slack-mcp-server -port 3000
Command Line Options:
-port: Start with Streamable HTTP transport on specified port-h, --help: Show help message
Client Configuration
For Stdio Transport (Claude Desktop, etc.):
{
"slack": {
"command": "npx",
安装
npx -y @ubie-oss/slack-mcp-server