Skip to main content
Glama

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 - ワークスペース内のメッセージを検索する

クイックスタート

インストール

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. プルリクエストを作成する
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

モデルコンテキスト プロトコルを実装したサーバー。これにより、AI アシスタントが標準化されたインターフェースを介して Slack API と対話できるようになり、メッセージング、チャンネル管理、ユーザー情報の取得などのツールが提供されます。

  1. 特徴
    1. クイックスタート
      1. インストール
      2. 構成
      3. 使用法
    2. 実装パターン
      1. 発達
        1. 利用可能なスクリプト
        2. 貢献

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A versatile Model Context Protocol server that enables AI assistants to manage calendars, track tasks, handle emails, search the web, and control smart home devices.
        Last updated -
        2
        Python
        • Apple
        • Linux
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that allows AI assistants to interact with the VRChat API, enabling retrieval of user information, friends lists, and other VRChat data through a standardized interface.
        Last updated -
        7
        132
        33
        TypeScript
        MIT License
        • Apple
      • -
        security
        A
        license
        -
        quality
        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.
        Last updated -
        18
        JavaScript
        Apache 2.0
      • -
        security
        F
        license
        -
        quality
        A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
        Last updated -
        16
        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/ubie-oss/slack-mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server