# Discord MCP (MCP server)

> Discord MCP is an MCP server that adds messaging tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Caller-owned Discord operations for AI agents with 221 typed tools and verifiable guild builds. It has 121 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @discord-mcp/cli.

Caller-owned Discord operations for AI agents with 221 typed tools and verifiable guild builds. Open-source Discord MCP server for Claude, Codex, Cursor and other AI clients: 209 typed tools, caller-owned bots, safety controls and verifiable guild builds.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/cappyeo/discord-mcp |
| GitHub stars | 121 |
| License | Apache-2.0 |
| Language | TypeScript |
| Transport | stdio |
| Packages | npm: @discord-mcp/cli |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Communication |
| Latest release | v0.31.1 (Oct 2, 2026) |
| Last commit | Oct 2, 2026 |
| MCP registry name | io.github.cappyeo/discord-mcp |

## Install

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "discord-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@discord-mcp/cli"
      ],
      "env": {
        "DISCORD_TOKEN": "your-value"
      }
    }
  }
}
```

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

### Claude Code

```sh
claude mcp add --env DISCORD_TOKEN=your-value --transport stdio discord-mcp -- npx -y @discord-mcp/cli
```

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

```json
{
  "mcpServers": {
    "discord-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@discord-mcp/cli"
      ],
      "env": {
        "DISCORD_TOKEN": "your-value"
      }
    }
  }
}
```

Project file; use ~/.cursor/mcp.json to enable it in every project.

### VS Code (.vscode/mcp.json)

```json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "discord_token",
      "description": "DISCORD_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "discord-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@discord-mcp/cli"
      ],
      "env": {
        "DISCORD_TOKEN": "${input:discord_token}"
      }
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Environment variables

- `DISCORD_TOKEN` (secret) (required): Discord bot token. The optional Bot prefix is accepted.
- `DISCORD_EXPECTED_BOT_ID`: Expected Discord bot ID. Startup fails if the token belongs to another bot.
- `ALLOWED_GUILDS`: Comma-separated Discord guild IDs this deployment may operate against.

## Similar MCP servers

- [Strata](https://appsgit.com/mcp-servers/strata): MCP server for progressive tool usage at any scale (see https://klavis.ai). (5,807 stars, Apache-2.0, official)
- [Vexa](https://appsgit.com/mcp-servers/vexa): Meeting bot and transcripts for Google Meet, Teams and Zoom. (2,856 stars, Apache-2.0, official, needs API key)
- [MCP Server for WinDbg Crash Analysis](https://appsgit.com/mcp-servers/mcp-server-for-windbg-crash-analysis): A Model Context Protocol server for Windows crash dump analysis using WinDbg/CDB. (1,607 stars, MIT)
- [Rocketmq Rust](https://appsgit.com/mcp-servers/rocketmq-rust): 🚀 Apache RocketMQ built in Rust 🦀 — faster, safer, and more memory-efficient. (1,524 stars, Apache-2.0)
- [Wassette](https://appsgit.com/mcp-servers/wassette): Wassette: A security-oriented runtime that runs WebAssembly Components via MCP. (957 stars, MIT, official)
- [Line Bot MCP Server](https://appsgit.com/mcp-servers/line-bot-mcp-server): MCP server that integrates the LINE Messaging API to connect an AI Agent to the LINE Official Account. (783 stars, Apache-2.0, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/discord-mcp
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
