Discord MCP server

Messaging and email

A MCP server for the Discord integration. Enable your AI assistants to seamlessly interact with Discord. Enhance your Discord experience with powerful automation capabilities.

Your AI app calls the Discord MCP server, which does the messaging and email work and sends the result back to the chat.

About Discord

Discord is a community MCP server from SaseQ, filed in our directory under messaging and email. A MCP server for the Discord integration. Enable your AI assistants to seamlessly interact with Discord. Enhance your Discord experience with powerful automation capabilities.

At a glance

Publisher
SaseQ (community)
Runs
See the README for setup
Written in
Java
License
MIT
GitHub stars
632

How to set up Discord

  1. Follow the install steps in the Discord README; it is written in Java, so have that toolchain ready.
  2. Check the Discord README for keys or settings; the registry lists none that Discord requires.
  3. Add Discord to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Discord tools to confirm the connection.
  5. Run one read-only task with Discord first, and keep your app asking before each tool call until the results look right.

Discord compared with similar servers

  • Link by automation-ai-labs has fewer GitHub stars than Discord (625 against 632); both are community servers, and both run locally.
  • Lemma Platform by lemma-work has more GitHub stars than Discord (664 against 632); both are community servers, and both run locally.
  • Resend by resend has fewer GitHub stars than Discord (588 against 632); Resend is official while Discord is a community server, and both run locally.

Before you connect Discord

  • Give Discord its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Discord tool call until you trust what it does with them.
  • Treat text that Discord fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Discord on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Discord

How marketing and sales teams put Discord to work, by company size. Pick the size closest to yours and start Discord on one use case.

Small business

  • A small team can have Discord summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with Discord and send them only after a read, keeping the personal tone customers expect.
  • Discord runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Discord to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect Discord so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start Discord on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can deploy Discord with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use Discord to find what employees ask most across channels and answer it once, in the right place.
  • Discord is a community server, so have security review the code and pin a version before Discord touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Discord README

From SaseQ/discord-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

📖 Description

A Model Context Protocol (MCP) server for the Discord API using (JDA), designed to integrate Discord bots with MCP-compatible applications such as Claude, ChatGPT etc. It allows AI assistants to interact with Discord by managing channels, sending messages, and retrieving server information. Ideal for building powerful Discord automation and AI-driven workflows.

🔬 Installation

► 🐳 Docker Installation (Recommended)

[!NOTE] Docker installation is required. Full instructions can be found on docker.com.

1) Set local env variables
export DISCORD_TOKEN="YOUR_DISCORD_BOT_TOKEN"
export DISCORD_GUILD_ID="OPTIONAL_DEFAULT_SERVER_ID"
export SPRING_PROFILES_ACTIVE=http

[!IMPORTANT] Instructions for creating a Discord bot and retrieving its token can be found discordjs.guide/legacy/preparations/app-setup.

[!TIP] The DISCORD_GUILD_ID env variable is optional.

When provided, it sets a default Discord server ID so any tool that accepts a guildId parameter can omit it.

2) Run the Docker container
docker run -d -i \
  --name discord-mcp \
  --restart unless-stopped \
  -p 8085:8085 \
  -e SPRING_PROFILES_ACTIVE \
  -e DISCORD_TOKEN \
  -e DISCORD_GUILD_ID \
  saseq/discord-mcp:latest

Default MCP endpoint URL (HTTP profile): http://localhost:8085/mcp

🐋 Docker Compose Installation
1) Clone the repository
git clone https://github.com/SaseQ/discord-mcp
2) Go to the project directory
cd discord-mcp
3) Create local runtime env
cat > .env <<EOF
SPRING_PROFILES_ACTIVE=http
DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>
DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>
EOF
4) Start one shared MCP server container
docker compose up -d --build
5) Verify
docker ps --filter name=discord-mcp
curl -fsS http://localhost:8085/actuator/health

[!TIP] You do not need to set LOGGING_PATTERN_CONSOLE manually. Logging is configured automatically for both http and legacy stdio modes.

Default MCP endpoint URL (HTTP profile): http://localhost:8085/mcp

Health endpoint (Actuator): http://localhost:8085/actuator/health

🔧 Manual Installation
1) Clone the repository
git clone https://github.com/SaseQ/discord-mcp
2) Build the project

NOTE: Maven installation is required to use the mvn command. Full instructions can be found baeldung.com/install-maven-on-windows-linux-mac.

cd discord-mcp
mvn clean package # The jar file will be available in the /target directory
3) Configure AI client

Run the JAR as a long-running server:

DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN> \
DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID> \
SPRING_PROFILES_ACTIVE=http \
java -jar /absolute/path/to/discord-mcp-1.0.0.jar

NOTE: The DISCORD_GUILD_ID environment variable is optional. When provided, it sets a default Discord server ID so any tool that accepts a guildId parameter can omit it.

