Sends a message to a specified Discord channel
Reads recent messages from a specified Discord channel
A Model Context Protocol server that allows AI assistants like Claude to directly interact with Discord channels. This integration enables reading recent messages and sending new messages through Discord's API, creating a seamless bridge between AI assistants and Discord communities while maintaining user control and security.
Discord Integration allows AI assistants to interact with Discord channels, providing a seamless way to read and send messages through Discord's API. This integration is particularly useful for community management, monitoring discussions, and enabling AI assistants to participate in Discord conversations.
Before setting up the Discord Integration, you'll need:
git clone https://github.com/v-3/discordmcp.git
cd discordmcp
npm install
.env
file in the root directory with your Discord bot token:DISCORD_TOKEN=your_discord_bot_token_here
npm run build
To use the Discord Integration with Claude for Desktop:
Open your Claude for Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the Discord MCP server configuration:
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["path/to/discordmcp/build/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token_here"
}
}
}
}
Once configured, you can ask Claude to interact with Discord using natural language. For example:
Claude will use the appropriate tools to interact with Discord while asking for your approval before sending any messages.
If you encounter issues:
npx @modelcontextprotocol/inspector node build/index.js