HM

hanweg/mcp-discord

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

166 stars 50 forks 品質 61 トレンド 17MIT

hanweg/mcp-discordは、https://github.com/hanweg/mcp-discord.からインポートされたMCPサーバー候補です。

概要

hanweg/mcp-discordは、https://github.com/hanweg/mcp-discord.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

Claude DesktopのようなMCPクライアントにDiscord統合機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。

利用可能なツール

サーバー情報

  • list_servers: 利用可能なサーバー一覧
  • get_server_info:詳細なサーバー情報を得る
  • get_channels:サーバー内のチャネル一覧
  • list_members:サーバーメンバーとその役割を一覧
  • get_user_info:ユーザーの詳細情報を取得する

メッセージ管理

  • send_message:チャネルにメッセージを送信
  • read_messages: 直近のメッセージ履歴を読む
  • add_reaction:メッセージへのリアクション追加
  • add_multiple_reactions:メッセージに複数のリアクションを追加
  • remove_reaction:メッセージからリアクションを削除する
  • moderate_message:メッセージを削除しユーザーのタイムアウトを行う

チャンネルマネジメント

  • create_text_channel:新しいテキストチャンネルを作成する
  • delete_channel:既存のチャネルを削除する

ロールマネジメント

  • add_role:ユーザーに役割を追加
  • remove_role:ユーザーから役割を削除する

設置

  1. Discordボットの設定:
  • Discord開発者ポータルで新しいアプリケーションを作成する
  • ボットを作成し、トークンをコピーする
  • 必要な特権意図を有効にする:
  • メッセージ内容の意図
  • プレゼンス意図

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

Discord MCP Server

A Model Context Protocol (MCP) server that provides Discord integration capabilities to MCP clients like Claude Desktop.

Available Tools

Server Information

  • list_servers: List available servers
  • get_server_info: Get detailed server information
  • get_channels: List channels in a server
  • list_members: List server members and their roles
  • get_user_info: Get detailed information about a user

Message Management

  • send_message: Send a message to a channel
  • read_messages: Read recent message history
  • add_reaction: Add a reaction to a message
  • add_multiple_reactions: Add multiple reactions to a message
  • remove_reaction: Remove a reaction from a message
  • moderate_message: Delete messages and timeout users

Channel Management

  • create_text_channel: Create a new text channel
  • delete_channel: Delete an existing channel

Role Management

  • add_role: Add a role to a user
  • remove_role: Remove a role from a user

Installation

  1. Set up your Discord bot:

    • Create a new application at Discord Developer Portal
    • Create a bot and copy the token
    • Enable required privileged intents:
      • MESSAGE CONTENT INTENT
      • PRESENCE INTENT
      • SERVER MEMBERS INTENT
    • Invite the bot to your server using OAuth2 URL Generator
  2. Clone and install the package:

# Clone the repository
git clone https://github.com/hanweg/mcp-discord.git
cd mcp-discord

# Create and activate virtual environment
uv venv
.venv\Scripts\activate # On macOS/Linux, use: source .venv/bin/activate

### If using Python 3.13+ - install audioop library: `uv pip install audioop-lts`

# Install the package
uv pip install -e .
  1. Configure Claude Desktop (%APPDATA%\Claude\claude_desktop_config.json on Windows, ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
    "discord": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\PATH\\TO\\mcp-discord",
        "run",
        "mcp-discord"
      ],
      "env": {
        "DISCORD_TOKEN": "your_bot_token"
      }
    }

Installing via Smithery

To install Discord Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @hanweg/mcp-discord --client claude

License

MIT License - see LICENSE file for details.

GitHub で README 全文を見る

インストール

npx -y @smithery/cli install @hanweg/mcp-discord --client claude
MCP 初心者?mcpskill.org のガイドから始めましょう →