Default MCP endpoint URL (HTTP profile): http://localhost:8085/mcp

🔗 Connections

► 🗞️ Default config.json Connection

Recommended (HTTP singleton mode):

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

Legacy mode (stdio, starts a new process/container per client session):

{
  "mcpServers": {
    "discord-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",
        "-e",
        "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",
        "saseq/discord-mcp:latest"
      ]
    }
  }
}
⌨️ Claude Code Connection

Recommended (HTTP singleton mode):

claude mcp add discord-mcp --transport http http://localhost:8085/mcp

Legacy mode (stdio, starts a new process/container per client session):

claude mcp add discord-mcp -- docker run --rm -i -e DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN> -e DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID> saseq/discord-mcp:latest
🤖 Codex CLI Connection
codex mcp add discord-mcp --url http://localhost:8085/mcp
codex mcp list
🦞 OpenClaw Connection

Run this command:

openclaw mcp set discord-mcp '{"url":"http://localhost:8085/mcp","transport":"streamable-http"}'
openclaw mcp list

OR

Pasting the following configuration into your OpenClaw ~/.openclaw/config.json file:

{
  "mcp": {
    "servers": {
      "discord-mcp": {
        "url": "http://localhost:8085/mcp",
        "transport": "streamable-http"
      }
    }
  }
}
🖲 Cursor Connection

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

Pasting the following configuration into your Cursor ~/.cursor/mcp.json file is the recommended approach. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.

{
  "mcpServers": {
    "discord-mcp": {
      "url": "http://localhost:8085/mcp"
    }
  }
}
🚀 n8n Connection
Connect in n8n
  1. Open n8n and add an MCP Client node.
  2. Choose HTTP or Streamable HTTP transport (depending on your n8n version/node options).
  3. Set the server URL to: http://localhost:8085/mcp
  4. Save the node and test the connection.
  5. After connecting, you can use the available Discord tools exposed by discord-mcp inside your workflow.
Notes
  • If n8n is running in Docker, localhost may point to the n8n container itself, not your host machine.
  • In that case, use the Docker service name or another reachable host, for example: http://discord-mcp:8085/mcp
🖥 Claude Desktop Connection

STDIO local config (Default, legacy):

Past the following configuration into your Claude Desktop claude_desktop_config.json file.

{
  "mcpServers": {
    "discord-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",
        "-e",
        "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",
        "saseq/discord-mcp:latest"
      ]
    }
  }
}

