MCP Server Studio
Run your Discord from Claude, Codex, Cursor or VS Code: messages, moderation, roles, forums, events
Registry name: io.github.PaSympa/discord-mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"discord-mcp": {
"command": "npx",
"args": [
"-y",
"@pasympa/[email protected]"
],
"env": {
"DISCORD_TOKEN": "<DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<DISCORD_MCP_READ_ONLY>",
"DISCORD_MCP_CONFIRM": "<DISCORD_MCP_CONFIRM>",
"DISCORD_ALLOWED_GUILDS": "<DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}Run in your terminal:
claude mcp add discord-mcp -e DISCORD_TOKEN='<DISCORD_TOKEN>' -e DISCORD_MCP_TOOLSETS='<DISCORD_MCP_TOOLSETS>' -e DISCORD_MCP_READ_ONLY='<DISCORD_MCP_READ_ONLY>' -e DISCORD_MCP_CONFIRM='<DISCORD_MCP_CONFIRM>' -e DISCORD_ALLOWED_GUILDS='<DISCORD_ALLOWED_GUILDS>' -e DISCORD_MESSAGE_CONTENT='<DISCORD_MESSAGE_CONTENT>' -e DISCORD_GUILD_MEMBERS='<DISCORD_GUILD_MEMBERS>' -e DISCORD_MCP_TRANSPORT='<DISCORD_MCP_TRANSPORT>' -e DISCORD_MCP_HTTP_TOKEN='<DISCORD_MCP_HTTP_TOKEN>' -e DISCORD_MCP_HTTP_HOST='<DISCORD_MCP_HTTP_HOST>' -e DISCORD_MCP_HTTP_PORT='<DISCORD_MCP_HTTP_PORT>' -e DISCORD_MCP_HTTP_ALLOWED_HOSTS='<DISCORD_MCP_HTTP_ALLOWED_HOSTS>' -- npx -y @pasympa/[email protected]Add to .cursor/mcp.json:
{
"mcpServers": {
"discord-mcp": {
"command": "npx",
"args": [
"-y",
"@pasympa/[email protected]"
],
"env": {
"DISCORD_TOKEN": "<DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<DISCORD_MCP_READ_ONLY>",
"DISCORD_MCP_CONFIRM": "<DISCORD_MCP_CONFIRM>",
"DISCORD_ALLOWED_GUILDS": "<DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"discord-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pasympa/[email protected]"
],
"env": {
"DISCORD_TOKEN": "<DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<DISCORD_MCP_READ_ONLY>",
"DISCORD_MCP_CONFIRM": "<DISCORD_MCP_CONFIRM>",
"DISCORD_ALLOWED_GUILDS": "<DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"discord-mcp": {
"command": "npx",
"args": [
"-y",
"@pasympa/[email protected]"
],
"env": {
"DISCORD_TOKEN": "<DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<DISCORD_MCP_READ_ONLY>",
"DISCORD_MCP_CONFIRM": "<DISCORD_MCP_CONFIRM>",
"DISCORD_ALLOWED_GUILDS": "<DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
DISCORD_TOKEN | Yes | Discord bot token |
DISCORD_MCP_TOOLSETS | No | Comma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, polls, or all. An… |
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… |
DISCORD_MCP_CONFIRM | No | Set to false to stop asking the user to confirm a dry_run: false call to the six tools that preview by default. The server asks only over stdio, and only a client that supports form elicitation. Any… |
DISCORD_ALLOWED_GUILDS | No | Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected, and the DM tools refuse a user who is not a member of any listed guild. Unset allows every guild. |
DISCORD_MESSAGE_CONTENT | No | Set to false to stop requesting the Message Content privileged intent at connect time. |
DISCORD_GUILD_MEMBERS | No | Set to false to stop requesting the Server Members privileged intent at connect time. |
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. |
DISCORD_MCP_HTTP_TOKEN | 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… |
DISCORD_MCP_HTTP_HOST | No | Address the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 outside a container. In the Docker image, set 0.0.0.0, since 127.0.0.1 is unreachable from outside the… |
DISCORD_MCP_HTTP_PORT | No | Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. |
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. |
DISCORD_TOKEN | Yes | Discord bot token |
DISCORD_MCP_TOOLSETS | No | Comma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, polls, or all. An… |
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… |
DISCORD_MCP_CONFIRM | No | Set to false to stop asking the user to confirm a dry_run: false call to the six tools that preview by default. The server asks only over stdio, and only a client that supports form elicitation. Any… |
DISCORD_ALLOWED_GUILDS | No | Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected, and the DM tools refuse a user who is not a member of any listed guild. Unset allows every guild. |
DISCORD_MESSAGE_CONTENT | No | Set to false to stop requesting the Message Content privileged intent at connect time. |
DISCORD_GUILD_MEMBERS | No | Set to false to stop requesting the Server Members privileged intent at connect time. |
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. |