原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Discord Management MCP

作者:TheStreamCode版本 0.2.0i★ –i在你的电脑上运行
注册名称io.github.TheStreamCode/discord-management-mcp

安装

概览

作者提供的说明(英文原文)

Safe-by-default Discord management MCP with JSON backups, restore planning, and guarded mutations.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 聊天与邮件
  • 你需要填写:DISCORD_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: DISCORD_TOKEN, BACKUP_DIR, LOG_LEVEL, ENABLE_MESSAGE_CONTENT, ENABLE_GUILD_MEMBERS

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "discord-management": {
      "command": "npx",
      "args": [
        "-y",
        "discord-management-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "your-value",
        "BACKUP_DIR": "your-value",
        "LOG_LEVEL": "your-value",
        "ENABLE_MESSAGE_CONTENT": "your-value",
        "ENABLE_GUILD_MEMBERS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add discord-management --env DISCORD_TOKEN=your-value --env BACKUP_DIR=your-value --env LOG_LEVEL=your-value --env ENABLE_MESSAGE_CONTENT=your-value --env ENABLE_GUILD_MEMBERS=your-value -- npx -y discord-management-mcp

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "discord-management": {
      "command": "npx",
      "args": [
        "-y",
        "discord-management-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "your-value",
        "BACKUP_DIR": "your-value",
        "LOG_LEVEL": "your-value",
        "ENABLE_MESSAGE_CONTENT": "your-value",
        "ENABLE_GUILD_MEMBERS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "discord-management": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "discord-management-mcp"
      ],
      "env": {
        "DISCORD_TOKEN": "your-value",
        "BACKUP_DIR": "your-value",
        "LOG_LEVEL": "your-value",
        "ENABLE_MESSAGE_CONTENT": "your-value",
        "ENABLE_GUILD_MEMBERS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • DISCORD_TOKEN 机密 必填 env
    Discord bot token from Developer Portal > Bot > Token.
  • BACKUP_DIR env
    Relative directory for local JSON backups. It must stay inside the project directory.
  • LOG_LEVEL env
    Stderr log level: error, warn, info, or debug.
  • ENABLE_MESSAGE_CONTENT env
    Enables message-content tools and requires the Discord Message Content intent.
  • ENABLE_GUILD_MEMBERS env
    Enables the Guild Members gateway intent.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 TheStreamCode 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“聊天与邮件”中的其他服务器比较i

  • 星标数多于此分类中其他 1768 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1768 个服务器的 79% 更新
  • 基础检查结果等于或优于此分类中其他 1768 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Discord Management MCP 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:DISCORD_TOKEN

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.0)于7天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Vexa, emailmd, MCP WhatsApp Cloud

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Vexa

作者:Vexa-ai

Meeting bot and transcripts for Google Meet, Teams and Zoom. Live or after, speakers labelled.

在云端运行★ 2,949Apache-2.02个月前更新
安装

emailmd

作者:anypost

Render markdown into email-safe HTML, lint drafts for deliverability problems, and preview emails.

电脑或云端★ 1,385MIT31天前更新
安装

MCP WhatsApp Cloud

作者:codespar

MCP server for WhatsApp Cloud API (Meta) — messages, media, and templates via Graph API

在你的电脑上运行★ 277MIT5个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Discord Management MCP

Safe-by-default Discord management from any MCP client

Discord Management MCP is a local Model Context Protocol (MCP) server for inspecting, backing up, and managing Discord guilds. It runs over stdio, keeps the bot token and backup files on the operator's machine, and places confirmation, backup, and restore guards in front of every mutation. The server exposes 54 tools across guild inventory, moderation, roles, channels, server settings, backups, and restore planning.

It works with any MCP client that supports local stdio servers, including Claude Desktop, Claude Code, Cursor, VS Code, Codex, Windsurf, and Cline. This independently developed project is not affiliated with, endorsed by, sponsored by, or approved by Discord Inc.

New to Discord bots? The setup and first use guide walks through creating the application, inviting the bot with the right permissions, copying the server ID, registering the client, verifying the connection, and running the first safe backup and restore.

Install

The published package runs with one command:

npx --yes discord-management-mcp

The package is published on npm as discord-management-mcp and declares MCP registry metadata for io.github.TheStreamCode/discord-management-mcp through package.json and server.json.

Register with your client

Every client needs the same command, arguments, and DISCORD_TOKEN environment variable. Paste the equivalent of this entry into the client's MCP configuration:

{

"mcpServers": { "discord-management": { "command": "npx", "args": ["--yes", "discord-management-mcp"], "env": { "DISCORD_TOKEN": "your_bot_token" } } } }

ClientRegistration
Claude DesktopAdd the entry above to the MCP servers configuration.
Claude CodeAdd a local stdio server with the same command and arguments.
CursorAdd the entry above to the MCP configuration.
VS CodeAdd the same command and arguments in the client's MCP configuration.
CodexAdd a stdio server entry with the same command and arguments.
WindsurfAdd the entry above to the MCP configuration.
ClineAdd the server in the MCP settings panel.

Claude Desktop, Cursor, Windsurf, and Cline accept the mcpServers JSON shape shown above. Clients that use a different configuration schema accept the same command, args, and env values. See each client's own documentation for the exact file or command.

Set up

The short version, with the full walkthrough in setup and first use:

  1. Create the bot. Developer Portal > New Application > Bot > Reset Token. That token is the only credential the server needs. Do not use the Application ID, Public Key, or OAuth2 client secret.
  2. Invite it. OAuth2 > URL Generator > scope bot plus the permissions you need. Start with View Channels, Manage Channels, Manage Roles, Manage Server, View Audit Log, and the moderation permissions you plan to use. Then drag the bot role above the roles it must edit.
  3. Copy the server ID. Enable Developer Mode, right-click the server icon, Copy Server ID. This number is the guildId argument, not the bot's application ID.
  4. Register the client. Use the configuration in Register with your client with DISCORD_TOKEN in env, or put the token in .env.local in the working directory.
  5. Verify and back up. Ask the client to run discord_list_guilds, then discord_backup_create for your server, and read coverage.channels.complete.

Example first request:

Use discord_list_guilds, then discord_backup_create for the server I name, and report the backup ID and coverage.

Then change things only through the guarded path: create a backup, review the target objects, apply one small change, and confirm the result. Every mutation needs an audit reason:

{

"guildId": "123456789012345678", "confirm": true, "reason": "Create the approved community announcements channel" }

High-impact operations also require a guild-matched backupId unless the operator explicitly accepts allowWithoutBackup: true. The tool catalog lists the exact policy for every mutating tool.

Why this one

Many Discord MCP servers stop at read-only inspection or previewing a change, and some route the bot token through a hosted service. Discord Management MCP executes changes locally, but only through a guard and recovery path:

CapabilityTypical preview-only serverDiscord Management MCP
Read-only inspectionYesYes, 23 read-only tools
Execute changesNoYes, 31 mutating and moderation tools
Local backup before risky changesRarelyJSON schema v2 snapshots with channel coverage
RestoreNoPlan with plan hash, apply with pre-restore backup
Rollback guaranteeNot offeredBest effort, reported honestly with NOT_RESTORED warnings
Data pathOften hostedLocal stdio only

What that means in practice:

  • Local by design. The bot token, snapshots, restore plans, and stdio transport stay on the operator's machine. There is no hosted relay and no public HTTP listener.
  • Preview, then apply. Backups can be diffed and turned into a restore plan before anything changes, and plans carry a hash that apply can verify.
  • Backup to restore promise. A risky change can point at a same-guild snapshot; restore apply writes a fresh pre-restore backup before its first Discord mutation.
  • An explicit safety matrix. Every Discord mutation needs confirm: true and a reason. The listed high-impact tools need a same-guild backup. Emergency incident actions stay available without one.
  • Truthful recovery. Restore reports skipped, lossy, applied, and failed operations instead of promising an impossible full rollback.

Backup to restore

The recovery path has three steps:

  1. discord_backup_create writes a JSON snapshot to BACKUP_DIR atomically, strips invite codes, webhook tokens, and other secrets, and records channel coverage in coverage.channels.
  2. discord_backup_diff and discord_backup_restore_plan show what would change. A plan includes a planHash and NOT_RESTORED warnings for captured sections that Discord cannot recreate.
  3. discord_backup_restore_apply can verify an expectedPlanHash, creates a pre-restore backup, then applies supported role and channel fields conservatively. Deletes remain opt-in.

Discord cannot restore original IDs after delete and recreate, message or audit-log history, exact invite codes, webhook tokens, or every community and discovery setting. The server reports those limits instead of hiding them. See safety and backups for the full model.

Tool coverage

The server registers 54 tools. See the tool catalog for every name and the guard matrix for the backup policy.

DomainTools
Guild, member, and audit inventory17
Backups and restore6
Channels6
Roles7
Moderation and AutoMod13
Server configuration5
Total54

Read-only tools are annotated as read-only and never require confirmation. Mutating Discord tools require confirm: true plus a non-empty audit reason, and mutations run through a shared queue so they cannot interleave. discord_backup_create only writes a local snapshot and does not require confirmation.

Safety model

  • Every Discord mutation requires confirm: true and a non-empty reason; the reason is passed to Discord where audit-log reasons are supported.
  • High-impact tools require a backup from the same guild, or an explicit allowWithoutBackup: true acknowledgement.
  • discord_set_incident_actions is intentionally exempt: it is used during raids, and its changes are reversible.
  • Restore apply creates its own pre-restore backup and retains its ID on every error path.
  • Backup writes are atomic, and backup paths are confined to the project directory with symlink and junction rejection.
  • Read-only tools are implemented and annotated as read-only.

See safety and backups for the guard matrix, channel coverage, and restore behavior, and design and trust boundaries for the runtime model. Report vulnerabilities privately through SECURITY.md.

Requirements

  • Node.js 24 or newer.
  • A Discord application with a bot token.
  • The bot invited to the target guild with only the permissions required for the intended tools.

ENABLE_MESSAGE_CONTENT and ENABLE_GUILD_MEMBERS are opt-in and require the matching privileged intents in the Discord Developer Portal. Since 2026-06-10, Discord reviews privileged intent usage at 10,000 users rather than 100 servers, and approved apps must reapply annually. See configuration for details.

Configuration

Configuration is read from the process environment first, then from .env.local in the working directory. Boolean values accept true/false, yes/no, on/off, or 1/0.

VariablePurposeDefault
DISCORD_TOKENDiscord bot token from Developer Portal > Bot > TokenRequired
BACKUP_DIRRelative directory for local JSON backups; it must stay inside the project directorybackups
LOG_LEVELStderr log level: error, warn, info, or debug; logs are JSON linesinfo
ENABLE_MESSAGE_CONTENTEnables message-content tools and requires the Discord Message Content intentfalse
ENABLE_GUILD_MEMBERSEnables the Guild Members gateway intent for workflows that require itfalse

See the configuration reference for token rules, logging behavior, and privileged-intent setup.

Privacy and security

Everything runs locally over stdio: the bot token, backup files, restore plans, and the server process itself never leave the operator's machine. Mutations are guarded by explicit confirmation and by backups that are validated for size, depth, structure, symlinks, and guild identity before planning or restore. A restore creates a pre-restore backup before its first Discord mutation and stops truthfully on operation failure. See design and trust boundaries and safety and backups for the full model, and SECURITY.md for private vulnerability reporting.

Troubleshooting

The server exits because DISCORD_TOKEN is missing or invalid

Set the Bot Token in the process environment or in .env.local in the working directory. A value that looks like a Discord Application Public Key is rejected with an explicit message: use the Bot Token, not the Application ID, Public Key, or OAuth2 client secret.

Message content comes back empty

Message-content tools need both ENABLE_MESSAGE_CONTENT=true and the Message Content Intent enabled in the Discord Developer Portal. Without both, Discord can return empty content, embeds, and attachments fields. Restart the server after changing either side. If the app is approaching the review threshold, remember that privileged intent access is reviewed at 10,000 users and must be renewed annually.

A mutation is rejected before it reaches Discord

Mutating tools require confirm: true and a non-empty reason. Hig

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx