RD

rastrian/discordmcp

Developer tools

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

10 stars 2 forks 品質 73 トレンド 38Apache-2.0

A multi-server Discord control plane that exposes Discord operations as MCP tools, resources, and prompts for AI clients, with a built-in conversational AI agent.

概要

A multi-server Discord control plane that exposes Discord operations as MCP tools, resources, and prompts for AI clients. Includes a built-in conversational AI agent that responds to Discord @mentions. Users connect their Discord identity via OAuth2, install the platform bot into their servers, and then interact through MCP-compatible AI clients or by @mentioning the bot directly in Discord. The platform translates natural language requests into safe, authorized Discord operations: - "List my servers and channels" - "Summarize the last 100 messages in #general" - "Create a support channel and set permissions" - "Create an automation that answers FAQs in #support" - "Draft a moderation warning for this message" This is not a self-bot. It does not use user tokens, control personal Discord accounts, scrape DMs, or bypass Discord permissions/rate limits. All operations execute through authorized bot accounts using official Discord APIs.

README

以下は原文 README の抜粋です。原文を見る。

Discord MCP Platform

A multi-server Discord control plane that exposes Discord operations as MCP tools, resources, and prompts for AI clients. Includes a built-in conversational AI agent that responds to Discord @mentions.

What It Does

Users connect their Discord identity via OAuth2, install the platform bot into their servers, and then interact through MCP-compatible AI clients or by @mentioning the bot directly in Discord.

The platform translates natural language requests into safe, authorized Discord operations:

  • “List my servers and channels”
  • “Summarize the last 100 messages in #general”
  • “Create a support channel and set permissions”
  • “Create an automation that answers FAQs in #support”
  • “Draft a moderation warning for this message”

What This Is Not

This is not a self-bot. It does not use user tokens, control personal Discord accounts, scrape DMs, or bypass Discord permissions/rate limits. All operations execute through authorized bot accounts using official Discord APIs.

Architecture

graph TD
    subgraph "Clients"
        AI["AI Client / MCP Client"]
        DU["Discord User"]
    end

    subgraph "Platform"
        MCPS["MCP Server66 tools"]
        GW["Discord GatewayWebSocket"]
        PE["Policy Engine"]
        AGENT["Agent Service~60 tools"]
        SVC["Discord Service Layer107 async REST methods"]
    end

    AI -->|MCP call| MCPS
    DU -->|"@mention"| GW
    MCPS --> PE
    GW --> AGENT
    AGENT --> PE
    PE --> SVC
    SVC -->|API v10| DISC["Discord API"]
graph LR
    subgraph "Authorization Flow"
        direction TB
        A1["1. MCP client auth"] --> A2["2. Workspace membership"]
        A2 --> A3["3. Guild installation check"]
        A3 --> A4["4. Platform role/permission"]
        A4 --> A5["5. Channel policy check"]
        A5 --> A6["6. Discord bot permission"]
        A6 --> A7["7. Rate-limit check"]
        A7 --> A8["8. Execute & audit"]
    end

Features

MCP Server (66 tools)

graph LR
    subgraph "MCP Tools by Domain"
        G["Guild4 tools"]
        CH["Channel7 tools"]
        MSG["Message7 tools"]
        MOD["Moderation2 tools"]
        THR["Thread1 tool"]
        ROLE["Role7 tools"]
        MEM["Member6 tools"]
        WH["Webhook6 tools"]
        INV["Invite8 tools"]
        AUTO["Automation1 tool"]
        AUD["Audit1 tool"]
        REA["Reaction4 tools"]
        EVT["Event6 tools"]
        AMOD["Automod5 tools"]
    end
Domain Tools
Guild list, get, modify, incident_actions (lockdown)
Channel list, get, create, edit, delete, edit_permissions, delete_permissions
Message list_recent, send, get, edit, send_embed, delete, bulk_delete
Moderation delete, bulk_delete
Thread create
Role list, create, modify, delete, reorder, assign, remove
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "discord": { "command": "uv", "args": ["run", "python", "-m", "discord_mcp_platform.mcp.server"], "env": { "DISCORD_BOT_TOKEN": "your-bot-token" } } } }