Discord

Discord

An MCP server to connect to Discord guilds through a bot and read and write messages in channels

158
Stars
57
Forks
0
Releases

Overview

Discord MCP Server is a Model Context Protocol (MCP) server that enables large language models (LLMs) to interact with Discord channels via a bot and Discord's API. It lets LLMs read recent messages for context and send messages to specified channels. The server supports automatic discovery of servers and channels accessible by the bot and accepts channel references by name or ID. Prerequisites include Node.js 16.x or higher, a Discord bot token, and inviting the bot to servers with Read Messages/View Channels, Send Messages, and Read Message History permissions. To set up, clone the repo, install dependencies, create a .env with the DISCORD_TOKEN, and build the server. Tools available include send-message and read-messages for interacting with channels. The server is designed to work with Claude for Desktop via a configuration that runs the built index with the token provided as an environment variable. Security notes emphasize explicit user approval before sending messages and protecting tokens and permissions.

Details

Owner
v-3
Language
TypeScript
License
Updated
2025-12-07

Features

Send messages to Discord channels

Allows LLMs to send messages to specified Discord channels via MCP tools.

Read recent messages from channels

Fetches recent messages from a specified channel for context.

Automatic server and channel discovery

Automatically discovers servers and channels accessible by the bot.

Support for channel names and IDs

Accepts channel references by name or by ID for flexible targeting.

Proper error handling and validation

Includes input validation and robust error handling to prevent invalid operations.

Audience

LLMsEnable Claude and other LLMs to read from and send messages to Discord channels.
DevelopersDevelopers integrate MCP-based Discord access into AI workflows and apps.

Tags

discordmcpllmbotread-messagessend-messagediscord-apiserver