What is A Model Context Protocol (MCP) server that enables LLMs to interact with Discord channels.?
Discord MCP Server is a Model Context Protocol (MCP) server that enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. Using this server, LLMs like Claude can directly interact with Discord channels while maintaining user control and security.
Documentation
Discord MCP Server
A Model Context Protocol (MCP) server that enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. Using this server, LLMs like Claude can directly interact with Discord channels while maintaining user control and security.
Features
Send messages to Discord channels
Read recent messages from channels
Automatic server and channel discovery
Support for both channel names and IDs
Proper error handling and validation
Prerequisites
Node.js 16.x or higher
A Discord bot token
The bot must be invited to your server with proper permissions:
Read Messages/View Channels
Send Messages
Read Message History
Setup
Clone this repository:
git clone https://github.com/yourusername/discordmcp.git
cd discordmcp
Install dependencies:
npm install
Create a .env file in the root directory with your Discord bot token: