Skip to content
MCP server

Discord Server MCP

Build, moderate and automate a Discord server through your own bot, with previews

Runs locally

Discord Server MCP is a free MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Free
Platforms
Self-hosted, Discord, CLI
Runs
Locally
Version
1.1.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add discord-server-mcp --env DISCORD_BOT_TOKEN='<DISCORD_BOT_TOKEN>' -- npx -y discord-server-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "discord-server-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "discord-server-mcp"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "discord-server-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "discord-server-mcp"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "discord-server-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "discord-server-mcp"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "discord-server-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "discord-server-mcp"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add discord-server-mcp --env DISCORD_BOT_TOKEN='<DISCORD_BOT_TOKEN>' -- npx -y discord-server-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.discord-server-mcp]
command = "npx"
args = ["-y", "discord-server-mcp"]
env = { DISCORD_BOT_TOKEN = "<DISCORD_BOT_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "discord-server-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "discord-server-mcp"
      ],
      "env": {
        "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e DISCORD_BOT_TOKEN='<DISCORD_BOT_TOKEN>' discord-server-mcp npx -- -y discord-server-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "discord-server-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "discord-server-mcp"
          ],
          "env": {
            "DISCORD_BOT_TOKEN": "<DISCORD_BOT_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DISCORD_BOT_TOKENBot token from the Discord Developer Portal (or run `discord-server-mcp init` to save it locally)

About Discord Server MCP

Discord Server MCP works through a bot you create yourself and exposes 132 tools, of which a core of 48 is active at first; the rest switch on when a task needs them, and a discord_api tool covers any other endpoint. Ask for a server setup, a role menu or a moderation rule in plain words and the assistant shows a plan before changing anything.

Its automations go well beyond posting messages: numbered support tickets in private channels with claim buttons and ticket_history, support forums with Open and Solved tags, welcome messages with auto-roles, rule-based reactions, scheduled messages, moderation logs searchable through search_mod_log, and staff slash commands such as /lock, /purge and /timeout. Member-facing texts ship in twelve languages and can be edited.

Safeguards include dry runs for every change, a confirm: true flag on permanent actions, read-only and preview-only modes, a server allow-list and selectable tool packs. It runs over stdio or Streamable HTTP with a bearer token, and can stay online around the clock via discord-server-mcp run or Docker.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 3 tools reads data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

discord_api
Call any Discord endpoint not covered by the other tools
ticket_history
Find any past support ticket
search_mod_logName suggests: reads
Search the stored moderation log

What it does

132 tools, staged
Starts with 48 core tools and enables others when a task needs them.
Ticket and forum flows
Runs numbered tickets, claim buttons and solved-post handling.
Moderation logging
Logs deletes, edits, joins, bans and role changes with who did it.
Preview and confirm
Dry runs on changes and a confirm flag on permanent actions.
Backups and templates
Builds servers from templates or backups and resumes interrupted builds.
Multiple bots
Manages several bots and servers, reporting which bot acted.

Good for

  • Set up a new community server from a plain-language brief
  • Run a support ticket system with staff alerts
  • Back up and restore channels and messages
  • Schedule announcements in any time zone
  • Audit who can see a private channel

Pricing

Free

No price listed; you supply your own Discord bot

More servers for the same service

Discord Server MCP FAQ

What do I need first?

A bot token from the Discord Developer Portal; the bot needs a role high enough to manage what you ask it to change.

Can Discord Server MCP run unattended?

Yes, with `discord-server-mcp run` or Docker, and it also supports Streamable HTTP with a bearer token.

Is there a safe mode?

Yes. There are dry-run previews, read-only and preview-only modes, and a server allow-list.

How do I install Discord Server MCP?

Use the Claude Desktop extension, the Claude Code plugin, or `npx discord-server-mcp init` for other clients (Node.js 22+).

Is Discord Server MCP free?

Yes. Discord Server MCP is free to use.

How do I add Discord Server MCP to Claude Code?

Run this command in your terminal: claude mcp add discord-server-mcp --env DISCORD_BOT_TOKEN='<DISCORD_BOT_TOKEN>' -- npx -y discord-server-mcp

What are the best alternatives to Discord Server MCP?

The closest alternatives to Discord Server MCP are TrendRadar, TryPost, Gmail MCP, Discord MCP and Getmitra.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers