discord-node-mcp

v1.2.0
io.github.Oratorian/discord-node-mcp Checked 3 days ago Published 10 days ago

MCP server for controlling Discord servers via bot token

Values you need

VariableWhat it is
DISCORD_BOT_TOKENrequired secret Your Discord bot token
TRANSPORToptional Transport type: stdio or http Default: stdio
PORToptional Port for HTTP transport Default: 3000
HOSToptional Host for HTTP transport Default: localhost

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add discord-node-mcp -e 'DISCORD_BOT_TOKEN=<DISCORD_BOT_TOKEN>' -- npx -y @mahesvara/discord-mcpserver@1.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "discord-node-mcp": {
      "args": [
        "-y",
        "@mahesvara/discord-mcpserver@1.2.0"
      ],
      "command": "npx",
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "discord-node-mcp": {
      "args": [
        "-y",
        "@mahesvara/discord-mcpserver@1.2.0"
      ],
      "command": "npx",
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "DISCORD_BOT_TOKEN",
      "id": "discord-bot-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "discord-node-mcp": {
      "args": [
        "-y",
        "@mahesvara/discord-mcpserver@1.2.0"
      ],
      "command": "npx",
      "env": {
        "DISCORD_BOT_TOKEN": "${input:discord-bot-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.discord-node-mcp]
command = "npx"
args = ["-y", "@mahesvara/discord-mcpserver@1.2.0"]
env = { "DISCORD_BOT_TOKEN" = "<DISCORD_BOT_TOKEN>" }

For AI agents

  1. Ask the user for: DISCORD_BOT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: discord_list_guilds, discord_get_guild, discord_leave_guild, discord_edit_guild, discord_list_channels, discord_get_channel, discord_create_channel, discord_delete_channel, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json