# Discord Server MCP

> Discord Server MCP is a free MCP server for communication. Build, moderate and automate a Discord server through your own bot, with previews. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Self-hosted, Discord, CLI
- **Repository:** https://github.com/pr5ias/discord-server-mcp
- **MCP Registry name:** io.github.pr5ias/discord-server-mcp
- **Categories:** [communication](https://ai-powered.com/categories/communication)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (~/.copilot/mcp-config.json)

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

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

### Devin Desktop (~/.config/devin/mcp_config.json)

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

### Cline (cline_mcp_settings.json)

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

### Zed (Zed settings.json)

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

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

### Kiro (~/.kiro/settings/mcp.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_log` (name suggests: reads): Search the stored moderation log

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

## Alternatives

- [TrendRadar](https://ai-powered.com/mcp/trendradar): TrendRadar is an open-source MCP server for communication.
- [TryPost](https://ai-powered.com/mcp/trypost): TryPost is a paid MCP server for marketing and seo.
- [Gmail MCP](https://ai-powered.com/mcp/gmail-mcp-3): Gmail MCP is an open-source MCP server for communication.
- [Discord MCP](https://ai-powered.com/mcp/discord-mcp): Discord MCP is an open-source MCP server for communication.
- [Getmitra](https://ai-powered.com/mcp/getmitra): Getmitra is an MCP server for communication.
- [Day3 Email](https://ai-powered.com/mcp/day3-email): Day3 Email is a freemium MCP server for communication.
- [Bundle](https://ai-powered.com/mcp/bundle): Bundle is an MCP server for communication.
- [Domain Tech-Stack, DNS SaaS & Email Security OSINT MCP](https://ai-powered.com/mcp/domain-tech-stack-dns-saas-and-email-security-osint-mcp): Domain Tech-Stack, DNS SaaS & Email Security OSINT MCP is a paid MCP server for communication.

---
Source: https://ai-powered.com/mcp/discord-server-mcp
