discord-mcp
MCP server by PaSympa Community
Lets AI assistants manage a Discord server through 99 MCP tools covering messages, channels, roles, moderation, forums and more. Built for server admins who want natural language control across multiple Discord servers from clients like Claude Desktop, Cursor or VS Code.
Install discord-mcp
Built from the published package, never by AI.
claude mcp add discord-mcp -e DISCORD_TOKEN=YOUR_DISCORD_TOKEN -- npx -y @pasympa/discord-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"discord-mcp": {
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_TOKEN"
},
"args": [
"-y",
"@pasympa/discord-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"discord-mcp": {
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_TOKEN"
},
"args": [
"-y",
"@pasympa/discord-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"discord-mcp": {
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_TOKEN"
},
"args": [
"-y",
"@pasympa/discord-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add discord-mcp --env DISCORD_TOKEN=YOUR_DISCORD_TOKEN -- npx -y @pasympa/discord-mcp{
"mcpServers": {
"discord-mcp": {
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_TOKEN"
},
"args": [
"-y",
"@pasympa/discord-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add discord-mcp npx -y @pasympa/discord-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the discord-mcp block.
About
discord-mcp is an MCP server that lets AI assistants manage a Discord server. It exposes 99 tools covering messages, channels, permissions, roles, moderation, forums, webhooks, scheduled events, invites and direct messages. The server works across multiple guilds and is not tied to a single GUILD_ID. It can be installed with npx or Docker.
It is built with TypeScript and Node.js and works with Claude Desktop, Claude Code, Cursor, VS Code Copilot and other MCP-compatible clients. It runs with a Discord bot token. The DISCORD_ALLOWED_GUILDS and DISCORD_MCP_TOOLSETS variables can limit which servers and tool groups are available. It suits server admins and developers who want to manage Discord through natural language.
Written from the project's README and checked against it.
Tools it gives your assistant
discord_list_guildsList all servers the bot is connected todiscord_read_messagesRead messages, paging back through historydiscord_send_messageSend a plain text messagediscord_send_embedSend a rich embed with all optionsdiscord_create_channelCreate a text, voice channel or categorydiscord_find_channel_by_nameFind a channel by name (partial match)discord_search_guild_messagesSearch across every channel using Discord's search indexdiscord_add_reactionAdd a reaction emoji to a messagediscord_pin_messagePin or unpin a messagediscord_bulk_delete_messagesDelete multiple messages at once (2-100)
What you need
- Discord bot token
- Discord bot created in the Discord Developer Portal
- Node.js or Docker
- Server Members and Message Content privileged intents enabled in the portal, or the related flags set to false
| Setting | Needed | What it is |
|---|---|---|
DISCORD_Environment variable, secret | Required | Discord bot token |
DISCORD_Environment variable | Optional | Comma-separated toolsets to expose: discovery, messages, channels, permissions, members, roles, moderation, screening, stats, forums, webhooks, scheduled_events, invites, dm, polls, or all. An unknown name stops the server at startup. Default: all |
DISCORD_Environment variable | Optional | 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_Environment variable | Optional | 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 value other than true/false, 1/0, yes/no Default: true |
DISCORD_Environment variable | Optional | 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_Environment variable | Optional | Set to false to stop requesting the Message Content privileged intent at connect time. Default: true |
DISCORD_Environment variable | Optional | Set to false to stop requesting the Server Members privileged intent at connect time. Default: true |
DISCORD_Environment variable | Optional | 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_Environment variable, secret | Optional | 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_Environment variable | Optional | 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 container, and publish the port on the host loopbac Default: 127.0.0.1 |
DISCORD_Environment variable | Optional | Port the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Default: 3000 |
DISCORD_Environment variable | Optional | 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. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- List all the Discord servers the bot is connected to
- Find the announcements channel and read its latest messages
- Create a new text channel called events in a category
Good to know
- Privileged intents that are not enabled in the Developer Portal make the connection fail with close code 4014.
- With the Message Content toggle off, message bodies come back empty.
- Toolsets include destructive tools such as bulk delete and kick or ban, so use DISCORD_ALLOWED_GUILDS to bound them.
- Each tool call is limited to the permissions granted to the bot in the server.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to discord-mcp
All alternatives →Jitsu MCP server lets AI assistants configure and operate Jitsu data pipelines. It covers destinations, streams, connections and functions, plus Live Events and connector syncs. It is aimed at teams that run event data pipelines.
Vexa sends a bot into Google Meet, Microsoft Teams, Zoom and Jitsi calls to capture speaker-labelled transcripts live or after the call. It suits teams that want meeting transcripts they can self-host.
Gives Claude and other MCP-compatible AI agents access to LinkedIn through your own browser session. It reads profiles, researches companies, finds jobs, and manages messages and connection requests.
Runs a NetSapiens phone system from Claude, ChatGPT, or any MCP client. Each person signs in as themselves, and their assistant gets role-aware tools for calls, voicemail, queues, and provisioning.
Resend MCP Server connects AI assistants to the Resend email platform. It lets them send and receive emails and manage contacts, broadcasts, templates, and domains. It suits developers and teams who use MCP clients such as Claude or Cursor.
The source does not describe labelhead-artist-momentum. It is a README for Paperclip, an open-source orchestration app for teams of AI agents.
Compare with Jitsu, Vexa or Linkedin MCP server
discord-mcp: common questions
Can one instance manage several Discord servers?
Yes. The source says the server works across multiple guilds, with no GUILD_ID lock-in. DISCORD_ALLOWED_GUILDS can restrict it to a chosen list of guild IDs.
How can I limit which tools the assistant can use?
Set DISCORD_MCP_TOOLSETS to a comma-separated list of toolsets such as discovery, messages or members. Only the listed toolsets' tools are advertised and callable.
Why are message contents empty in some results?
According to the source, if the Message Content portal toggle is off, message bodies, embeds and attachments come back empty, except for the bot's own messages, DMs and messages that mention the bot.
How do I install discord-mcp?
In Claude Code run claude mcp add discord-mcp -e DISCORD_TOKEN=YOUR_DISCORD_TOKEN -- npx -y @pasympa/discord-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is discord-mcp the official server?
discord-mcp is a community project by PaSympa, not verified by a company domain.
Is discord-mcp free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is discord-mcp safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to discord-mcp?
Similar MCP servers: Jitsu, Vexa, Linkedin MCP server, Netsapiens MCP.
Does discord-mcp work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
