Discord Management MCP logo

Discord Management MCP

by TheStreamCode

Locally manages Discord guilds with inspection, JSON backups, restore planning, and guarded mutations over MCP.

Install Discord Management MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "thestreamcode-discord-management-mcp": {
      "command": "npx",
      "args": [
        "--yes",
        "discord-management-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "YOUR_VALUE_HERE",
        "BACKUP_DIR": "YOUR_VALUE_HERE",
        "ENABLE_MESSAGE_CONTENT": "YOUR_VALUE_HERE",
        "ENABLE_GUILD_MEMBERS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx --yes discord-management-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

TheStreamCode/discord-management-mcp connects MCP clients to Discord guilds through a local stdio process, using a bot token supplied by the operator. It provides 54 tools for guild inspection, moderation, channels, roles, server settings, backups, and restore workflows. Mutations require confirmation and an audit reason, while higher-impact changes can require a same-guild backup. Use it when an agent needs to inspect or change Discord server structure with local backup and recovery controls.

Use cases

  • Inspect a guild's channels, roles, members, and audit information
  • Create local JSON backups before making high-impact changes
  • Diff a backup and review a restore plan before applying it
  • Apply guarded channel, role, moderation, or server changes
  • Restore supported guild configuration with a pre-restore backup

Key features

  • 54 tools across guild management, moderation, backups, and restore
  • Local stdio execution with operator-controlled credentials and files
  • Confirmation and audit-reason guards for mutations
  • JSON schema v2 snapshots with channel coverage
  • Restore plans with hashes and reported recovery limitations
  • Queued mutations to prevent interleaved operations

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · discord-management-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads786Package downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Discord Management MCP works

What TheStreamCode/discord-management-mcp does

TheStreamCode/discord-management-mcp gives MCP clients a local interface for inspecting and managing Discord guilds. Its 54 tools cover guild, member, and audit inventory; channel and role administration; moderation and AutoMod; server configuration; and backup and restore operations.

The process runs locally over stdio. The Discord bot token, backup snapshots, restore plans, and MCP transport remain on the operator's machine. The server does not use a hosted relay or expose a public HTTP listener.

Read-only inspection is available without confirmation. Discord mutations use a guarded path that requires confirm: true and a non-empty audit reason. Mutations are placed through a shared queue so operations do not interleave.

How it works

Install the npm package and register it as a local stdio MCP server. The client starts the process with npx --yes discord-management-mcp and passes DISCORD_TOKEN through the process environment.

A typical first workflow is to list available guilds with discord_list_guilds, create a snapshot with discord_backup_create, inspect the result, and then make a small approved change. Backup snapshots are written as JSON files to the configured backup directory. They remove invite codes, webhook tokens, and other secrets, and record channel coverage.

For recovery, discord_backup_diff and discord_backup_restore_plan show proposed changes before application. Restore plans include a hash that can be checked during application. discord_backup_restore_apply creates a fresh pre-restore backup before making supported changes and reports applied, skipped, lossy, and failed operations.

Setup and configuration

Use Node.js 24 or newer, create a Discord application, and obtain its bot token from the Developer Portal. Invite the bot to the target guild with only the permissions needed by the tools you plan to use. The server ID is passed as the guildId argument to relevant tools.

Configuration is read first from process environment variables and then from .env.local in the working directory. The required variable is DISCORD_TOKEN. BACKUP_DIR selects the local snapshot directory. ENABLE_MESSAGE_CONTENT and ENABLE_GUILD_MEMBERS enable optional privileged intents and require the corresponding approvals and settings in the Discord Developer Portal.

The server can be registered with Claude Desktop, Claude Code, Cursor, VS Code, Codex, Windsurf, or Cline. These clients use the same command, arguments, and environment variable values, although their configuration locations or schemas may differ.

Tools and capabilities

The tool groups include:

  • Guild, member, and audit-log inventory
  • JSON backup creation, comparison, restore planning, and restore application
  • Channel creation and management
  • Role administration
  • Moderation and AutoMod operations
  • Server configuration

discord_backup_create writes a local snapshot and does not require mutation confirmation. Mutating Discord tools require confirmation and an audit reason. High-impact operations can require a backup matched to the target guild unless the operator explicitly allows execution without one.

Limitations and notes

Restore is best effort rather than an exact recreation. Discord cannot restore original IDs after deletion and recreation, message or audit-log history, exact invite codes, webhook tokens, or every community and discovery setting. Restore output reports these cases with warnings such as NOT_RESTORED instead of treating them as completed.

The bot's Discord permissions and privileged intents limit what the tools can inspect or change. The project is independently developed and is not affiliated with Discord Inc.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Discord Management MCP

TheStreamCode/discord-management-mcp is an MCP server that connects local MCP clients to Discord guilds through a bot token. Its main tools inspect guild structure, create JSON backups, compare snapshots, plan and apply restores, and perform guarded channel, role, moderation, and server-management mutations.

Install it through an MCP client's local stdio configuration using `npx --yes discord-management-mcp`. Set `DISCORD_TOKEN` to a Discord bot token, then grant the bot the permissions required for the tools you intend to use.

Yes, TheStreamCode/discord-management-mcp works with Cursor as a local stdio MCP server. Add the `npx --yes discord-management-mcp` command, pass no additional arguments, and provide `DISCORD_TOKEN` in the MCP configuration.

Call `discord_backup_create` for the target guild after connecting the bot. It writes a JSON snapshot to `BACKUP_DIR`, removes sensitive invite and webhook data, and reports channel coverage and the backup ID.

It can apply supported role and channel fields from a restore plan, but restoration is best effort. Original IDs, message and audit-log history, exact invite codes, webhook tokens, and some community or discovery settings cannot be recreated.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDiscord Management MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/thestreamcode-discord-management-mcp?style=directory)](https://allmcps.com/mcp/thestreamcode-discord-management-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/thestreamcode-discord-management-mcp"><img src="https://allmcps.com/api/badge/thestreamcode-discord-management-mcp?style=directory" alt="Discord Management MCP on AllMCPs" /></a>