Slack Search MCP Server

Integrations

  • Used as the runtime environment for the MCP server, enabling execution of the TypeScript code and providing build capabilities for creating a compiled executable.

  • Provides tools for accessing Slack's search functionality, allowing users to retrieve workspace information (users, channels), fetch messages from specific channels, get thread replies, and search through messages across the workspace.

Slack 搜索 MCP 服务器

模型上下文协议 (MCP) 服务器提供访问 Slack 搜索功能所需的工具和资源。该服务器允许 LLM 从 Slack 工作区搜索和检索用户、频道、消息等信息。

特征

工具

  1. get_users - 获取 Slack 工作区中的用户列表
  2. get_channels - 获取 Slack 工作区中的频道列表
  3. get_channel_messages - 从特定频道获取消息
  4. get_thread_replies - 获取线程中的回复
  5. search_messages - 在 Slack 中搜索消息

资源

  1. allusers:// - 获取 Slack 工作区中的所有用户
  2. allchannels:// - 获取 Slack 工作区中的所有频道

要求

  • Bun运行时
  • 具有适当权限的 Slack API 令牌

安装

  1. 克隆存储库
  2. 安装依赖项:
    bun install

用法

  1. 将 Slack API 令牌设置为环境变量:
    export SLACK_TOKEN=xoxb-your-token-here
  2. 运行服务器:
    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 令牌永远不会在响应中记录或暴露
  • 令牌通过环境变量安全传递
-
security - not tested
F
license - not found
-
quality - not tested

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 工作区检索用户、频道、消息和线程回复。

  1. 特征
    1. 工具
    2. 资源
  2. 要求
    1. 安装
      1. 用法
        1. 建筑
          1. MCP 配置
            1. 工具示例
              1. 获取用户
              2. 获取频道
              3. 获取频道消息
              4. 获取主题回复
              5. 搜索消息
            2. 资源示例
              1. 获取所有用户
              2. 获取所有频道
            3. 错误处理
              1. 安全

                Related MCP Servers

                • A
                  security
                  A
                  license
                  A
                  quality
                  MCP Server for the Slack API, enabling Claude to interact with Slack workspaces.
                  Last updated -
                  8
                  7,787
                  43,407
                  JavaScript
                  MIT License
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  Enables interaction with Slack workspaces as a user, supporting channel listing, message posting, threading, reactions, and user management via the Slack API.
                  Last updated -
                  8
                  3
                  JavaScript
                  MIT License
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that allows Claude to interact with local LLMs running in LM Studio, providing access to list models, generate text, and use chat completions through local models.
                  Last updated -
                  Python
                • -
                  security
                  F
                  license
                  -
                  quality
                  An MCP server that connects to Claude Desktop and provides access to Slack actions through ActionKit, allowing users to interact with Slack via their authenticated Paragon credentials.
                  Last updated -
                  1
                  TypeScript
                  • Apple

                View all related MCP servers

                ID: 8mfkeaj8ta