A Model Context Protocol (MCP) server for the Discord API (JDA), allowing seamless integration of Discord Bot with MCP-compatible applications like Claude Desktop. Enable your AI assistants to seamlessly interact with Discord. Manage channels, send messages, and retrieve server information effortlessly. Enhance your Discord experience with powerful automation capabilities. 🔧 Manual Installation M
Add this skill
npx mdskills install SaseQ/discord-mcp1<div align="center">2 <img src="assets/img/Discord_MCP_full_logo.svg" width="60%" alt="DeepSeek-V3" />3</div>4<hr>5<div align="center" style="line-height: 1;">6 <a href="https://github.com/modelcontextprotocol/servers" target="_blank" style="margin: 2px;">7 <img alt="MCP Server" src="https://badge.mcpx.dev?type=server" style="display: inline-block; vertical-align: middle;"/>8 </a>9 <a href="https://discord.gg/5Uvxe5jteM" target="_blank" style="margin: 2px;">10 <img alt="Discord" src="https://img.shields.io/discord/936242526120194108?color=7389D8&label&logo=discord&logoColor=ffffff" style="display: inline-block; vertical-align: middle;"/>11 </a>12 <a href="https://github.com/SaseQ/discord-mcp/blob/main/LICENSE" target="_blank" style="margin: 2px;">13 <img alt="MIT License" src="https://img.shields.io/github/license/SaseQ/discord-mcp" style="display: inline-block; vertical-align: middle;"/>14 </a>15</div>161718## 📖 Description1920A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server for the Discord API [(JDA)](https://jda.wiki/),21allowing seamless integration of Discord Bot with MCP-compatible applications like Claude Desktop.2223Enable your AI assistants to seamlessly interact with Discord. Manage channels, send messages, and retrieve server information effortlessly. Enhance your Discord experience with powerful automation capabilities.242526## 🔬 Installation2728### ► 🐳 Docker Installation (Recommended)29> NOTE: Docker installation is required. Full instructions can be found on [docker.com](https://www.docker.com/products/docker-desktop/).30```json31{32 "mcpServers": {33 "mcp-server": {34 "command": "docker",35 "args": [36 "run", "--rm", "-i",37 "-e", "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",38 "-e", "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",39 "saseq/discord-mcp:latest"40 ]41 }42 }43}44```4546<details>47 <summary style="font-size: 1.35em; font-weight: bold;">48 🔧 Manual Installation49 </summary>5051#### Clone the repository52```bash53git clone https://github.com/SaseQ/discord-mcp54```5556#### Build the project57> NOTE: Maven installation is required to use the mvn command. Full instructions can be found [here](https://www.baeldung.com/install-maven-on-windows-linux-mac).58```bash59cd discord-mcp60mvn clean package # The jar file will be available in the /target directory61```6263#### Configure AI client64Many code editors and other AI clients use a configuration file to manage MCP servers.6566The Discord MPC server can be configured by adding the following to your configuration file.6768> NOTE: You will need to create a Discord Bot token to use this server. Instructions on how to create a Discord Bot token can be found [here](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot).69```json70{71 "mcpServers": {72 "discord-mcp": {73 "command": "java",74 "args": [75 "-jar",76 "/absolute/path/to/discord-mcp-0.0.1-SNAPSHOT.jar"77 ],78 "env": {79 "DISCORD_TOKEN": "YOUR_DISCORD_BOT_TOKEN",80 "DISCORD_GUILD_ID": "OPTIONAL_DEFAULT_SERVER_ID"81 }82 }83 }84}85```86The `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.8788</details>8990<details>91 <summary style="font-size: 1.35em; font-weight: bold;">92 🦞 OpenClaw Installation93 </summary>9495Run this command.96```bash97openclaw mcp add \98 --name discord \99 --transport stdio \100 --command "docker" \101 --args "run" \102 --args "--rm" \103 --args "-i" \104 --args "-e" --args "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>" \105 --args "-e" --args "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>" \106 --args "saseq/discord-mcp:latest"107```108109OR110111Pasting the following configuration into your OpenClaw `~/.openclaw/config.json` or `mcp_servers.json` file.112```json113{114 "mcpServers": {115 "mcp-server": {116 "command": "docker",117 "args": [118 "run", "--rm", "-i",119 "-e", "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",120 "-e", "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",121 "saseq/discord-mcp:latest"122 ]123 }124 }125}126```127128</details>129130<details>131 <summary style="font-size: 1.35em; font-weight: bold;">132 🖲 Cursor Installation133 </summary>134135Go to: `Settings` -> `Cursor Settings` -> `MCP` -> `Add new global MCP server`136137Pasting 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](https://docs.cursor.com/context/model-context-protocol) for more info.138```json139{140 "mcpServers": {141 "mcp-server": {142 "command": "docker",143 "args": [144 "run", "--rm", "-i",145 "-e", "DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN>",146 "-e", "DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID>",147 "saseq/discord-mcp:latest"148 ]149 }150 }151}152```153154</details>155156<details>157 <summary style="font-size: 1.35em; font-weight: bold;">158 ⌨️ Claude Code Installation159 </summary>160161Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/tutorials#set-up-model-context-protocol-mcp) for more info.162```bash163claude mcp add mcp-server -- docker run --rm -i -e DISCORD_TOKEN=<YOUR_DISCORD_BOT_TOKEN> -e DISCORD_GUILD_ID=<OPTIONAL_DEFAULT_SERVER_ID> saseq/discord-mcp:latest164```165166</details>167168## 🛠️ Available Tools169170#### Server Information171 - [`get_server_info`](): Get detailed discord server information172173#### User Management174- [`get_user_id_by_name`](): Get a Discord user's ID by username in a guild for ping usage `<@id>`175- [`send_private_message`](): Send a private message to a specific user176- [`edit_private_message`](): Edit a private message from a specific user177- [`delete_private_message`](): Delete a private message from a specific user178- [`read_private_messages`](): Read recent message history from a specific user179180#### Message Management181 - [`send_message`](): Send a message to a specific channel182 - [`edit_message`](): Edit a message from a specific channel183 - [`delete_message`](): Delete a message from a specific channel184 - [`read_messages`](): Read recent message history from a specific channel185 - [`add_reaction`](): Add a reaction (emoji) to a specific message186 - [`remove_reaction`](): Remove a specified reaction (emoji) from a message187188#### Channel Management189 - [`create_text_channel`](): Create text a channel190 - [`delete_channel`](): Delete a channel191 - [`find_channel`](): Find a channel type and ID using name and server ID192 - [`list_channels`](): List of all channels193194#### Category Management195 - [`create_category`](): Create a new category for channels196 - [`delete_category`](): Delete a category197 - [`find_category`](): Find a category ID using name and server ID198 - [`list_channels_in_category`](): List of channels in a specific category199200#### Webhook Management201 - [`create_webhook`](): Create a new webhook on a specific channel202 - [`delete_webhook`](): Delete a webhook203 - [`list_webhooks`](): List of webhooks on a specific channel204 - [`send_webhook_message`](): Send a message via webhook205206#### Role Management207 - [`list_roles`](): Get a list of all roles on the server with their details208 - [`create_role`](): Create a new role on the server209 - [`edit_role`](): Modify an existing role's settings210 - [`delete_role`](): Permanently delete a role from the server211 - [`assign_role`](): Assign a role to a user212 - [`remove_role`](): Remove a role from a user213214>If `DISCORD_GUILD_ID` is set, the `guildId` parameter becomes optional for all tools above.215216<hr>217218A more detailed examples can be found in the [Wiki](https://github.com/SaseQ/discord-mcp/wiki).219
Full transparency — inspect the skill content before installing.