MCP Hub
Back to servers

@taeraekim/discord-mcp

Discord MCP Server — Manage Discord servers through MCP tools with discord.js v14

npm386/wk
Updated
Mar 4, 2026

Quick Install

npx -y @taeraekim/discord-mcp

@taeraekim/discord-mcp

npm version License: MIT Node.js

A Model Context Protocol (MCP) server for the Discord API using discord.js v14. Provides 37 tools for managing Discord servers, channels, messages, users, roles, and more — all accessible from MCP-compatible clients like Claude Desktop, Claude Code, and Cursor.

Quick Start

claude mcp add discord-mcp \
  -e DISCORD_TOKEN=your_token \
  -e DISCORD_GUILD_ID=your_guild_id \
  -- npx -y @taeraekim/discord-mcp

On Windows, prefix with cmd /c: -- cmd /c npx -y @taeraekim/discord-mcp

Installation

Claude Code

# macOS / Linux
claude mcp add discord-mcp -e DISCORD_TOKEN=your_token -e DISCORD_GUILD_ID=your_guild_id -- npx -y @taeraekim/discord-mcp

# Windows
claude mcp add discord-mcp -e DISCORD_TOKEN=your_token -e DISCORD_GUILD_ID=your_guild_id -- cmd /c npx -y @taeraekim/discord-mcp

Verify with claude mcp list.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "discord": {
      "command": "npx",
      "args": ["-y", "@taeraekim/discord-mcp"],
      "env": {
        "DISCORD_TOKEN": "your_token",
        "DISCORD_GUILD_ID": "your_guild_id"
      }
    }
  }
}

On Windows, use "command": "cmd" with "args": ["/c", "npx", "-y", "@taeraekim/discord-mcp"].

Cursor

Add to ~/.cursor/mcp.json or .cursor/mcp.json in your project:

{
  "mcpServers": {
    "discord": {
      "command": "npx",
      "args": ["-y", "@taeraekim/discord-mcp"],
      "env": {
        "DISCORD_TOKEN": "your_token",
        "DISCORD_GUILD_ID": "your_guild_id"
      }
    }
  }
}

Docker

docker run --rm -i \
  -e DISCORD_TOKEN=your_token \
  -e DISCORD_GUILD_ID=your_guild_id \
  taerae/discord-mcp:latest

From Source

git clone https://github.com/TaeRaeKim/discord-mcp.git
cd discord-mcp
npm install
cp .env.example .env   # edit .env with your token
npm run build
npm start

Environment Variables

VariableRequiredDescription
DISCORD_TOKENYesDiscord bot token
DISCORD_GUILD_IDNoDefault guild ID. When set, guildId becomes optional for all tools

Tools

Server Info (1)

ToolDescription
get_server_infoGet detailed server information

Messages (6)

ToolDescription
send_messageSend a message to a text channel
edit_messageEdit an existing message
delete_messageDelete a message
read_messagesRead message history from a channel
add_reactionAdd an emoji reaction to a message
remove_reactionRemove the bot's emoji reaction

Users & DM (5)

ToolDescription
get_user_id_by_nameFind a user's ID by username
send_private_messageSend a DM to a user
edit_private_messageEdit a DM sent by the bot
delete_private_messageDelete a DM sent by the bot
read_private_messagesRead DM history with a user

Channels (4)

ToolDescription
create_channelCreate a new channel (text, voice, announcement, stage, or forum)
delete_channelDelete a channel
find_channelFind a channel by name
list_channelsList all channels in the server

Categories (4)

ToolDescription
create_categoryCreate a new category
delete_categoryDelete a category
find_categoryFind a category by name
list_channels_in_categoryList channels in a category

Webhooks (4)

ToolDescription
create_webhookCreate a webhook on a channel
delete_webhookDelete a webhook
list_webhooksList webhooks on a channel
send_webhook_messageSend a message via webhook

Threads (1)

ToolDescription
list_active_threadsList active threads in the server

Roles (6)

ToolDescription
list_rolesList all roles in the server
create_roleCreate a new role
edit_roleEdit an existing role
delete_roleDelete a role
assign_roleAssign a role to a user
remove_roleRemove a role from a user

Pins (3)

ToolDescription
pin_messagePin a message in a text channel
unpin_messageUnpin a message in a text channel
list_pinned_messagesList all pinned messages in a channel

Permissions (3)

ToolDescription
set_channel_permissionSet permission overwrite for a role or member on a channel
remove_channel_permissionRemove a permission overwrite from a channel
get_channel_permissionsGet all permission overwrites for a channel

Documentation

  • Setup Guide — Bot creation, environment setup, and detailed configuration
  • Tools Reference — Full parameter reference for all 37 tools

License

MIT

Reviews

No reviews yet

Sign in to write a review