discord-mcp
This project is an MCP server designed for integrating Discord bots with applications compatible with the Model Context Protocol. It enables seamless interaction with Discord through various automation functions like message and channel management.
📖 Description
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.
🔬 Installation
Clone the repository
git clone https://github.com/SaseQ/discord-mcp
Build the project
NOTE: Maven installation is required to use the mvn command. Full instructions can be found here.
cd discord-mcp
mvn clean package # The jar file will be available in the /target directory
Configure AI client
Many code editors and other AI clients use a configuration file to manage MCP servers.
The Discord MPC server can be configured by adding the following to your configuration file.
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.
{
"mcpServers": {
"discord-mcp": {
"command": "java",
"args": [
"-jar",
"/absolute/path/to/discord-mcp-0.0.1-SNAPSHOT.jar"
],
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_BOT_TOKEN"
}
}
}
}
🔧 GitMCP
Use Discord MCP remotely via GitMCP:
{
"mcpServers": {
"discord-mcp": {
"command": "npx",
"args": [
"mcp-remote",
"https://gitmcp.io/SaseQ/discord-mcp"
],
"env": {
"DISCORD_TOKEN": "YOUR_DISCORD_BOT_TOKEN"
}
}
}
}
More info and different configs here
⚓ Smithery
Install Discord MCP Server automatically via Smithery:
npx -y @smithery/cli@latest install @SaseQ/discord-mcp --client claude
🛠️ Available Tools
Server Information
- : Get detailed discord server information
Message Management
- : Send a message to a specific channel
- : Edit a message from a specific channel
- : Delete a message from a specific channel
- : Read recent message history from a specific channel
- : Send a private message to a specific user
- : Edit a private message from a specific user
- : Delete a private message from a specific user
- : Read recent message history from a specific user
- : Add a reaction (emoji) to a specific message
- : Remove a specified reaction (emoji) from a message
Channel Management
- : Create text a channel
- : Delete a channel
- : Find a channel type and ID using name and server ID
- : List of all channels
Category Management
- : Create a new category for channels
- : Delete a category
- : Find a category ID using name and server ID
- : List of channels in a specific category
Webhook Management
- : Create a new webhook on a specific channel
- : Delete a webhook
- : List of webhooks on a specific channel
- : Send a message via webhook
A more detailed examples can be found in the Wiki.