Skip to main content
Glama

discord-mcp

A comprehensive Discord MCP server with 66 tools. Built with TypeScript, Bun, and discord.js.

The only Discord MCP server that shows emoji reactions, thread indicators, and attachment metadata inline in message output, so your AI assistant can see the full context of every message without extra API calls.

Features

  • Reactions in message output โ€” see [๐Ÿ‘ร—2 โœ…ร—1] on every message

  • Thread indicators โ€” [๐Ÿงต thread] shows which messages have active threads

  • Attachment metadata โ€” [+1att] with get_attachment for URLs and file info

  • File uploads โ€” send images, PDFs, and other files via the files parameter

  • Auto-chunking โ€” messages over 2000 characters are split at paragraph boundaries

  • Incremental reads โ€” after and before params for fetching only new messages

  • 66 tools โ€” messages, channels, threads, roles, moderation, voice, webhooks, events, permissions, invites, emojis, DMs

  • Automatic rate limiting โ€” discord.js handles 429 responses transparently

  • Native runtime โ€” Bun/TypeScript, no Docker required

Related MCP server: MCP-Discord

Quick start

Prerequisites

Install

git clone https://github.com/jonasgantner/discord-mcp.git
cd discord-mcp
bun install

Configure

Set environment variables:

export DISCORD_TOKEN="your-bot-token"
export DISCORD_GUILD_ID="your-server-id"  # optional, used as default for guild-scoped tools

Run

bun run index.ts

The server communicates over stdio (MCP standard).

Use with Claude Code

Add to ~/.claude/mcp-wrappers/discord.sh:

#!/bin/bash
exec bun run /path/to/discord-mcp/index.ts

Or configure directly in your MCP settings.

Use with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "discord": {
      "command": "bun",
      "args": ["run", "/path/to/discord-mcp/index.ts"],
      "env": {
        "DISCORD_TOKEN": "your-bot-token",
        "DISCORD_GUILD_ID": "your-server-id"
      }
    }
  }
}

Message output format

read_messages returns rich metadata on every message:

- (ID: 123456) **[username]** `2026-04-01T12:00:00Z`: ```message content``` [๐Ÿงต thread] [๐Ÿ‘ร—2 โœ…ร—1] [+1att]

Indicator

Meaning

[๐Ÿงต thread]

Message has an active thread

[๐Ÿ‘ร—2 โœ…ร—1]

Emoji reactions with counts

[+1att]

Has file attachments

Tools (66)

Messages (7)

read_messages ยท send_message ยท edit_message ยท delete_message ยท add_reaction ยท remove_reaction ยท get_attachment

Users & DMs (5)

get_user_id_by_name ยท send_private_message ยท edit_private_message ยท delete_private_message ยท read_private_messages

Threads (1)

list_active_threads

Channels (7)

create_text_channel ยท edit_text_channel ยท delete_channel ยท find_channel ยท list_channels ยท get_channel_info ยท move_channel

Categories (4)

create_category ยท delete_category ยท find_category ยท list_channels_in_category

Roles (6)

list_roles ยท create_role ยท edit_role ยท delete_role ยท assign_role ยท remove_role

Moderation (7)

kick_member ยท ban_member ยท unban_member ยท timeout_member ยท remove_timeout ยท set_nickname ยท get_bans

Voice & Stage (6)

create_voice_channel ยท create_stage_channel ยท edit_voice_channel ยท move_member ยท disconnect_member ยท modify_voice_state

Webhooks (4)

create_webhook ยท delete_webhook ยท list_webhooks ยท send_webhook_message

Scheduled Events (5)

create_guild_scheduled_event ยท edit_guild_scheduled_event ยท delete_guild_scheduled_event ยท list_guild_scheduled_events ยท get_guild_scheduled_event_users

Permissions (4)

list_channel_permission_overwrites ยท upsert_role_channel_permissions ยท upsert_member_channel_permissions ยท delete_channel_permission_overwrite

Invites (4)

create_invite ยท list_invites ยท delete_invite ยท get_invite_details

Emojis (5)

list_emojis ยท get_emoji_details ยท create_emoji ยท edit_emoji ยท delete_emoji

Server (1)

get_server_info

Comparison

This server was built to replace SaseQ/discord-mcp (the most-starred Discord MCP server). Here's how it compares to existing options:

Feature

discord-mcp (this)

SaseQ

