Slack Search MCP Server
A Model Context Protocol (MCP) server that provides tools and resources to access Slack's search functionality. This server allows LLMs to search and retrieve users, channels, messages, and more from a Slack workspace.
Features
Tools
get_users
- Get a list of users in the Slack workspaceget_channels
- Get a list of channels in the Slack workspaceget_channel_messages
- Get messages from a specific channelget_thread_replies
- Get replies in a threadsearch_messages
- Search for messages in Slack
Resources
allusers://
- Get all users in the Slack workspaceallchannels://
- Get all channels in the Slack workspace
Requirements
- Bun runtime
- Slack API token with appropriate permissions
Installation
- Clone the repository
- Install dependencies:
Usage
- Set the Slack API token as an environment variable:
- Run the server:Or use the compiled version:
Building
To build the executable:
This will create a compiled executable in the dist
directory.
MCP Configuration
To use this server with an MCP-enabled LLM, add it to your MCP configuration:
Tool Examples
Get Users
Get Channels
Get Channel Messages
Get Thread Replies
Search Messages
Resource Examples
Get All Users
Get All Channels
Error Handling
The server includes comprehensive error handling for:
- Invalid or missing Slack API token
- API rate limits
- Network errors
- Invalid parameters
- Authentication failures
Security
- The Slack API token is never logged or exposed in responses
- The token is securely passed via environment variables
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 -811,12065,360MIT License
- AsecurityAlicenseAqualityAn MCP server that provides LLMs access to other LLMsLast updated -452260MIT 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 -2507MIT 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 -