discord-mcp
An open-source Model Context Protocol server that connects AI agents like Claude, Codex, Cursor, and VS Code to Discord servers. It enables agents to read and send messages, moderate members, manage roles, channels, forums, webhooks, and events using over 100 tools. It supports toolset profiles, guild allow-lists, and dry-runs for mass actions to safely automate community management tasks.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Summarize busy channels and post recaps
- Open bug-tracker forums and file bugs
- Preview and remove spam raids
- Schedule community events and announce them
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
docker.io/pasympa/discord-mcp:2.4.0
{
"transport": "stdio",
"identifier": "docker.io/pasympa/discord-mcp:2.4.0",
"registryType": "oci",
"environmentVariables": [
{
"name": "DISCORD_TOKEN",
"format": "string",
"isRequired": true,
"description": "Discord bot token"
},
{
"name": "DISCORD_MCP_TOOLSETS",
"format": "string",
"default": "all",
"description": "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."
},
{
"name": "DISCORD_MCP_READ_ONLY",
"format": "boolean",
"default": "false",
"description": "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."
},
{
"name": "DISCORD_ALLOWED_GUILDS",
"format": "string",
"description": "Comma-separated guild IDs the server may act on. Calls that target any other guild are rejected. Unset allows every guild.",
"placeholder": "123456789012345678,234567890123456789"
},
{
"name": "DISCORD_MESSAGE_CONTENT",
"format": "boolean",
"default": "true",
"description": "Set to false to stop requesting the Message Content privileged intent at connect time."
},
{
"name": "DISCORD_GUILD_MEMBERS",
"format": "boolean",
"default": "true",
"description": "Set to false to stop requesting the Server Members privileged intent at connect time."
},
{
"name": "DISCORD_MCP_TRANSPORT",
"format": "string",
"choices": [
"stdio",
"http"
],
"default": "stdio",
"description": "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."
},
{
"name": "DISCORD_MCP_HTTP_TOKEN",
"format": "string",
"description": "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."
},
{
"name": "DISCORD_MCP_HTTP_HOST",
"format": "string",
"default": "127.0.0.1",
"description": "Address the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Keep 127.0.0.1 unless the server runs in a container."
},
{
"name": "DISCORD_MCP_HTTP_PORT",
"format": "number",
"default": "3000",
"description": "Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http."
},
{
"name": "DISCORD_MCP_HTTP_ALLOWED_HOSTS",
"format": "string",
"description": "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.",
"placeholder": "discord-mcp.example.com"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"discord-mcp-2-4-0": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
"-e",
"DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
"-e",
"DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
"-e",
"DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
"-e",
"DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
"-e",
"DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
"-e",
"DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
"-e",
"DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"-e",
"DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
"-e",
"DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
"-e",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
"docker.io/pasympa/discord-mcp:2.4.0"
],
"env": {
"DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
"DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}Cline
{
"mcpServers": {
"discord-mcp-2-4-0": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
"-e",
"DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
"-e",
"DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
"-e",
"DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
"-e",
"DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
"-e",
"DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
"-e",
"DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
"-e",
"DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"-e",
"DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
"-e",
"DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
"-e",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
"docker.io/pasympa/discord-mcp:2.4.0"
],
"env": {
"DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
"DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}VS Code
{
"servers": {
"discord-mcp-2-4-0": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
"-e",
"DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
"-e",
"DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
"-e",
"DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
"-e",
"DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
"-e",
"DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
"-e",
"DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
"-e",
"DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"-e",
"DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
"-e",
"DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
"-e",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
"docker.io/pasympa/discord-mcp:2.4.0"
],
"env": {
"DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
"DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"discord-mcp-2-4-0": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DISCORD_TOKEN=<YOUR_DISCORD_TOKEN>",
"-e",
"DISCORD_MCP_TOOLSETS=<YOUR_DISCORD_MCP_TOOLSETS>",
"-e",
"DISCORD_MCP_READ_ONLY=<YOUR_DISCORD_MCP_READ_ONLY>",
"-e",
"DISCORD_ALLOWED_GUILDS=<YOUR_DISCORD_ALLOWED_GUILDS>",
"-e",
"DISCORD_MESSAGE_CONTENT=<YOUR_DISCORD_MESSAGE_CONTENT>",
"-e",
"DISCORD_GUILD_MEMBERS=<YOUR_DISCORD_GUILD_MEMBERS>",
"-e",
"DISCORD_MCP_TRANSPORT=<YOUR_DISCORD_MCP_TRANSPORT>",
"-e",
"DISCORD_MCP_HTTP_TOKEN=<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"-e",
"DISCORD_MCP_HTTP_HOST=<YOUR_DISCORD_MCP_HTTP_HOST>",
"-e",
"DISCORD_MCP_HTTP_PORT=<YOUR_DISCORD_MCP_HTTP_PORT>",
"-e",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS=<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>",
"docker.io/pasympa/discord-mcp:2.4.0"
],
"env": {
"DISCORD_TOKEN": "<YOUR_DISCORD_TOKEN>",
"DISCORD_MCP_TOOLSETS": "<YOUR_DISCORD_MCP_TOOLSETS>",
"DISCORD_MCP_READ_ONLY": "<YOUR_DISCORD_MCP_READ_ONLY>",
"DISCORD_ALLOWED_GUILDS": "<YOUR_DISCORD_ALLOWED_GUILDS>",
"DISCORD_MESSAGE_CONTENT": "<YOUR_DISCORD_MESSAGE_CONTENT>",
"DISCORD_GUILD_MEMBERS": "<YOUR_DISCORD_GUILD_MEMBERS>",
"DISCORD_MCP_TRANSPORT": "<YOUR_DISCORD_MCP_TRANSPORT>",
"DISCORD_MCP_HTTP_TOKEN": "<YOUR_DISCORD_MCP_HTTP_TOKEN>",
"DISCORD_MCP_HTTP_HOST": "<YOUR_DISCORD_MCP_HTTP_HOST>",
"DISCORD_MCP_HTTP_PORT": "<YOUR_DISCORD_MCP_HTTP_PORT>",
"DISCORD_MCP_HTTP_ALLOWED_HOSTS": "<YOUR_DISCORD_MCP_HTTP_ALLOWED_HOSTS>"
}
}
}
}Let your agent find its tools
Find servers like discord-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.