Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Discord Node MCP

by Oratorianversion 1.1.4i★ 0iRuns on your computer
Registry nameio.github.Oratorian/discord-node-mcp

How to install

What it does

MCP server for controlling Discord servers via bot token

  • Connects Runs on your computer
  • Account or key Needs DISCORD_BOT_TOKEN
  • Category Chat & email

Install

Pick the AI app you use, then copy the settings.

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Discord Node MCP for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "discord-node": { "command": "npx", "args": [ "-y", "@mahesvara/discord-mcpserver" ], "env": { "DISCORD_BOT_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For DISCORD_BOT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Discord Node MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Discord Node MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

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

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Discord Node MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Discord Node MCP or shows a Discord Node MCP tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TRANSPORT Transport type: stdio or http · default stdio
  • PORT Port for HTTP transport · default 3000
  • HOST Host for HTTP transport · default localhost

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Discord Node MCP yet

Discord Node MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Discord Node MCP

  • You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Chat & email that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Discord Node MCP for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user discord-node --env DISCORD_BOT_TOKEN=your-value -- npx -y @mahesvara/discord-mcpserver 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For DISCORD_BOT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Discord Node MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Discord Node MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user discord-node --env DISCORD_BOT_TOKEN=your-value -- npx -y @mahesvara/discord-mcpserver

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Discord Node MCP listed as connected

  6. Try it

    Use Discord Node MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Discord Node MCP or shows a Discord Node MCP tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TRANSPORT Transport type: stdio or http · default stdio
  • PORT Port for HTTP transport · default 3000
  • HOST Host for HTTP transport · default localhost

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Discord Node MCP for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "discord-node": { "command": "npx", "args": [ "-y", "@mahesvara/discord-mcpserver" ], "env": { "DISCORD_BOT_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For DISCORD_BOT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Discord Node MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Discord Node MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Discord Node MCP settings, DISCORD_BOT_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Discord Node MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Discord Node MCP or shows a Discord Node MCP tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TRANSPORT Transport type: stdio or http · default stdio
  • PORT Port for HTTP transport · default 3000
  • HOST Host for HTTP transport · default localhost

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Discord Node MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Discord Node MCP for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "discord-node": { "type": "stdio", "command": "npx", "args": [ "-y", "@mahesvara/discord-mcpserver" ], "env": { "DISCORD_BOT_TOKEN": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For DISCORD_BOT_TOKEN, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Discord Node MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Sign up and create a Discord Node MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    How to get a key is in the maker’s README below

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Discord Node MCP settings, DISCORD_BOT_TOKEN is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Discord Node MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Discord Node MCP or shows a Discord Node MCP tool in the answer, you are connected

3 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • TRANSPORT Transport type: stdio or http · default stdio
  • PORT Port for HTTP transport · default 3000
  • HOST Host for HTTP transport · default localhost

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Discord Node MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user discord-node --env DISCORD_BOT_TOKEN=your-value -- npx -y @mahesvara/discord-mcpserver

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

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

Values you fill in

  • DISCORD_BOT_TOKEN secret required env
    Your Discord bot token
  • TRANSPORT env
    Transport type: stdio or http
  • PORT env
    Port for HTTP transport
  • HOST env
    Host for HTTP transport

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
74/wk
Connection
Runs on your computer
Latest versioni
1.1.4
Published to registryi
Jan 30, 2026
Code last changedi
Jan 31, 2026
Maker
Oratorian
Packages
npm: @mahesvara/discord-mcpserver
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 15, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Oratorian, which owns the repo

  • ! Caution

    Still maintained

    Code last changed 10 months ago, more than 6 months ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Chat & emaili

  • More stars than 0% of the other 2049 servers in this category
  • Published to the registry more recently than 1% of the other 2049 servers in this category
  • Basic checks equal to or better than 51% of the other 2049 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Discord Node MCP safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: DISCORD_BOT_TOKEN

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 10 months ago, and the latest version (1.1.4) reached the registry 10 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: draw.io, Vexa, emailmd, Kite Discord Bot Builder, e2a — email for AI agents

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

draw.io

Create draw.io diagrams in chat from Mermaid or XML, shown live and interactive. 10,000+ shapes.

by jgraphWidely used★ 5.8KUpdated 5 days ago

Runs in the cloud✓ service owner · draw.io

Vexa

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

by Vexa-aiWidely used★ 3KUpdated 2 months ago

Runs in the cloud✓ service owner · vexa.ai

emailmd

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

by anypostWidely used↓ 5.4K/wk★ 1.4KUpdated yesterday

Computer or cloud✓ service owner · emailmd.dev

Kite Discord Bot Builder

Build and fix Discord bots from a chat. Kite hosts them 24/7, with no code to deploy.

by merlinfuchsGrowing★ 334 Stars for the whole repoUpdated 18 days ago

Runs in the cloud✓ service owner · kite.onl

e2a — email for AI agents

Authenticated email gateway for AI agents — per-agent inboxes, HITL approval, SPF/DKIM verified.

by tokencanopyGrowing★ 199 Stars for the whole repoUpdated 4 months ago

Runs in the cloud✓ service owner · e2a.dev
  • draw.io — Runs in the cloud, nothing to install · No key needed
  • Vexa — Runs in the cloud, nothing to install · Needs a key
  • emailmd — Cloud or install on your computer · No key needed
  • Kite Discord Bot Builder — Runs in the cloud, nothing to install · No key needed
  • e2a — email for AI agents — Runs in the cloud, nothing to install · No key needed

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

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

Only the beginning is shown; read the rest in the repo