Discord Bridge MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "DISCORD_BOT_TOKEN=${DISCORD_BOT_TOKEN}" -e "DISCORD_GUILD_ID=${DISCORD_GUILD_ID}" discord-bridge -- node "<FULL_PATH_TO_MCP_DISCORD_BRIDGE>/dist/index.js"

Replace <FULL_PATH_TO_MCP_DISCORD_BRIDGE>/dist/index.js with the actual folder you prepared in step 1.

Required:DISCORD_BOT_TOKENDISCORD_GUILD_ID+ 1 optional
README.md

Native Discord tools for Claude Code to enable bidirectional communication.

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.

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

Tools (6)

discord_sendSend a message to any channel
discord_readRead recent messages (with pagination)
discord_replyReply to a specific message
discord_reactReact to a message with emoji
discord_channelsList all text channels
discord_check_mentionsFind messages that @mention you

Environment Variables

DISCORD_BOT_TOKENrequiredDiscord bot token
DISCORD_GUILD_IDrequiredDiscord server (guild) ID
DISCORD_DEFAULT_CHANNELDefault channel name

Configuration

claude_desktop_config.json
{"mcpServers": {"discord-bridge": {"command": "node", "args": ["/path/to/index.js"], "env": {"DISCORD_BOT_TOKEN": "your-bot-token", "DISCORD_GUILD_ID": "your-server-id", "DISCORD_DEFAULT_CHANNEL": "general"}}}}

Try it

List all available text channels in the Discord server.
Check for any new messages that mention me in the general channel.
Send a message to the general channel confirming that the task is complete.
Read the last 10 messages from the project-updates channel.
React with a checkmark emoji to the latest message in the team channel.

Frequently Asked Questions

What are the key features of Discord Bridge?

Bidirectional communication between local Claude Code and remote agents. Direct integration with Discord REST API without WebSocket requirements. Lightweight and stateless architecture. Support for message sending, reading, replying, and reactions. Built-in mention tracking and channel listing.

What can I use Discord Bridge for?

Multi-agent coordination where local Claude Code delegates tasks to remote agents. Human-in-the-loop monitoring of agent conversations via Discord. Bridging communication between a local development machine and a remote server. Async task management with progress notifications and completion alerts.

How do I install Discord Bridge?

Install Discord Bridge by running: npm install

What MCP clients work with Discord Bridge?

Discord Bridge works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Discord Bridge docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare