Skip to content
MCP server

Discord MCP

MCP server for managing Discord servers: chat, moderation, admin and server building

Runs locallyActively maintained

The repository was last updated 14 days ago and is published under Apache-2.0.

Discord MCP is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
What it can do
Can change data (1 tool)
Access
Needs a secret key or token
GitHub stars
12

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add discord-mcp --env DISCORD_TOKEN='<DISCORD_TOKEN>' -- npx -y @orygn/discord-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<DISCORD_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<DISCORD_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<DISCORD_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "discord-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<DISCORD_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add discord-mcp --env DISCORD_TOKEN='<DISCORD_TOKEN>' -- npx -y @orygn/discord-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.discord-mcp]
command = "npx"
args = ["-y", "@orygn/discord-mcp"]
env = { DISCORD_TOKEN = "<DISCORD_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<DISCORD_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e DISCORD_TOKEN='<DISCORD_TOKEN>' discord-mcp npx -- -y @orygn/discord-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "discord-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "@orygn/discord-mcp"
          ],
          "env": {
            "DISCORD_TOKEN": "<DISCORD_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DISCORD_TOKENBot token from the Discord Developer Portal. The init wizard sets this up.Required
  • DISCORD_MCP_GUILDOptional default server id so tools can omit the guild parameter.
  • DISCORD_MCP_READ_ONLYOptional. true loads only the tools that change nothing.
  • DISCORD_MCP_ALLOWED_SERVERSOptional. Server ids, separated by commas, that the tools may act in.
  • DISCORD_MCP_TELEMETRYAnonymous daily usage stats, on by default. off turns them off.

About Discord MCP

discord-mcp lets an AI assistant operate a Discord server through your own bot. It covers messaging, moderation, administration, community features and building out a full server from a short brief, with roles, categories, channels and permissions.

It runs locally over stdio with no model or cloud service inside it. Rate limits are respected, and destructive actions are shown as a preview first and, in clients that support it, require a confirmation the AI cannot answer. An init wizard verifies the bot token, creates an invite link and registers the server with detected clients.

It is for community managers and developers who want an assistant to run or set up Discord servers. It was formerly named Omnicord.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 1 tool changes data.

From the server's own tool labels and tool names; not verified by us.

run_setup_checkName suggests: changes
Checks the Discord bot setup and reports fixes in plain language.

What it does

Server building
Plan and apply roles, categories, channels and permissions from a brief.
Moderation tools
Timeouts, kicks, bans and bulk actions shown as previews first.
Messaging
Send, edit, pin, react, schedule messages and use embeds and webhooks.
Safety gates
Destructive actions need a preview and confirmation.
Setup wizard
An init command configures the bot token and client entries.
Blueprints and undo
Export, diff and rebuild layouts, and undo structural changes.

Good for

  • Build a community server from a paragraph brief
  • Moderate members and clean up spam
  • Catch up on what happened in channels
  • Audit a server's permissions
  • Schedule announcements and events

Pricing

Open source

Free, Apache-2.0

More servers for the same service

Discord MCP FAQ

What do I need?

Node 22 or newer, a Discord account and a bot token.

Where is the token stored?

In a file on your machine.

Does Discord MCP include an AI model?

No. Your AI client is the model; this server only performs the actions.

What license applies?

Apache 2.0.

Is Discord MCP free?

Yes. Discord MCP is open source, so you can use and self-host it for free.

How do I add Discord MCP to Claude Code?

Run this command in your terminal: claude mcp add discord-mcp --env DISCORD_TOKEN='<DISCORD_TOKEN>' -- npx -y @orygn/discord-mcp

What are the best alternatives to Discord MCP?

The closest alternatives to Discord MCP are TrendRadar, TryPost, Gmail MCP, Getmitra and Valentina.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers