Slack Search MCP Server
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 工作区中的所有频道
Related MCP server: MCP Slack Python
要求
Bun运行时
具有适当权限的 Slack API 令牌
安装
克隆存储库
安装依赖项:
bun install
用法
将 Slack API 令牌设置为环境变量:
export SLACK_TOKEN=xoxb-your-token-here运行服务器:
bun run index.ts或者使用编译版本:
./dist/slack_search_function_mcp
建筑
要构建可执行文件:
bun run build这将在dist目录中创建一个已编译的可执行文件。
MCP 配置
要将此服务器与启用 MCP 的 LLM 一起使用,请将其添加到您的 MCP 配置中:
{
"mcpServers": {
"slack": {
"command": "/path/to/dist/slack_search_function_mcp",
"env": {
"SLACK_TOKEN": "xoxb-your-token-here"
}
}
}
}工具示例
获取用户
{
"name": "get_users",
"arguments": {
"limit": 10
}
}获取频道
{
"name": "get_channels",
"arguments": {
"limit": 10,
"exclude_archived": true
}
}获取频道消息
{
"name": "get_channel_messages",
"arguments": {
"channel": "C01234ABCDE",
"limit": 10
}
}获取主题回复
{
"name": "get_thread_replies",
"arguments": {
"channel": "C01234ABCDE",
"thread_ts": "1234567890.123456",
"limit": 10
}
}搜索消息
{
"name": "search_messages",
"arguments": {
"query": "important announcement",
"sort": "timestamp",
"sort_dir": "desc",
"count": 10
}
}资源示例
获取所有用户
allusers://获取所有频道
allchannels://错误处理
该服务器包括针对以下方面的全面错误处理:
Slack API 令牌无效或缺失
API 速率限制
网络错误
参数无效
身份验证失败
安全
Slack API 令牌永远不会在响应中记录或暴露
令牌通过环境变量安全传递
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to search and retrieve messages within a Slack workspace using the Slack Web API. It supports specific channel filtering and includes built-in rate limit handling for efficient message discovery.25MIT
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables interaction with Slack workspaces through tools for managing channels, sending messages, and retrieving user profiles. It leverages the Slack API and FastMCP to provide functionalities like message history lookup and reaction management.1
- AlicenseBqualityDmaintenanceAn MCP server that enables searching for messages and listing channels within a Slack workspace. It provides tools to retrieve channel history and filter messages based on text matching and date ranges.325MIT
- FlicenseAqualityDmaintenanceAn MCP server for semantic search and retrieval of indexed Slack messages stored in Qdrant using Cohere reranking via AWS Bedrock. It enables users to search through Slack history, retrieve full message threads, and access channel or user statistics through natural language.5
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/takuya0206/slack_search_function_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server