Slack 搜索 MCP 服务器
模型上下文协议 (MCP) 服务器提供访问 Slack 搜索功能所需的工具和资源。该服务器允许 LLM 从 Slack 工作区搜索和检索用户、频道、消息等信息。
特征
工具
get_users- 获取 Slack 工作区中的用户列表get_channels- 获取 Slack 工作区中的频道列表get_channel_messages- 从特定频道获取消息get_thread_replies- 获取线程中的回复search_messages- 在 Slack 中搜索消息
资源
allusers://- 获取 Slack 工作区中的所有用户allchannels://- 获取 Slack 工作区中的所有频道
要求
Bun运行时
具有适当权限的 Slack API 令牌
安装
克隆存储库
安装依赖项:
bun install
用法
将 Slack API 令牌设置为环境变量:
export SLACK_TOKEN=xoxb-your-token-here运行服务器:
bun run index.ts或者使用编译版本:
./dist/slack_search_function_mcp
建筑
要构建可执行文件:
这将在dist目录中创建一个已编译的可执行文件。
MCP 配置
要将此服务器与启用 MCP 的 LLM 一起使用,请将其添加到您的 MCP 配置中:
工具示例
获取用户
获取频道
获取频道消息
获取主题回复
搜索消息
资源示例
获取所有用户
获取所有频道
错误处理
该服务器包括针对以下方面的全面错误处理:
Slack API 令牌无效或缺失
API 速率限制
网络错误
参数无效
身份验证失败
安全
Slack API 令牌永远不会在响应中记录或暴露
令牌通过环境变量安全传递
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
MCP 服务器使 LLM 能够访问 Slack 的搜索功能,以从 Slack 工作区检索用户、频道、消息和线程回复。
Related MCP Servers
- AsecurityAlicenseAqualityMCP Server for the Slack API, enabling Claude to interact with Slack workspaces.Last updated -11,12071,192MIT License
- AsecurityAlicenseAqualityAn MCP server that provides LLMs access to other LLMsLast updated -1667MIT License
- AsecurityAlicenseAqualityThe most powerful MCP server for Slack Workspaces. This integration supports both Stdio and SSE transports, proxy settings and does not require any permissions or bots being created or approved by Workspace admins 😏.Last updated -2823MIT License
- -securityFlicense-qualityA Model Context Protocol server that integrates with Slack API, allowing users to send messages, view channel history, manage channels, send direct messages, and retrieve user lists from Slack workspaces.Last updated -1