This repository provides a Model Context Protocol (MCP) server that allows LLMs like Claude to interact with Discord channels by sending and reading messages through Discord's API, enabling direct interaction
This project provides a Model Context Protocol (MCP) server, enabling LLMs like Claude to interact with Discord channels for sending and reading messages via Discord's API, ensuring user control and security.
Requires Node.js 16.x+, a Discord bot token, and the bot invited to your server with "Read Messages/View Channels," "Send Messages," and "Read Message History" permissions.
Configure Claude by adding the Discord MCP server details to claude_desktop_config.json
, specifying the command to run the server.
Install development dependencies with npm install --save-dev typescript @types/node
and run npm run dev
for development mode. Test using the MCP Inspector: npx @modelcontextprotocol/inspector node build/index.js
.
Provides example interactions for Claude and outlines security considerations, including required permissions, user approval, and environment variable security.
v-3/discordmcp
January 21, 2025
March 28, 2025
TypeScript