Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 85
  • 43 stars
  • 3.4k a week
  • MIT
  • Updated

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-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install discord-mcp in Claude Code

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 to
  • discord_read_messagesRead messages, paging back through history
  • discord_send_messageSend a plain text message
  • discord_send_embedSend a rich embed with all options
  • discord_create_channelCreate a text, voice channel or category
  • discord_find_channel_by_nameFind a channel by name (partial match)
  • discord_search_guild_messagesSearch across every channel using Discord's search index
  • discord_add_reactionAdd a reaction emoji to a message
  • discord_pin_messagePin or unpin a message
  • discord_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
SettingNeededWhat it is
DISCORD_TOKENEnvironment variable, secretRequiredDiscord bot token
DISCORD_MCP_TOOLSETSEnvironment variableOptionalComma-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_MCP_READ_ONLYEnvironment variableOptionalSet 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_MCP_CONFIRMEnvironment variableOptionalSet 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_ALLOWED_GUILDSEnvironment variableOptionalComma-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_CONTENTEnvironment variableOptionalSet to false to stop requesting the Message Content privileged intent at connect time. Default: true
DISCORD_GUILD_MEMBERSEnvironment variableOptionalSet to false to stop requesting the Server Members privileged intent at connect time. Default: true
DISCORD_MCP_TRANSPORTEnvironment variableOptionalstdio, 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_TOKENEnvironment variable, secretOptionalBearer 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_HOSTEnvironment variableOptionalAddress 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_MCP_HTTP_PORTEnvironment variableOptionalPort the HTTP server listens on when DISCORD_MCP_TRANSPORT is http. Default: 3000
DISCORD_MCP_HTTP_ALLOWED_HOSTSEnvironment variableOptionalComma-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

A

No 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 →

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.

discord-mcp Install

Add to stack

Loading.