Back to MCP Catalog

Discord Integration MCP Server

CommunicationTypeScript
Enables LLMs to interact with Discord channels
Available Tools

send-message

Sends a message to a specified Discord channel

server (optional)channelmessage

read-messages

Reads recent messages from a specified Discord channel

server (optional)channellimit (optional)

A Model Context Protocol server that allows AI assistants like Claude to directly interact with Discord channels. This integration enables reading recent messages and sending new messages through Discord's API, creating a seamless bridge between AI assistants and Discord communities while maintaining user control and security.

Overview

Discord Integration allows AI assistants to interact with Discord channels, providing a seamless way to read and send messages through Discord's API. This integration is particularly useful for community management, monitoring discussions, and enabling AI assistants to participate in Discord conversations.

Prerequisites

Before setting up the Discord Integration, you'll need:

  • Node.js 16.x or higher installed on your system
  • A Discord bot token (created through the Discord Developer Portal)
  • Your bot invited to your Discord server with the following permissions:
    • Read Messages/View Channels
    • Send Messages
    • Read Message History

Installation

  1. Clone the repository:
git clone https://github.com/v-3/discordmcp.git
cd discordmcp
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory with your Discord bot token:
DISCORD_TOKEN=your_discord_bot_token_here
  1. Build the server:
npm run build

Configuration

To use the Discord Integration with Claude for Desktop:

  1. Open your Claude for Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. Add the Discord MCP server configuration:

{
  "mcpServers": {
    "discord": {
      "command": "node",
      "args": ["path/to/discordmcp/build/index.js"],
      "env": {
        "DISCORD_TOKEN": "your_discord_bot_token_here"
      }
    }
  }
}
  1. Restart Claude for Desktop to apply the changes.

Usage

Once configured, you can ask Claude to interact with Discord using natural language. For example:

  • "Can you read the last 5 messages from the general channel?"
  • "Please send a message to the announcements channel saying 'Meeting starts in 10 minutes'"
  • "What were the most recent messages in the development channel about the latest release?"

Claude will use the appropriate tools to interact with Discord while asking for your approval before sending any messages.

Security Considerations

  • The bot requires proper Discord permissions to function
  • All message sending operations require explicit user approval
  • Environment variables should be properly secured
  • Your Discord token should never be committed to version control
  • Channel access is limited to channels the bot has been given access to

Troubleshooting

If you encounter issues:

  1. Verify your Discord bot token is correct
  2. Ensure the bot has been invited to your server with proper permissions
  3. Check that the configuration path in your Claude desktop config is correct
  4. Restart Claude for Desktop after making configuration changes
  5. For development testing, use the MCP Inspector: npx @modelcontextprotocol/inspector node build/index.js

Related MCPs

YouTube Transcript
CommunicationTypeScript

Retrieve transcripts from YouTube videos

iMessage Query
CommunicationPython

Access and analyze your iMessage conversations through a secure MCP server

Slack Integration
CommunicationTypeScript

Enables AI assistants to interact with Slack workspaces

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.