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

Discord Node MCP

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

安装

概览

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

MCP server for controlling Discord servers via bot token

PopNx MCP 的三大支柱

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

它能帮你做什么

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

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

安装

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

安装之前

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

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

你需要

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

你用的是哪个应用?

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

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

{
  "mcpServers": {
    "discord-node": {
      "command": "npx",
      "args": [
        "-y",
        "@mahesvara/discord-mcpserver"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "your-value",
        "TRANSPORT": "your-value",
        "PORT": "your-value",
        "HOST": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add discord-node --env DISCORD_BOT_TOKEN=your-value --env TRANSPORT=your-value --env PORT=your-value --env HOST=your-value -- npx -y @mahesvara/discord-mcpserver

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

在 Cursor 中打开

或者自己复制设置

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

{
  "mcpServers": {
    "discord-node": {
      "command": "npx",
      "args": [
        "-y",
        "@mahesvara/discord-mcpserver"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "your-value",
        "TRANSPORT": "your-value",
        "PORT": "your-value",
        "HOST": "your-value"
      }
    }
  }
}

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

在 VS Code 中打开

或者自己复制设置

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

{
  "servers": {
    "discord-node": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mahesvara/discord-mcpserver"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "your-value",
        "TRANSPORT": "your-value",
        "PORT": "your-value",
        "HOST": "your-value"
      }
    }
  }
}

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

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

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

需要你填写的值

  • DISCORD_BOT_TOKEN 机密 必填 env
    Your Discord bot token
  • TRANSPORT env
    Transport type: stdio or http
  • PORT env
    Port for HTTP transport
  • HOST env
    Host for HTTP transport

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

它能做什么

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

基础检查i

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

  • ✓ 通过

    作者与仓库一致

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

  • … 尚未检查

    仍在维护

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

  • … 尚未检查

    有许可证

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

  • – 不适用

    端点有响应

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

  • – 不适用

    使用 OAuth 登录

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

  • … 尚未检查

    工具描述中没有隐藏指令

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

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

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

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

常见问题

Discord Node MCP 安全吗?

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

它需要哪些密钥或代码?

你需要填写:DISCORD_BOT_TOKEN

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

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

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.1.4)于9个月前进入注册中心。

哪些应用可以使用它?

支持 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 MCP Server

An MCP (Model Context Protocol) server that enables LLMs to control Discord servers via a bot token. This server provides comprehensive Discord management tools including sending messages, managing members, roles, channels, permissions, and more.

Features

Guild/Server Management
  • discord_list_guilds - List all servers the bot has access to
  • discord_get_guild - Get detailed info about a specific server
  • discord_edit_guild - Edit server settings (name, verification level, system channels, etc.)
  • discord_leave_guild - Leave a server
Channel Management
  • discord_list_channels - List channels in a server (filter by type)
  • discord_get_channel - Get channel details (includes forum tags for forum channels)
  • discord_create_channel - Create text/voice/forum channels and categories
  • discord_edit_channel - Edit channel name, topic, position, category, forum tags, and more
  • discord_delete_channel - Delete a channel or category
Forum Channel Features
  • Create forum channels with type: "forum"
  • Set default reaction emoji, sort order, and layout
  • Manage forum tags (create, edit, delete)
  • Tags support custom emojis and moderation settings
Permission Management
  • discord_set_channel_permissions - Set permission overrides for roles/members on channels
  • discord_remove_channel_permissions - Remove permission overrides
  • discord_get_channel_permissions - View all permission overrides on a channel
  • discord_sync_channel_permissions - Sync channel permissions with parent category
Message Operations
  • discord_send_message - Send messages (with optional reply)
  • discord_get_messages - Retrieve channel messages (with pagination)
  • discord_edit_message - Edit bot's messages
  • discord_delete_message - Delete messages
  • discord_add_reaction - Add emoji reactions
  • discord_remove_reaction - Remove bot's reactions
  • discord_pin_message - Pin a message
  • discord_unpin_message - Unpin a message
  • discord_get_pinned_messages - Get all pinned messages
Member Management
  • discord_list_members - List server members (with pagination)
  • discord_get_member - Get member details
  • discord_kick_member - Kick a member
  • discord_ban_member - Ban a member (with message deletion option)
  • discord_unban_member - Unban a user
  • discord_set_nickname - Set/clear member nickname
  • discord_move_member - Move member to a different voice channel
  • discord_timeout_member - Timeout/mute a member (up to 28 days)
Role Management
  • discord_list_roles - List all server roles
  • discord_create_role - Create a new role
  • discord_edit_role - Edit role name, color, permissions, and settings
  • discord_delete_role - Delete a role
  • discord_add_role - Assign role to member
  • discord_remove_role - Remove role from member
  • discord_set_role_positions - Reorder role hierarchy
Server Administration
  • discord_list_bans - List all banned users
  • discord_prune_members - Remove inactive members (with dry-run option)
  • discord_get_audit_log - View audit log entries
Community Features
  • discord_get_community_settings - View community settings (rules channel, features, etc.)
  • discord_setup_community - Configure community channels (rules, updates, safety alerts)
Welcome Screen
  • discord_get_welcome_screen - Get welcome screen configuration
  • discord_edit_welcome_screen - Edit welcome screen (description, channels, emojis)
Onboarding
  • discord_get_onboarding - Get onboarding configuration
  • discord_edit_onboarding - Edit existing onboarding settings
  • discord_setup_onboarding - Setup onboarding from scratch (prompts, default channels, roles)
Auto Moderation
  • discord_list_automod_rules - List auto moderation rules
  • discord_get_automod_rule - Get details of an auto mod rule
  • discord_create_automod_rule - Create auto moderation rule
  • discord_edit_automod_rule - Edit auto moderation rule
  • discord_delete_automod_rule - Delete auto moderation rule
Emoji Management
  • discord_list_emojis - List custom emojis
  • discord_create_emoji - Create emoji from image URL
  • discord_delete_emoji - Delete a custom emoji
Sticker Management
  • discord_list_stickers - List custom stickers
  • discord_delete_sticker - Delete a custom sticker
Invite Management
  • discord_list_invites - List active invites
  • discord_create_invite - Create channel invite
  • discord_delete_invite - Delete an invite
Webhook Management
  • discord_list_webhooks - List webhooks (guild or channel)
  • discord_create_webhook - Create a webhook
  • discord_edit_webhook - Edit webhook name or channel
  • discord_delete_webhook - Delete a webhook
Scheduled Events
  • discord_list_events - List scheduled events
  • discord_create_event - Create a scheduled event (stage, voice, or external)
  • discord_delete_event - Delete a scheduled event

Setup

1. Create a Discord Bot
  1. Go to the Discord Developer Portal
  2. Click "New Application" and give it a name
  3. Go to the "Bot" section and click "Add Bot"
  4. Copy the bot token (keep this secret!)
  5. Enable these Privileged Gateway Intents:
  • Server Members Intent
  • Message Content Intent
2. Invite the Bot to Your Server
  1. Go to OAuth2 -> URL Generator
  2. Select scopes: bot, applications.commands
  3. Select bot permissions (choose based on features you need):

Core Permissions:

  • Manage Channels
  • Manage Roles
  • Manage Messages
  • Read Message History
  • Send Messages
  • Add Reactions

Member Management:

  • Kick Members
  • Ban Members
  • Manage Nicknames
  • Moderate Members (for timeouts)

Server Administration:

  • Manage Guild (for server settings)
  • View Audit Log
  • Manage Emojis and Stickers
  • Manage Webhooks
  • Manage Events
  • Create Instant Invite
  1. Copy the generated URL and open it to invite the bot
3. Install the MCP Server

Option A: Install globally from npm

npm install -g @mahesvara/discord-mcpserver

Option B: Run directly with npx (no install required)

npx @mahesvara/discord-mcpserver

Usage

MCP Client Configuration

Add to your MCP client configuration (e.g., Claude Desktop or Claude Code):

Using globally installed package:

{

"mcpServers": { "discord": { "command": "discord-mcpserver", "env": { "DISCORD_BOT_TOKEN": "your_bot_token_here" } } } }

Using npx (no install required):

{

"mcpServers": { "discord": { "command": "npx", "args": ["-y", "@mahesvara/discord-mcpserver"], "env": { "DISCORD_BOT_TOKEN": "your_bot_token_here" } } } }

Environment Variables

The server supports loading environment variables from a .env file in the current directory:

DISCORD_BOT_TOKEN=your_bot_token_here

TRANSPORT=http PORT=3000 HOST=localhost

VariableDescriptionDefault
DISCORD_BOT_TOKENYour Discord bot token (required)-
TRANSPORTTransport mode: stdio or httpstdio
PORTHTTP server port (when using http transport)3000
HOSTHTTP server host (use 0.0.0.0 for remote access)localhost
HTTP Transport

For remote access, run the server with HTTP transport enabled:

Linux/macOS:

DISCORD_BOT_TOKEN=your_token TRANSPORT=http PORT=3000 HOST=0.0.0.0 discord-mcpserver

Windows (Command Prompt):

set DISCORD_BOT_TOKEN=your_token && set TRANSPORT=http && set PORT=3000 && set HOST=0.0.0.0 && discord-mcpserver

Windows (PowerShell):

$env:DISCORD_BOT_TOKEN="your_token"; $env:TRANSPORT="http"; $env:PORT="3000"; $env:HOST="0.0.0.0"; discord-mcpserver

Or use a `.env` file (works on all platforms):

discord-mcpserver

Then configure your MCP client to connect via HTTP:

{

"mcpServers": { "discord": { "type": "http", "url": "http://your-server-ip:3000/mcp" } } }

Tool Examples

Create a Forum Channel with Tags
{

"tool": "discord_create_channel", "params": { "guild_id": "1234567890123456789", "name": "help-forum", "type": "forum", "topic": "Ask questions and get help", "default_reaction_emoji": "✅", "default_sort_order": "latest_activity", "default_forum_layout": "list_view", "available_tags": [ { "name": "Solved", "emoji_name": "✅", "moderated": false }, { "name": "Bug", "emoji_name": "🐛", "moderated": false }, { "name": "Question", "emoji_name": "❓", "moderated": false }, { "name": "Announcement", "emoji_name": "📢", "moderated": true } ] } }

Setup Server Onboarding
{

"tool": "discord_setup_onboarding", "params": { "guild_id": "1234567890123456789", "default_channel_ids": ["1111111111111111111"], "prompts": [ { "type": "multiple_choice", "title": "What are you interested in?", "single_select": false, "required": true, "options": [ { "title": "Gaming", "emoji_name": "🎮", "role_ids": ["2222222222222222222"] }, { "title": "Tech", "emoji_name": "💻", "role_ids": ["3333333333333333333"] } ] } ] } }

Configure Community Settings
{

"tool": "discord_setup_community", "params": { "guild_id": "1234567890123456789", "rules_channel_id": "1111111111111111111", "public_updates_channel_id": "2222222222222222222", "description": "A friendly gaming community", "preferred_locale": "en-US" } }

Edit Welcome Screen
{

"tool": "discord_edit_welcome_screen", "params": { "guild_id": "1234567890123456789", "enabled": true, "description": "Welcome to our server!", "welcome_channels": [ { "channel_id": "1111111111111111111", "description": "Read the rules", "emoji_name": "📜" }, { "channel_id": "2222222222222222222", "description": "Introduce yourself", "emoji_name": "👋" } ] } }

Create a Category
{

"tool": "discord_create_channel", "params": { "guild_id": "1234567890123456789", "name": "Bot Testing", "type": "category" } }

Create a Channel in a Category
{

"tool": "discord_create_channel", "params": { "guild_id": "1234567890123456789", "name": "bot-commands", "type": "text", "topic": "Channel for bot interactions", "parent_id": "CATEGORY_ID_HERE" } }

Set Channel Permissions
{

"tool": "discord_set_channel_permissions", "params": { "channel_id": "1234567890123456789", "target_id": "ROLE_ID_HERE", "target_type": "role", "allow": ["ViewChannel", "SendMessages", "ReadMessageHistory"], "deny": ["CreatePublicThreads"] } }

Common Permission Names

View & Access:

  • ViewChannel - See the channel

Messages:

  • SendMessages, ReadMessageHistory, ManageMessages
  • EmbedLinks, AttachFiles, AddReactions
  • UseExternalEmojis, UseExternalStickers
  • MentionEveryone

Threads:

  • CreatePublicThreads, CreatePrivateThreads
  • SendMessagesInThreads, ManageThreads

Voice:

  • Connect, Speak, Stream
  • MuteMembers, DeafenMembers, MoveMembers
  • UseVAD, PrioritySpeaker

Management:

  • ManageChannels, ManageRoles, ManageWebhooks
Send a Message
{

"tool": "discord_send_message", "params": { "channel_id": "12345678901234567

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

问 PopNx