Skip to main content
Glama
emiliobool

MCP Relay Server

by emiliobool

MCPリレー

この MCP サーバーにより、Claude は Discord チャネルにメッセージやプロンプトを送信し、応答を受け取ることができます。

セットアップ手順

1. Discordアプリケーションとボットを作成する

  1. Discord開発者ポータルへアクセス

  2. 「新しいアプリケーション」をクリックして名前を付けます

  3. 左サイドバーの「ボット」セクションに移動します

  4. ボットのトークンセクションで、「トークンをリセット」をクリックし、新しいトークンをコピーします。

    • このトークンは安全に保管してください。公開しないでください。

  5. 「特権ゲートウェイ インテント」で、以下を有効にします。

    • メッセージコンテンツの意図

    • サーバーメンバーの意図

    • プレゼンスインテント

2. ボットをサーバーに招待する

  1. 左側のサイドバーの「OAuth2」セクションに移動します

  2. 「URLジェネレータ」を選択

  3. 「スコープ」で以下を選択します。

    • ボット

    • アプリケーションコマンド

  4. 「ボット権限」で以下を選択します。

    • メッセージを送信

    • リンクを埋め込む

    • メッセージ履歴を読む

  5. 生成されたURLをコピーしてブラウザで開きます

  6. サーバーを選択し、ボットを承認します

3. チャンネルIDを取得する

  1. Discord で開発者モードを有効にします。

    • ユーザー設定 > アプリ設定 > 詳細設定に移動します

    • 「開発者モード」をオンにする

  2. 使用したいチャンネルを右クリックします

  3. 「チャンネルIDをコピー」をクリック

4. MCP設定を構成する

サーバーはMCP設定ファイルで設定する必要があります。設定ファイルに以下の行を追加してください。

{
    "mcpServers": {
        "discord-relay": {
            "command": "node",
            "args": [
                "/ABSOLUTE/PATH/TO/MCP Relay/build/index.js"
            ],
            "env": {
                "DISCORD_TOKEN": "your_bot_token_here",
                "DISCORD_CHANNEL_ID": "your_channel_id_here"
            }
        }
    }
}

交換する:

  • /ABSOLUTE/PATH/TO/MCP Relay MCP Relay プロジェクトへの実際のパスに置き換えます。

  • your_bot_token_hereに Discord ボットトークンを入力します

  • your_channel_id_hereに Discord チャンネル ID を入力します

注意: 構成では必ず絶対パスを使用してください。

Related MCP server: Discord Notification MCP Server

使用法

サーバーは、次のパラメータを受け入れるsend-messageと呼ばれるツールを提供します。

{
  type: 'prompt' | 'notification',  // Type of message
  title: string,                    // Message title
  content: string,                  // Message content
  actions?: Array<{                 // Optional action buttons
    label: string,                  // Button label
    value: string                   // Value returned when clicked
  }>,
  timeout?: number                  // Optional timeout in milliseconds
}

メッセージの種類

  1. 通知: 応答を期待しないシンプルなメッセージ

    {
      "type": "notification",
      "title": "Hello",
      "content": "This is a notification"
    }
  2. プロンプト: 応答を待つメッセージ

    {
      "type": "prompt",
      "title": "Question",
      "content": "Do you want to proceed?",
      "actions": [
        { "label": "Yes", "value": "yes" },
        { "label": "No", "value": "no" }
      ],
      "timeout": 60000  // Optional: 1 minute timeout
    }

注記:

  • プロンプトには、アクションボタンをクリックするか、テキストメッセージを送信することで回答できます。

  • プロンプトごとに 1 つの応答のみが受け入れられます

  • タイムアウトが指定されている場合、タイムアウト期間後にプロンプトは失敗します。

  • 通知は応答を待たずにすぐに戻ります

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.
    19
    348
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables Claude Code to send notifications to Discord channels via webhooks when tasks complete, errors occur, or user intervention is needed. Deployed serverlessly on Cloudflare Workers with support for rich message formatting and embeds.
    8
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides native Discord tools for Claude Code, enabling bidirectional communication with remote agents or humans via the Discord REST API. It allows users to send messages, read channel history, and manage reactions directly from their local environment.
    6
    19
    3
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that enables Claude Desktop to interact with Discord through a dedicated bot. It allows users to list channels, read message history, and send messages directly from the AI interface.
    2
    -

Latest Blog Posts

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/emiliobool/MCP-Relay'

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