Skip to main content
Glama
Discord Bridge MCP Server

Discord Bridge MCP Server

by jhammant

Discord Bridge MCP Server

An MCP (Model Context Protocol) server that gives Claude Code native Discord tools. Enables bidirectional communication between your local Claude Code session and remote AI agents (or humans) through Discord.

What it does

This server exposes 6 Discord tools to Claude Code:

Tool

Description

discord_send

Send a message to any channel

discord_read

Read recent messages (with pagination)

discord_reply

Reply to a specific message

discord_react

React to a message with emoji

discord_channels

List all text channels

discord_check_mentions

Find messages that @mention you

Uses the Discord REST API directly -- no WebSocket gateway connection needed. Lightweight, stateless, ~250 lines of code.

Related MCP server: Discord MCP Server

Setup

1. Create a Discord bot

  1. Go to Discord Developer Portal

  2. Create a new application

  3. Go to Bot settings, create a bot, copy the token

  4. Enable "Message Content Intent" under Privileged Gateway Intents

  5. Invite the bot to your server with Send Messages + Read Message History permissions

2. Install

npm install

3. Register with Claude Code

claude mcp add discord-bridge \
  -e DISCORD_BOT_TOKEN=your-bot-token \
  -e DISCORD_GUILD_ID=your-server-id \
  -e DISCORD_DEFAULT_CHANNEL=general \
  -- node /path/to/index.js

4. Add the /talk command (optional)

Copy talk.md to ~/.claude/commands/talk.md. Then type /talk in Claude Code to check for new messages and respond.

How it works

┌─────────────────┐     stdio      ┌─────────────────┐    REST API    ┌─────────┐
│   Claude Code   │◄──────────────►│  Discord Bridge  │◄─────────────►│ Discord │
│   (local CLI)   │     MCP        │   (MCP Server)   │   HTTPS       │   API   │
└─────────────────┘                └─────────────────┘                └─────────┘
                                                                           │
                                                                     ┌─────┴─────┐
                                                                     │  Discord   │
                                                                     │  Server    │
                                                                     │ (channels) │
                                                                     └─────┬─────┘
                                                                           │
                                                                   ┌───────┴───────┐
                                                                   │ Remote Agents  │
                                                                   │ (or humans)    │
                                                                   └───────────────┘

Claude Code communicates with the MCP server over stdio. The MCP server translates tool calls into Discord REST API requests. Remote agents (or humans) see messages in Discord and can respond. Claude Code picks up responses on the next /talk invocation.

Use cases

  • Multi-agent coordination: Local Claude Code delegates tasks to remote AI agents running on a server

  • Human-in-the-loop: Team members monitor and participate in agent conversations via Discord

  • Cross-machine communication: Bridge between your laptop and a remote server running AI agents

  • Async task management: Post tasks, check on progress, get notified of completions

Environment variables

Variable

Required

Description

DISCORD_BOT_TOKEN

Yes

Discord bot token

DISCORD_GUILD_ID

Yes

Discord server (guild) ID

DISCORD_DEFAULT_CHANNEL

No

Default channel name (defaults to "general")

License

MIT

Available Tools

6 tools
discord_channelsB

List all text channels in the Discord server.

Inputs: no named parameters.

discord_check_mentionsC

Check for recent messages that mention the bot.

Inputs: channel, limit.

discord_reactC

Add a reaction emoji to a Discord message.

Inputs: message_id (required), channel (required), emoji (required).

discord_readC

Read recent messages from a Discord channel.

Inputs: channel, limit, before, after.

discord_replyC

Reply to a specific Discord message.

Inputs: message_id (required), channel (required), message (required).

discord_sendC

Send a message to a Discord channel.

Inputs: message (required), channel.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific Discord actions: listing channels, checking mentions, reacting, reading messages, replying, and sending messages. There is no overlap or ambiguity between these functions, making tool selection straightforward for an agent.

    Naming Consistency5/5

    All tool names follow a consistent 'discord_' prefix with descriptive verb_noun patterns (e.g., discord_channels, discord_react, discord_send). This uniformity enhances readability and predictability across the toolset.

    Tool Count5/5

    With 6 tools, the server is well-scoped for a Discord bridge, covering essential messaging and interaction functions without being overly sparse or bloated. Each tool serves a clear and necessary role in the domain.

    Completeness4/5

    The toolset provides strong coverage for core Discord messaging workflows, including sending, reading, replying, and reacting. A minor gap exists in the lack of tools for managing channels (e.g., creating or deleting) or handling other Discord features like voice channels or user management, but agents can still perform key tasks effectively.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      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.
      19
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables Claude Desktop to interact with Discord through a dedicated bot. It allows users to list channels, read message history, and send messages directly from the AI interface.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server providing 26 tools for Discord API interactions, enabling message management, moderation, channel operations, and server inspection through Claude Code, Paperclip agents, or other MCP-compatible clients.
      26
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Discord MCP server SDK that connects AI assistants like Claude and ChatGPT to Discord, providing over 100 tools for natural language control of Discord servers, including channel, message, member, and role management.
      64 npm
      MIT