Remote MCP Connector:

  1. Open Claude Desktop and go to Settings -> Connectors.
  2. Add a custom connector and set MCP URL to your server endpoint (for example https://<PUBLIC_HOST>/mcp).
  3. Save and reconnect.

Claude Desktop remote connectors are managed via Connectors UI (not claude_desktop_config.json). http://localhost:8085/mcp is reachable only from your machine. For Claude Desktop remote connectors, expose the endpoint with public HTTPS (for example tunnel/reverse proxy).

🛠️ Available Tools

Server Information

  • get_server_info: Get detailed discord server information
User Management
  • get_user_id_by_name: Get a Discord user's ID by username in a guild for ping usage <@id>
  • get_member_by_id: Get a Discord guild member by stable user ID, including username, global name, nickname, effective name, bot flag, join time, and roles
  • search_members: Search Discord guild members by ID, username, global name, nickname, or effective name and return identity candidates with stable user IDs
  • send_private_message: Send a private message to a specific user
  • edit_private_message: Edit a private message from a specific user
  • delete_private_message: Delete a private message from a specific user
  • read_private_messages: Read private message history from a specific user (includes author IDs, reply markers, attachment metadata, supports count 1-100 and optional cursor: before or after or around)
Message Management
  • send_message: Send a message to a specific channel
  • edit_message: Edit a message from a specific channel
  • delete_message: Delete a message from a specific channel
  • read_messages: Read message history from a specific channel (includes author IDs, reply markers, attachment metadata, supports count 1-100 and optional cursor: before or after or around)
  • search_messages: Search the most recent messages of a channel or thread for text (case-insensitive scan of up to 1000 messages, newest first)
  • add_reaction: Add a reaction (emoji) to a specific message
  • remove_reaction: Remove a specified reaction (emoji) from a message
  • get_message: Get a single message by ID in the same format as read_messages; replies include the message they reply to
  • get_message_replies: Find replies to a message by scanning the messages posted after it (up to 1000)
Channel Management
  • create_text_channel: Create a new text channel
  • edit_text_channel: Edit settings of a text channel (name, topic, nsfw, slowmode, category, position)
  • delete_channel: Delete a channel
  • find_channel: Find a channel type and ID using name and server ID
  • list_channels: List of all channels
  • get_channel_info: Get detailed information about a channel
  • move_channel: Move a channel to another category and/or change its position
Category Management
  • create_category: Create a new category for channels
  • edit_category: Edit a category (rename or move position)
  • delete_category: Delete a category
  • find_category: Find a category ID using name and server ID
  • list_channels_in_category: List of channels in a specific category
Webhook Management
  • create_webhook: Create a new webhook on a specific channel
  • delete_webhook: Delete a webhook
  • list_webhooks: List of webhooks on a specific channel
  • send_webhook_message: Send a message via webhook
Role Management
  • list_roles: Get a list of all roles on the server with their details
  • create_role: Create a new role on the server
  • edit_role: Modify an existing role's settings
  • delete_role: Permanently delete a role from the server
  • assign_role: Assign a role to a user
  • remove_role: Remove a role from a user
Moderation and User Management
  • kick_member: Kicks a member from the server
  • ban_member: Bans a user from the server
  • unban_member: Removes a ban from a user
  • timeout_member: Disables communication for a member for a specified duration
  • remove_timeout: Removes a timeout (unmute) from a member before it expires
  • set_nickname: Changes a member's nickname on the server
  • get_bans: Returns a list of banned users on the server with ban reasons
Voice & Stage Channel Management
  • create_voice_channel: Create a new voice channel in a guild
  • create_stage_channel: Create a new stage channel for audio events
  • edit_voice_channel: Edit settings of a voice or stage channel (name, bitrate, user limit, region)
  • move_member: Move a member to another voice channel
  • disconnect_member: Disconnect a member from their current voice channel
  • modify_voice_state: Server mute or deafen a member in voice channels
Scheduled Events Management
  • create_guild_scheduled_event: Schedule a new event on the server (voice, stage, or external)
  • edit_guild_scheduled_event: Modify event details or change its status (start, complete, cancel)
  • delete_guild_scheduled_event: Permanently delete a scheduled event
  • list_guild_scheduled_events: List all active and scheduled events on the server
  • get_guild_scheduled_event_users: Get list of users interested in a scheduled event
Channel Permission Overwrites
  • list_channel_permission_overwrites: List all permission overwrites for a channel with role/member breakdown
  • upsert_role_channel_permissions: Create or update permission overwrite for a role on a channel
  • upsert_member_channel_permissions: Create or update permission overwrite for a member on a channel
  • delete_channel_permission_overwrite: Delete a permission overwrite for a role or member from a channel
Invite Management
  • create_invite: Create a new invite link for a specific channel
  • list_invites: List all active invites on the server with their statistics
  • delete_invite: Delete (revoke) an invite so the link stops working
  • get_invite_details: Get details about a specific invite (works for any public invite)
Thread Management
  • list_active_threads: List all active threads in the server
  • list_threads: List the threads of one channel (text, news, forum or media), including recent archived public threads; a returned thread ID works as channelId in the message tools (archived threads become usable there only after list_threads has been called on their parent channel)
  • get_thread_info: Get detailed information about a thread (parent channel, owner, archived/locked state, message and member counts; archived threads need list_threads on the parent channel first)
Forum Management
  • create_forum_channel: Create a new forum channel
  • edit_forum_channel: Edit settings of a forum channel (name, topic, nsfw, slowmode, category, position, default sort, default layout)
  • list_forum_channels: List all forum channels in the server
  • get_forum_channel_info: Get detailed information about a forum channel including tags and settings
  • list_forum_tags: List all available tags in a forum channel
  • create_forum_post: Create a new forum post (thread) with an initial message in a forum channel
  • list_forum_posts: List active posts (threads) in a forum channel
  • modify_forum_post: Modify a forum post: lock/unlock, archive/unarchive, pin/unpin, or change applied tags
Emoji Management
  • list_emojis: List all custom emojis on the server
  • get_emoji_details: Get detailed information about a specific custom emoji
  • create_emoji: Upload a new custom emoji to the server (base64 or image URL, max 256KB)
  • edit_emoji: Edit an existing emoji's name or role restrictions
  • delete_emoji: Permanently delete a custom emoji from the server

If DISCORD_GUILD_ID is set, the guildId parameter becomes optional for all tools above.

A more detailed examples can be found in the Wiki.

Questions about Discord

What is the Discord MCP server?

A MCP server for the Discord integration. Enable your AI assistants to seamlessly interact with Discord. Enhance your Discord experience with powerful automation capabilities. Discord is maintained by SaseQ on GitHub at SaseQ/discord-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Discord MCP server?

Discord doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (SaseQ/discord-mcp). Like most servers, Discord ends with a command or URL you paste into your AI app's MCP config.

Does Discord need an API key?

The registry lists no required keys for Discord. Check the Discord README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Discord an official MCP server?

No. Discord is a community server maintained by SaseQ. Community servers can be excellent; read the code and the open issues before you give Discord access to company data.

What license is Discord under?

Discord is released under the MIT license, according to its GitHub repository. The license covers the code of Discord; the service it connects to has its own terms.