discordmcp

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

62
13

Discord MCP Server

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.

Features

  • Send messages to Discord channels.
  • Read recent messages from channels.
  • Automatic server and channel discovery using names or IDs.
  • Proper error handling and validation.

Prerequisites

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.

Usage with Claude for Desktop

Configure Claude by adding the Discord MCP server details to claude_desktop_config.json, specifying the command to run the server.

Development & Testing

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.

Examples & Security

Provides example interactions for Claude and outlines security considerations, including required permissions, user approval, and environment variable security.

Repository

V-
v-3

v-3/discordmcp

Created

January 21, 2025

Updated

March 28, 2025

Language

TypeScript

Category

Communication