Skip to main content
Glama

Slack Search MCP Server

by takuya0206

Slack 検索 MCP サーバー

Slack の検索機能にアクセスするためのツールとリソースを提供するモデルコンテキストプロトコル (MCP) サーバー。このサーバーにより、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.

LLM が Slack の検索機能にアクセスして、Slack ワークスペースからユーザー、チャンネル、メッセージ、スレッドの返信を取得できるようにする MCP サーバー。

  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
                  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
                • -
                  security
                  F
                  license
                  -
                  quality
                  A connector enabling Claude Desktop or any MCP client to interact with Slack workspaces to post messages and query user lists.
                  Last updated -
                  TypeScript

                View all related MCP servers

                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