D

Discord MCP

by OrygnsCode · io.github.OrygnsCode/discord-mcp

Discord server management MCP for AI agents: chat, moderation, admin, and full server building. 160+ tools, confirmations the model cannot answer, undo. Formerly Omnicord.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-orygnscode-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_GUILD": "<VALUE>",
        "DISCORD_MCP_READ_ONLY": "<VALUE>",
        "DISCORD_MCP_ALLOWED_SERVERS": "<VALUE>",
        "DISCORD_MCP_TELEMETRY": "<VALUE>",
        "DISCORD_MCP_PORT": "3414",
        "DISCORD_MCP_GATEWAY": "on",
        "DISCORD_MCP_DATA_DIR": ".discord-mcp",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_SAFE_MODE": "true",
        "DISCORD_MCP_HTTP_TOKEN": "<VALUE>",
        "DISCORD_MCP_HTTP_ORIGINS": ""
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-orygnscode-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_GUILD": "<VALUE>",
        "DISCORD_MCP_READ_ONLY": "<VALUE>",
        "DISCORD_MCP_ALLOWED_SERVERS": "<VALUE>",
        "DISCORD_MCP_TELEMETRY": "<VALUE>",
        "DISCORD_MCP_PORT": "3414",
        "DISCORD_MCP_GATEWAY": "on",
        "DISCORD_MCP_DATA_DIR": ".discord-mcp",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_SAFE_MODE": "true",
        "DISCORD_MCP_HTTP_TOKEN": "<VALUE>",
        "DISCORD_MCP_HTTP_ORIGINS": ""
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-orygnscode-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_GUILD": "<VALUE>",
        "DISCORD_MCP_READ_ONLY": "<VALUE>",
        "DISCORD_MCP_ALLOWED_SERVERS": "<VALUE>",
        "DISCORD_MCP_TELEMETRY": "<VALUE>",
        "DISCORD_MCP_PORT": "3414",
        "DISCORD_MCP_GATEWAY": "on",
        "DISCORD_MCP_DATA_DIR": ".discord-mcp",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_SAFE_MODE": "true",
        "DISCORD_MCP_HTTP_TOKEN": "<VALUE>",
        "DISCORD_MCP_HTTP_ORIGINS": ""
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-orygnscode-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_GUILD": "<VALUE>",
        "DISCORD_MCP_READ_ONLY": "<VALUE>",
        "DISCORD_MCP_ALLOWED_SERVERS": "<VALUE>",
        "DISCORD_MCP_TELEMETRY": "<VALUE>",
        "DISCORD_MCP_PORT": "3414",
        "DISCORD_MCP_GATEWAY": "on",
        "DISCORD_MCP_DATA_DIR": ".discord-mcp",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_SAFE_MODE": "true",
        "DISCORD_MCP_HTTP_TOKEN": "<VALUE>",
        "DISCORD_MCP_HTTP_ORIGINS": ""
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-orygnscode-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_GUILD": "<VALUE>",
        "DISCORD_MCP_READ_ONLY": "<VALUE>",
        "DISCORD_MCP_ALLOWED_SERVERS": "<VALUE>",
        "DISCORD_MCP_TELEMETRY": "<VALUE>",
        "DISCORD_MCP_PORT": "3414",
        "DISCORD_MCP_GATEWAY": "on",
        "DISCORD_MCP_DATA_DIR": ".discord-mcp",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_SAFE_MODE": "true",
        "DISCORD_MCP_HTTP_TOKEN": "<VALUE>",
        "DISCORD_MCP_HTTP_ORIGINS": ""
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-orygnscode-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@orygn/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_GUILD": "<VALUE>",
        "DISCORD_MCP_READ_ONLY": "<VALUE>",
        "DISCORD_MCP_ALLOWED_SERVERS": "<VALUE>",
        "DISCORD_MCP_TELEMETRY": "<VALUE>",
        "DISCORD_MCP_PORT": "3414",
        "DISCORD_MCP_GATEWAY": "on",
        "DISCORD_MCP_DATA_DIR": ".discord-mcp",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_SAFE_MODE": "true",
        "DISCORD_MCP_HTTP_TOKEN": "<VALUE>",
        "DISCORD_MCP_HTTP_ORIGINS": ""
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DISCORD_TOKEN secret Yes The bot token. Required for anything real; the server boots without it and the diagnostics explain what to fix.
DISCORD_MCP_GUILD No Optional default server ID so tools can omit the guild parameter.
DISCORD_MCP_READ_ONLY No Optional. true loads only the tools that change nothing.
DISCORD_MCP_ALLOWED_SERVERS No Optional. Server ids, separated by commas, that the tools may act in.
DISCORD_MCP_TELEMETRY No Anonymous daily usage stats, on by default. off turns them off.
DISCORD_MCP_PORT No HTTP port, default 3414. Default: 3414
DISCORD_MCP_GATEWAY No Default on when a token is set: the bot shows as online and real time event subscriptions work. Set to off for REST only operation. Default: on
DISCORD_MCP_DATA_DIR No Where saved blueprints and scheduled messages live. Default: .discord-mcp next to package.json for a source checkout, .orygn/discord-mcp in your user folder for an installed copy. Default: .discord-mcp
DISCORD_MCP_HTTP_HOST No HTTP bind address, default 127.0.0.1. Default: 127.0.0.1
DISCORD_MCP_SAFE_MODE No Default on. Destructive tools preview first and require a confirm token; set to false only for trusted automation. Default: true
DISCORD_MCP_HTTP_TOKEN No Bearer token for HTTP mode. Required to bind beyond localhost.
DISCORD_MCP_HTTP_ORIGINS No Comma separated browser origins allowed to call the HTTP endpoint. Empty means none.

Similar servers