barryyip0625

HardHeadHackerHead

PaSympa

Language

TypeScript/Bun

Java/Spring Boot

TypeScript

TypeScript

TypeScript

Tools

66

~65

42

139

90

Reactions in read output

Yes

No

No

No

No

Thread indicators

Yes

No

No

No

No

File attachments on send

Yes

No

No

Yes

No

Auto-chunking (>2000 chars)

Yes

No

No

No

No

Incremental reads (after/before)

Yes

No

No

No

No

Runtime

Native (Bun)

Docker/JVM

Node.js/Docker

Node.js

Node.js/Docker

Docker image size

N/A (no Docker needed)

~400MB+

~150MB

โ€”

~73MB

Why this server?

Other Discord MCP servers fetch messages but strip context. When your AI reads a channel, it can't see which messages have been reacted to, which have threads, or which have attachments. It has to make separate API calls for each, burning tokens and rate limit budget.

This server puts that context inline on every message, so a single read_messages call gives the full picture.

Bot permissions

The bot needs these Discord gateway intents (configured in the Developer Portal):

  • Server Members Intent โ€” for moderation and role tools

  • Message Content Intent โ€” for reading message content

  • Presence Intent โ€” optional, for voice state tools

Minimum bot permissions (OAuth2 scope bot):

  • Read Messages/View Channels

  • Send Messages

  • Manage Messages (for delete/edit)

  • Add Reactions

  • Read Message History

  • Manage Channels (for channel CRUD)

  • Manage Roles (for role tools)

  • Kick/Ban Members (for moderation)

Architecture

discord-mcp/
โ”œโ”€โ”€ index.ts              # Entry point: MCP server + discord.js client
โ”œโ”€โ”€ client.ts             # Client singleton, guild resolver, helpers
โ”œโ”€โ”€ tools/
โ”‚   โ”œโ”€โ”€ _types.ts         # ToolDef type, chunk(), message formatter
โ”‚   โ”œโ”€โ”€ registry.ts       # Collects all modules, registers with MCP
โ”‚   โ”œโ”€โ”€ messages.ts       # read/send/edit/delete, reactions, attachments
โ”‚   โ”œโ”€โ”€ users.ts          # DMs, user lookup
โ”‚   โ”œโ”€โ”€ threads.ts        # Active thread listing
โ”‚   โ”œโ”€โ”€ channels.ts       # Channel CRUD
โ”‚   โ”œโ”€โ”€ categories.ts     # Category management
โ”‚   โ”œโ”€โ”€ roles.ts          # Role CRUD + assign/remove
โ”‚   โ”œโ”€โ”€ moderation.ts     # Kick, ban, timeout, nickname
โ”‚   โ”œโ”€โ”€ voice.ts          # Voice/stage channels, member control
โ”‚   โ”œโ”€โ”€ webhooks.ts       # Webhook CRUD + send
โ”‚   โ”œโ”€โ”€ events.ts         # Scheduled events
โ”‚   โ”œโ”€โ”€ permissions.ts    # Permission overwrites
โ”‚   โ”œโ”€โ”€ invites.ts        # Invite management
โ”‚   โ”œโ”€โ”€ emojis.ts         # Custom emoji CRUD
โ”‚   โ””โ”€โ”€ server-info.ts    # Server metadata
โ””โ”€โ”€ package.json

Each tool module exports a ToolDef[] array. The registry collects them all and handles MCP registration + error wrapping in one place. Adding a new tool is: define it in the right module, done.

Credits

Built as a replacement for SaseQ/discord-mcp, which pioneered the comprehensive Discord MCP server approach. Tool schemas are inspired by that project's design.

License

MIT

A
license - permissive license
-
quality - not tested
D
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    A Discord Model Context Protocol server that enables AI assistants to interact with Discord, providing functionality for sending messages, managing channels, handling forum posts, and working with reactions.
    Last updated
    22
    731
    100
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Discord MCP server that enables AI assistants to interact with Discord platforms, providing functionalities like sending messages, managing channels, creating forum posts, and handling webhooks.
    Last updated
    21
    731
    1
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    A Discord Model Context Protocol server that enables AI assistants to interact with Discord by sending messages, managing channels, handling forum posts, managing webhooks, and processing reactions.
    Last updated
    22
    209
    5
    MIT
  • 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.
    Last updated
    26
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jonasgantner/discord-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server