Server facts
discord-mcp
GitHub stars
630
Last commit
Oct 23, 2026
Runtime
java
License
MIT
Project
- Author
- SaseQ
- Repository
- github.com/SaseQ/discord-mcp
- License
- MIT
- Category
- Communication
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
claude mcp add discord-mcp --transport http http://localhost:8085/mcpStart 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.
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.
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 guideConfig 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.
{
"mcpServers": {
"discord-mcp": {
"url": "http://localhost:8085/mcp"
}
}
}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.
{
"servers": {
"discord-mcp": {
"type": "http",
"url": "http://localhost:8085/mcp"
}
}
}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.
{
"mcpServers": {
"discord-mcp": {
"serverUrl": "http://localhost:8085/mcp"
}
}
}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.
{
"mcpServers": {
"discord-mcp": {
"type": "http",
"url": "http://localhost:8085/mcp"
}
}
}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.
| Tool | What it does |
|---|---|
| get_server_info | Retrieve detailed metadata about a Discord guild. |
| search_members | Search guild members by ID, username, global name, nickname, or effective name. |
| send_private_message | Send a direct message to a specified Discord user. |
| send_message | Post a message to a specific Discord channel. |
| read_messages | Read channel message history with author IDs, reply markers, attachment metadata, and cursor pagination (1-100). |
| search_messages | Run a case-insensitive text scan across up to 1000 recent messages in a channel or thread. |
| add_reaction | Add an emoji reaction to a target Discord message. |
| list_channels | List all channels in the target Discord server. |
| create_text_channel | Create a new text channel inside a Discord server. |
| edit_text_channel | Update text channel properties including name, topic, NSFW flag, slowmode, category, and position. |
| create_category | Create a new channel category in a Discord guild. |
| create_webhook | Create a webhook attached to a specific Discord channel. |
| list_roles | List all guild roles along with their configuration details. |
| assign_role | Assign an existing guild role to a Discord member. |
| timeout_member | Temporarily mute a Discord member's communication for a set duration. |
| ban_member | Ban a user from the target Discord guild. |
| create_voice_channel | Create a voice channel in the guild. |
| create_guild_scheduled_event | Create a scheduled voice, stage, or external event on the server. |
| list_threads | List active and recent archived public threads for a channel so message tools can target their thread IDs. |
| create_forum_post | Publish 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.