Discord MCP Server logo

Discord MCP Server

by v-3

The Discord MCP Server enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. It allows LLMs like Claude to directly interact with Discord channels while maintaining user control and security.

View on GitHub

Last updated: N/A

What is Discord MCP Server?

The Discord MCP Server is a Model Context Protocol (MCP) server that acts as a bridge between Large Language Models (LLMs) and Discord. It allows LLMs to send and receive messages in Discord channels, enabling automated interactions and integrations.

How to use Discord MCP Server?

To use the server, you need to clone the repository, install dependencies, configure a Discord bot token, and build the server. Then, configure your LLM (e.g., Claude for Desktop) to use the server by adding its configuration to the LLM's configuration file. The server provides tools for sending and reading messages in Discord channels.

Key features of Discord MCP Server

  • 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

Use cases of Discord MCP Server

  • Automated announcements in Discord channels

  • Summarizing Discord conversations for LLMs

  • Creating interactive Discord bots powered by LLMs

  • Integrating Discord with other applications through LLMs

FAQ from Discord MCP Server

What is a Discord bot token?

A Discord bot token is a secret key that authenticates your bot with the Discord API. It's essential for the server to interact with Discord on behalf of your bot.

How do I get a Discord bot token?

You can create a bot and obtain a token through the Discord Developer Portal.

What permissions does the bot need?

The bot requires 'Read Messages/View Channels', 'Send Messages', and 'Read Message History' permissions to function correctly.

How do I find the path to the build/index.js file?

The path depends on where you cloned the repository. It's typically in the 'build' directory after running 'npm run build'

What if the bot is in multiple servers?

You need to specify the 'server' parameter (server name or ID) when using the 'send-message' and 'read-messages' tools to target the correct server.