Skip to main content
Glama
Slack MCP Server

Slack MCP Server

by ubie-oss

Slack-MCP サーバー

Slack APIにアクセスするためのMCP(Model Context Protocol)サーバー。このサーバーにより、AIアシスタントは標準化されたインターフェースを介してSlack APIと対話できるようになります。

特徴

利用可能なツール:

  • slack_list_channels - ワークスペース内のパブリックチャンネルをページ区切りで一覧表示します

  • slack_post_message - Slackチャンネルに新しいメッセージを投稿する

  • slack_reply_to_thread - Slack の特定のメッセージスレッドに返信する

  • slack_add_reaction - メッセージに反応絵文字を追加する

  • slack_get_channel_history - チャンネルから最近のメッセージを取得する

  • slack_get_thread_replies - メッセージスレッド内のすべての返信を取得する

  • slack_get_users - ワークスペース内のすべてのユーザーの基本プロフィール情報を取得します

  • slack_get_user_profile - ユーザーのプロフィール情報を取得する

  • slack_search_messages - ワークスペース内のメッセージを検索する

Related MCP server: Slack MCP Server

クイックスタート

インストール

npm install @ubie-oss/slack-mcp-server

注意: 現在、GitHub レジストリでホストされているため、PAT が必要です。

構成

次の環境変数を設定する必要があります。

  • SLACK_BOT_TOKEN : Slack ボットユーザー OAuth トークン

  • SLACK_USER_TOKEN : Slack ユーザー OAuth トークン (メッセージ検索などの一部の機能に必要)

.envファイルを作成して、次の環境変数を設定することもできます。

SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_USER_TOKEN=xoxp-your-user-token

使用法

MCPサーバーを起動する

直接:

npx @ubie-oss/slack-mcp-server

または、インストールしたモジュールを node で実行します。

node node_modules/.bin/slack-mcp-server

クライアントの MCP 構成 json を編集します。

{
  "slack": {
    "command": "npx",
    "args": [
      "-y",
      "@ubie-oss/slack-mcp-server"
    ],
    "env": {
      "NPM_CONFIG_//npm.pkg.github.com/:_authToken": "<your-github-pat>",
      "SLACK_BOT_TOKEN": "<your-bot-token>",
      "SLACK_USER_TOKEN": "<your-user-token>"
    }
  }
}

実装パターン

このサーバーは次の実装パターンを採用しています。

  1. Zodスキーマを使用してリクエスト/レスポンスを定義する

    • リクエストスキーマ: 入力パラメータを定義する

    • レスポンススキーマ: 必要なフィールドに限定したレスポンスを定義する

  2. 実装フロー:

    • Zodスキーマでリクエストを検証する

    • Slack WebAPIを呼び出す

    • Zodスキーマを使用してレスポンスを解析し、必要なフィールドに限定する

    • JSONとして返す

たとえば、 slack_list_channels実装は、 ListChannelsRequestSchemaを使用してリクエストを解析し、 slackClient.conversations.listを呼び出し、 ListChannelsResponseSchemaを使用して解析されたレスポンスを返します。

発達

利用可能なスクリプト

  • npm run dev - ホットリロードで開発モードでサーバーを起動します

  • npm run build - 本番環境用にプロジェクトをビルドする

  • npm run start - 本番サーバーを起動する

  • npm run lint - リンティングチェックを実行する(ESLint と Prettier)

  • npm run fix - リンティングの問題を自動的に修正する

貢献

  1. リポジトリをフォークする

  2. 機能ブランチを作成する

  3. テストとリンティングを実行する: npm run lint

  4. 変更をコミットする

  5. ブランチにプッシュする

  6. プルリクエストを作成する

Available Tools

11 tools
slack_add_reactionA

Add a reaction emoji to a message

Inputs: reaction (required), timestamp (required), channel_id (required).

slack_get_channel_historyA

Get messages from a channel in chronological order. Use this when: 1) You need the latest conversation flow without specific filters, 2) You want ALL messages including bot/automation messages, 3) You need to browse messages sequentially with pagination. Do NOT use if you have specific search criteria (user, keywords, dates) - use slack_search_messages instead.

Inputs: channel_id (required), limit, cursor.

slack_get_thread_repliesB

Get all replies in a message thread

Inputs: thread_ts (required), channel_id (required), limit, cursor.

slack_get_user_profilesB

Get multiple users profile information in bulk

Inputs: user_ids (required).

slack_get_usersB

Retrieve basic profile information of all users in the workspace

Inputs: limit, cursor.

slack_list_channelsA

List public channels in the workspace with pagination

Inputs: limit, cursor.

slack_post_messageC

Post a new message to a Slack channel

Inputs: text (required), channel_id (required), format.

slack_reply_to_threadC

Reply to a specific message thread in Slack

Inputs: text (required), thread_ts (required), channel_id (required), format.

slack_search_channelsA

Search for channels by partial name match. Use this when you need to find channels containing specific keywords in their names. Returns up to the specified limit of matching channels.

Inputs: query (required), limit, include_archived.

slack_search_messagesA

Search for messages with specific criteria/filters. Use this when: 1) You need to find messages from a specific user, 2) You need messages from a specific date range, 3) You need to search by keywords, 4) You want to filter by channel. This tool is optimized for targeted searches. For general channel browsing without filters, use slack_get_channel_history instead.

Inputs: on, page, sort, after, +8 more.

slack_search_usersA

Search for users by partial name match across username, display name, and real name. Use this when you need to find users containing specific keywords in their names. Returns up to the specified limit of matching users.

Inputs: query (required), limit, include_bots.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools target distinct actions (post, reply, react, list, search), and the history-vs-search-messages pair is explicitly disambiguated in the descriptions. The main overlap is slack_get_users (all users, basic info) versus slack_get_user_profiles (bulk profile info) versus slack_search_users, where the boundary between the first two is unclear.

    Naming Consistency5/5

    All tools use a uniform slack_<verb>_<noun> snake_case convention (slack_post_message, slack_list_channels, slack_search_users), with verbs chosen sensibly for the action. No mixed casing or inconsistent prefixes.

    Tool Count5/5

    Eleven tools is well within a reasonable range for a Slack integration and each tool maps to a recognizable Slack operation. Nothing feels padded or missing at the count level.

    Completeness3/5

    Core read/write workflows (post, reply, react, read history/threads, search, list channels/users) are covered, but the message lifecycle is incomplete: no update_message, delete_message, or remove_reaction, and there is no direct-message or channel-management (create/join) coverage. These are notable gaps that would force agents into dead ends for common Slack tasks.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server implementation that enables AI assistants to interact with Slack workspaces, allowing them to browse channels, send messages, reply to threads, add reactions, and retrieve user information.
      9
      20 npm
      2
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A simple Model Context Protocol server for Slack integration that enables messaging, channel management, and workspace search capabilities.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables LLMs to interact with Slack workspaces through OAuth 2.0 authentication. It provides tools for listing channels and posting messages while supporting secure token persistence and dynamic client registration.
      -