discord-mcp

by @SaseQ

Discord MCP Server

Automate Discord guild messaging, channels, thread moderation, webhooks, roles, forums, and scheduled events from Claude, Cursor, Codex CLI, OpenClaw, or n8n. Built in Java on JDA (`SaseQ/discord-mcp`) and packaged for Docker, it runs as a shared Streamable HTTP endpoint (`:8085/mcp`) or legacy `stdio`.

Communication630javaMIT

Server facts

discord-mcp

GitHub stars

630

Last commit

Oct 23, 2026

Runtime

java

License

MIT

Project

Author
SaseQ
License
MIT

Tech

Runtime
java
Transports
streamable-httpstdio
Remote access
No
Authentication
Discord Bot Token (DISCORD_TOKEN)

Activity

GitHub stars
630
Last commit
Data as of

Tags

  • Claude
  • ai
  • discord
  • discord bot
  • java
  • mcp
  • mcp server

Overview

Community managers and bot developers searching for a full-featured `discord mcp` server can bridge Discord guilds to AI assistants with `SaseQ/discord-mcp`, an MIT-licensed Java server built on the Java Discord API (JDA). Rather than launching a separate bot instance per chat session, the recommended Docker setup runs a persistent singleton container (`saseq/discord-mcp:latest`) with `SPRING_PROFILES_ACTIVE=http`, exposing a Streamable HTTP endpoint at `http://localhost:8085/mcp` and an Actuator health probe at `/actuator/health`. Legacy per-session `stdio` Docker mode and manual Maven JAR builds (`mvn clean package`) are also supported. Authentication requires a Discord bot token (`DISCORD_TOKEN`), plus an optional `DISCORD_GUILD_ID` so tools can omit `guildId`.

Documentation covers client integration for Claude Code (`claude mcp add discord-mcp --transport http`), Cursor (`~/.cursor/mcp.json`), Codex CLI, OpenClaw, n8n MCP Client nodes, and Claude Desktop (via local `stdio` or a public HTTPS tunnel in Connectors). Beyond basic message sending, its JDA tool surface covers cursor-paginated channel and DM history (up to 100 messages per fetch and text search across up to 1000 recent messages), reactions, text/voice/stage/forum channels, categories, webhooks, roles, moderation actions (kick, ban, timeout, nickname), permission overwrites, invites, active/archived threads, scheduled events, and custom emojis up to 256KB.

Install & configure

Requirements

  • Discord Bot account and Bot Token (`DISCORD_TOKEN`) with matching server permissions
  • Docker (recommended `saseq/discord-mcp:latest`) or Java + Maven (`mvn clean package`) for manual JAR builds
  • Optional `DISCORD_GUILD_ID` environment variable to set a default server across all tools
Documented launch / install command
claude mcp add discord-mcp --transport http http://localhost:8085/mcp

Start a shared Streamable HTTP container with `SPRING_PROFILES_ACTIVE=http`, `DISCORD_TOKEN`, and port `8085:8085` exposing `http://localhost:8085/mcp` (health check at `http://localhost:8085/actuator/health`), or launch per-session `stdio` containers from Claude Desktop.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

A supported configuration example is not available for this client and transport. Check the client documentation for its connection flow; do not substitute an undocumented JSON format.

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "discord-mcp": {
      "url": "http://localhost:8085/mcp"
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "discord-mcp": {
      "type": "http",
      "url": "http://localhost:8085/mcp"
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "discord-mcp": {
      "serverUrl": "http://localhost:8085/mcp"
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "discord-mcp": {
      "type": "http",
      "url": "http://localhost:8085/mcp"
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
get_server_infoRetrieve detailed metadata about a Discord guild.
search_membersSearch guild members by ID, username, global name, nickname, or effective name.
send_private_messageSend a direct message to a specified Discord user.
send_messagePost a message to a specific Discord channel.
read_messagesRead channel message history with author IDs, reply markers, attachment metadata, and cursor pagination (1-100).
search_messagesRun a case-insensitive text scan across up to 1000 recent messages in a channel or thread.
add_reactionAdd an emoji reaction to a target Discord message.
list_channelsList all channels in the target Discord server.
create_text_channelCreate a new text channel inside a Discord server.
edit_text_channelUpdate text channel properties including name, topic, NSFW flag, slowmode, category, and position.
create_categoryCreate a new channel category in a Discord guild.
create_webhookCreate a webhook attached to a specific Discord channel.
list_rolesList all guild roles along with their configuration details.
assign_roleAssign an existing guild role to a Discord member.
timeout_memberTemporarily mute a Discord member's communication for a set duration.
ban_memberBan a user from the target Discord guild.
create_voice_channelCreate a voice channel in the guild.
create_guild_scheduled_eventCreate a scheduled voice, stage, or external event on the server.
list_threadsList active and recent archived public threads for a channel so message tools can target their thread IDs.
create_forum_postPublish a new forum post thread with an initial message in a forum channel.

Use cases

  • Summarize recent community discussions by reading paginated channel and forum thread histories via Claude Code or Cursor.
  • Automate server onboarding and reorganization by creating categories, text/voice/forum channels, roles, and channel permission overwrites.
  • Build n8n agent workflows that post formatted webhook announcements, manage scheduled events, or triage moderation queues.
  • Audit member rosters, invite statistics, and ban lists across a Discord server using a single persistent HTTP container.

Strengths

  • Singleton Streamable HTTP Docker mode (`:8085/mcp`) lets Claude Code, Cursor, Codex, OpenClaw, and n8n share a persistent JDA bot connection.
  • Deep Discord API coverage spanning messages, DMs, threads, forums, roles, permission overwrites, moderation, voice/stage channels, scheduled events, webhooks, invites, and custom emojis.
  • Setting `DISCORD_GUILD_ID` makes `guildId` optional across every tool, reducing prompt friction.
  • Includes Spring Actuator health checks (`/actuator/health`) and both Docker Compose and manual Maven build instructions.

Limitations

  • Community-built JDA integration rather than an official Discord Inc. server; requires manually creating and configuring a Discord bot token.
  • Claude Desktop Remote MCP Connectors cannot reach `http://localhost:8085/mcp` directly without exposing the endpoint over public HTTPS via a tunnel or reverse proxy.
  • Message search scans up to 1000 recent messages in a channel or thread rather than querying Discord's full historical archive.

discord-mcp setup notes

  • discord-mcp's example uses http, while its catalog transports are streamable-http / stdio; use the example's connection type.

Frequently asked questions

Start the Docker container `saseq/discord-mcp:latest` with `SPRING_PROFILES_ACTIVE=http` and your `DISCORD_TOKEN` exposed on port 8085, then point clients to `http://localhost:8085/mcp`. In Claude Code, run `claude mcp add discord-mcp --transport http http://localhost:8085/mcp`; in Cursor, add that URL inside `~/.cursor/mcp.json`.

Related MCP servers