# TheStreamCode/discord-management-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/TheStreamCode/discord-management-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 786  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/thestreamcode-discord-management-mcp

## Description
Safe-by-default Discord guild management: inspect server structure, create JSON backups, diff and plan restores, and run guarded mutations with confirmation and rollback, across 54 tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "discord-management-mcp": {
    "command": "npx",
    "args": ["--yes","discord-management-mcp"],
    "env": {
      "DISCORD_TOKEN": "",
      "BACKUP_DIR": "",
      "ENABLE_MESSAGE_CONTENT": "",
      "ENABLE_GUILD_MEMBERS": ""
    }
  }
}
```

**Requires environment variables:** `DISCORD_TOKEN`, `BACKUP_DIR`, `ENABLE_MESSAGE_CONTENT`, `ENABLE_GUILD_MEMBERS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/thestreamcode-discord-management-mcp/readme_

