Discord MCP Server

Read messages, post to channels, and manage your Discord server from Claude Desktop

Community messaging community

The Discord MCP server exposes your Discord guild to Claude and other MCP-compatible AI agents. Claude can read channel history, post messages, list server members, and fetch channel information — making it possible to build Discord bots, summarise server activity, or moderate conversations with AI assistance.

Prerequisites

Installation & Configuration

Add this block to your claude_desktop_config.json:

{
  "mcpServers": {
    "discord": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-discord"],
      "env": {
        "DISCORD_TOKEN": "Bot YOUR_BOT_TOKEN_HERE"
      }
    }
  }
}

Config file location:

Available Tools (5)

Use Cases

Tips & Gotchas

Gotcha: The DISCORD_TOKEN env var must include the Bot prefix (with a space) — e.g. Bot MTkw.... Omitting it gives a 401 error.
Gotcha: Message Content Intent must be toggled on in the Discord Developer Portal under your app's Bot settings. Without it, read_messages returns empty content.
Tip: Create a dedicated bot account just for MCP so you can easily revoke access without affecting other bots in your server.

Source & Documentation

GitHub Repository: https://github.com/modelcontextprotocol/servers/tree/main/src/discord

Discord Developer Portal: discord.com/developers/applications

Protocol: Model Context Protocol (MCP) — modelcontextprotocol.io

MCP Setup Pack — $15
20 ready-to-paste server configs + installer + doctor script
Get the Pack →
← Back to MCP Server Directory