MCP Server for Slack

by z9905080
Verified

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.

Integrations

  • Provides distribution of the MCP server package through the npm registry, allowing users to install and use the server for Slack integration.

  • Displays dynamic version badge for the package in the README, showing current npm version information.

  • Enables AI assistants to interact with Slack workspaces by listing channels, sending messages, replying to threads, adding reactions, retrieving channel history, getting thread replies, and accessing user information.

Slack 用 MCP サーバー

AI アシスタントを Slack ワークスペースに統合するためのモデル コンテキスト プロトコル (MCP) サーバー実装。

概要

このパッケージは、AIアシスタントがSlackワークスペースと連携できるようにするMCPサーバーを提供します。これにより、AIモデルは以下のことが可能になります。

  • チャンネルの一覧と閲覧
  • チャンネルにメッセージを送信する
  • スレッドに返信する
  • メッセージに反応を追加する
  • チャンネル履歴を取得する
  • スレッドの返信を取得する
  • ユーザーを一覧表示し、ユーザープロファイルを取得する

インストール

# Install from npm npm install shouting-mcp-slack # Or install globally npm install -g shouting-mcp-slack

パッケージはnpmで見つかります: shouting-mcp-slack

前提条件

Slack ボットを設定し、必要な資格情報を取得する必要があります。

  1. Slack APIコンソールでSlackアプリを作成する
  2. 次のボット トークン スコープを追加します。
    • channels:history
    • channels:read
    • chat:write
    • reactions:write
    • users:read
    • users:read.email
  3. ワークスペースにアプリをインストールする
  4. ボットユーザーのOAuthトークンをコピーする

構成

サーバーには次の環境変数が必要です。

  • SLACK_BOT_TOKEN : Slack BotユーザーのOAuthトークン
  • SLACK_TEAM_ID : Slack チーム ID

使用法

CLIツールとして実行

# Set environment variables export SLACK_BOT_TOKEN=xoxb-your-token export SLACK_TEAM_ID=your-team-id # Run the server mcp-server-slack

コード内での使用

import { Server } from "@modelcontextprotocol/sdk/server/index.js"; import { SlackClient } from "shouting-mcp-slack"; // Initialize the server and client const server = new Server({...}); const slackClient = new SlackClient(process.env.SLACK_BOT_TOKEN); // Register your custom handlers // ...

利用可能なツール

サーバーは次の Slack 統合ツールを提供します。

  • slack_list_channels : 利用可能なチャンネルを一覧表示する
  • slack_post_message : チャンネルにメッセージを送信する
  • slack_reply_to_thread : スレッドに返信する
  • slack_add_reaction : メッセージに反応を追加する
  • slack_get_channel_history : チャンネルからメッセージ履歴を取得する
  • slack_get_thread_replies : スレッド内の返信を取得する
  • slack_get_users : ワークスペース内のユーザーを一覧表示する
  • slack_get_user_profile : ユーザーのプロフィールを取得する

ライセンス

ISC

著者

shouting.hsiao@gmail.com

リポジトリ

https://github.com/z9905080/mcp-slack

-
security - not tested
A
license - permissive license
-
quality - not tested

AI アシスタントが Slack ワークスペースと対話し、チャンネルの閲覧、メッセージの送信、スレッドへの返信、反応の追加、ユーザー情報の取得を行えるようにするモデル コンテキスト プロトコル サーバーの実装。

  1. Overview
    1. Installation
      1. Prerequisites
        1. Configuration
          1. Usage
            1. Running as a CLI Tool
            2. Using in Your Code
          2. Available Tools
            1. License
              1. Author
                1. Repository
                  ID: 7h6mcq8ux9