D

Discord MCP

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

Lightweight multi-guild Discord MCP server with 100 tools for messages, channels, roles, permissions, moderation, forums, webhooks, scheduled events, invites, DMs, and embeds

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-pasympa-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pasympa/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_TOOLSETS": "all",
        "DISCORD_MCP_READ_ONLY": "false",
        "DISCORD_ALLOWED_GUILDS": "123456789012345678,234567890123456789",
        "DISCORD_MESSAGE_CONTENT": "true",
        "DISCORD_GUILD_MEMBERS": "true",
        "DISCORD_MCP_TRANSPORT": "stdio",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_HTTP_PORT": "3000",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "discord-mcp.example.com"
      }
    }
  }
}

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-pasympa-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pasympa/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_TOOLSETS": "all",
        "DISCORD_MCP_READ_ONLY": "false",
        "DISCORD_ALLOWED_GUILDS": "123456789012345678,234567890123456789",
        "DISCORD_MESSAGE_CONTENT": "true",
        "DISCORD_GUILD_MEMBERS": "true",
        "DISCORD_MCP_TRANSPORT": "stdio",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_HTTP_PORT": "3000",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "discord-mcp.example.com"
      }
    }
  }
}

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-pasympa-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pasympa/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_TOOLSETS": "all",
        "DISCORD_MCP_READ_ONLY": "false",
        "DISCORD_ALLOWED_GUILDS": "123456789012345678,234567890123456789",
        "DISCORD_MESSAGE_CONTENT": "true",
        "DISCORD_GUILD_MEMBERS": "true",
        "DISCORD_MCP_TRANSPORT": "stdio",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_HTTP_PORT": "3000",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "discord-mcp.example.com"
      }
    }
  }
}

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-pasympa-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pasympa/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_TOOLSETS": "all",
        "DISCORD_MCP_READ_ONLY": "false",
        "DISCORD_ALLOWED_GUILDS": "123456789012345678,234567890123456789",
        "DISCORD_MESSAGE_CONTENT": "true",
        "DISCORD_GUILD_MEMBERS": "true",
        "DISCORD_MCP_TRANSPORT": "stdio",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_HTTP_PORT": "3000",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "discord-mcp.example.com"
      }
    }
  }
}

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-pasympa-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pasympa/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_TOOLSETS": "all",
        "DISCORD_MCP_READ_ONLY": "false",
        "DISCORD_ALLOWED_GUILDS": "123456789012345678,234567890123456789",
        "DISCORD_MESSAGE_CONTENT": "true",
        "DISCORD_GUILD_MEMBERS": "true",
        "DISCORD_MCP_TRANSPORT": "stdio",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_HTTP_PORT": "3000",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "discord-mcp.example.com"
      }
    }
  }
}

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-pasympa-discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@pasympa/discord-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_TOOLSETS": "all",
        "DISCORD_MCP_READ_ONLY": "false",
        "DISCORD_ALLOWED_GUILDS": "123456789012345678,234567890123456789",
        "DISCORD_MESSAGE_CONTENT": "true",
        "DISCORD_GUILD_MEMBERS": "true",
        "DISCORD_MCP_TRANSPORT": "stdio",
        "DISCORD_MCP_HTTP_TOKEN": "<YOUR_VALUE>",
        "DISCORD_MCP_HTTP_HOST": "127.0.0.1",
        "DISCORD_MCP_HTTP_PORT": "3000",
        "DISCORD_MCP_HTTP_ALLOWED_HOSTS": "discord-mcp.example.com"
      }
    }
  }
}

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 Discord bot token used to authenticate with the Discord API. Can be obtained from the Discord Developer Portal.
DISCORD_MCP_TOOLSETS No Comma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, or all. An unknown name stops the server at startup. Default: all
DISCORD_MCP_READ_ONLY No Set to true to expose only the read-only tools of the selected toolsets: write tools are neither listed nor callable. Any value other than true/false, 1/0, yes/no or on/off stops the server at startup. Default: false
DISCORD_ALLOWED_GUILDS No Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected. Unset allows every guild.
DISCORD_MESSAGE_CONTENT No Set to false to stop requesting the Message Content privileged intent at connect time. Default: true
DISCORD_GUILD_MEMBERS No Set to false to stop requesting the Server Members privileged intent at connect time. Default: true
DISCORD_MCP_TRANSPORT No stdio, or http to serve Streamable HTTP on /mcp for remote clients such as the OpenAI Responses API, Codex or n8n. Any other value stops the server at startup. Default: stdio
DISCORD_MCP_HTTP_TOKEN secret No Bearer token every HTTP request must carry. Required when DISCORD_MCP_TRANSPORT is http: at least 32 characters from the RFC 6750 b64token alphabet, different from DISCORD_TOKEN. Generate one with openssl rand -hex 32.
DISCORD_MCP_HTTP_HOST No Address the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 unless the server runs in a container. Default: 127.0.0.1
DISCORD_MCP_HTTP_PORT No Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Default: 3000
DISCORD_MCP_HTTP_ALLOWED_HOSTS No Comma-separated hostnames, without port, accepted in the Host header of HTTP requests besides localhost, 127.0.0.1 and [::1], such as the public name a reverse proxy forwards.

Similar servers