Slack Search is an MCP server that provides Model Context Protocol tools and resources to interface directly with the Slack Web API. It allows developers, knowledge workers, and automated assistants to search and inspect workspaces without navigating the desktop client. By connecting an LLM to Slack, the server exposes capabilities to query workspace members, list channels, fetch message histories from specific channels, and read threaded conversation replies. It also features message search functionality with support for sort options and query parameters. In addition to dynamic tools, the server defines native MCP resources for retrieving complete listings of channels and users. The integration is implemented for the Bun runtime and communicates securely by reading a Slack API token from local environment variables, ensuring authorization credentials are kept out of prompt context and responses. This setup enables language models to summarize active team discussions, locate past project decisions, and monitor workspace context programmatically.
Category: Communication & Messaging
Tags: collaboration, messaging, search, Slack
To set up Slack Search, follow these steps: 1. Ensure you have the Bun runtime installed on your system. 2. Clone the repository and install dependencies: bash bun install 3. Build the executable binary: bash bun run build 4. Add the server to your MCP client configuration (such as Claude Desktop) under the mcpServers section: json { "mcpServers": { "slack": { "command": "/path/to/dist/slack_search_function_mcp", "env": { "SLACK_TOKEN": "xoxb-your-token-here" } } } } 5. Replace /path/to/dist/slack_search_function_mcp with the absolute path to your built executable, provide your Slack bot or user token, and restart your MCP client.
Part of MCP Servers
Slack Search enables an MCP client to interact with your Slack workspace. It provides tools to search messages, list workspace users, view channels, retrieve channel message histories, and fetch replies from specific conversation threads. It also offers direct MCP resources to list all users and channels.
Install the server by cloning its repository and running bun install. Build the executable using bun run build, then configure your MCP client with the path to the resulting binary in the dist directory alongside your SLACK_TOKEN environment variable.
Slack Search works with any Model Context Protocol client that supports local command execution and environment variable configuration, including Claude Desktop, Cursor, and other compatible developer tools.
The server requires a valid Slack API token configured via the SLACK_TOKEN environment variable. This token must have the appropriate workspace permissions to list users, view channels, read history, and execute message searches.