Allows Claude to interact with Discord servers through various tools for sending messages, reading message history, listing channels and servers, and retrieving user information.
Discord MCP Server
An MCP (Model Context Protocol) server for Discord API integration with Claude. This server allows Claude to interact with Discord servers via tools that perform actions such as sending messages, reading messages, and managing server resources.
Prerequisites
- Node.js 16 or higher
- A Discord bot token (create one at the Discord Developer Portal)
- Appropriate bot permissions:
- Read Messages/View Channels
- Send Messages
- Read Message History
- (Optional) Manage Roles, Manage Channels, etc. depending on functionality needed
Installation
- Clone this repository
- Install dependencies:
- Build the project:
Configuration
Create a .env
file in the root directory with:
Usage
- Start the server:
- Configure Claude Desktop:
- Add to Claude Desktop's configuration file:
Available Tools
send-message
: Send a message to a Discord channelread-messages
: Read recent messages from a Discord channellist-channels
: List available channels in the serverlist-servers
: List servers the bot has access toget-user-info
: Get information about a specific user
Security Considerations
- The Discord bot token grants access to your Discord bot. Keep it secure.
- The bot can only access servers it has been invited to.
- Actions are limited by the bot's permissions in each server.
License
MIT
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.
Related MCP Servers
- -securityAlicense-qualityProvides Discord integration capabilities to MCP clients like Claude Desktop.Last updated -1253PythonMIT License
- -securityFlicense-qualityThis server allows integration with Discord, enabling message exchanges between Claude and a Discord channel using prompts and notifications.Last updated -TypeScript
- AsecurityAlicenseAqualityAn MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.Last updated -2108195TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server that enables posting messages to Discord webhooks, allowing customization of content, username, and avatar URL.Last updated -10JavaScriptMIT License