Atlas / MCP servers / hanweg / Discord

DiscordSAFE

mcp/hanweg/discord-1

MCP server for discord bot

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
15 6r · 5w · 4d
Transport
stdio
License
MIT
Stars
165
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://smithery.ai/server/@hanweg/mcp-discord) A Model Context Protocol (MCP) server that provides Discord integration capabilities to MCP clients like Claude Desktop.

Available Tools

Server Information

  • list_servers: List available servers
  • get_server_info: Get detailed server information
  • get_channels: List channels in a server
  • list_members: List server members and their roles
  • get_user_info: Get detailed information about a user

Message Management

  • send_message: Send a message to a channel
  • read_messages: Read recent message history
  • add_reaction: Add a reaction to a message
  • add_multiple_reactions: Add multiple reactions to a message
  • remove_reaction: Remove a reaction from a message
  • moderate_message: Delete messages and timeout users

Channel Management

  • create_text_channel: Create a new text channel
  • delete_channel: Delete an existing channel

Role Management

  • add_role: Add a role to a user
  • remove_role: Remove a role from a user

Installation

  1. Set up your Discord bot:
  2. Create a new application at Discord Developer Portal
  3. Create a bot and copy the token
  4. Enable required privileged intents:
  5. MESSAGE CONTENT INTENT
  6. PRESENCE INTENT
  7. SERVER MEMBERS INTENT
  8. Invite the bot to your server using OAuth2 URL Generator
  1. Clone and install the package:
# Clone the repository
git clone https://github.com/hanweg/mcp-discord.git
cd mcp-discord

# Create and activate virtual environment
uv venv
.venv\Scripts\activate # On macOS/Linux, use: source .venv/bin/activate

### If using Python 3.13+ - install audioop library: `uv pip install audioop-lts`

# Install
Read from source at commit ced9701e70afOBSERVED · 2026-10-06
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-discord --env DISCORD_TOKEN=${DISCORD_TOKEN} -- uvx mcp-discord
claude-desktop
{
  "mcpServers": {
    "mcp-discord": {
      "command": "uvx",
      "args": [
        "mcp-discord"
      ],
      "env": {
        "DISCORD_TOKEN": "${DISCORD_TOKEN}"
      }
    }
  }
}
03

Exposed tools (15)

6 read · 5 write · 4 destructive. Blast radius: 4 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
add_multiple_reactionswriteAdd multiple reactions to a message
add_reactionwriteAdd a reaction to a message
add_rolewriteAdd a role to a user
create_text_channelwriteCreate a new text channel
delete_channeldestructiveDelete a channel
get_channelsreadGet a list of all channels in a Discord server
get_server_inforeadGet information about a Discord server
get_user_inforeadGet information about a Discord user
list_membersreadGet a list of members in a server
list_serversreadGet a list of all Discord servers the bot has access to with their details such as name, id, member count, and creation date.
moderate_messagedestructiveDelete a message and optionally timeout the user
read_messagesreadRead recent messages from a channel
remove_reactiondestructiveRemove a reaction from a message
remove_roledestructiveRemove a role from a user
send_messagewriteSend a message to a specific channel
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (1 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
none-found

Findings (2)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete_channel, moderate_message, remove_reaction, remove_role
Why it matters. 4 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
requirements.txt
discord.py, mcp
Why it matters. 2 requirement(s) not pinned with ==
Fix. pin exact versions

Gates applied: no_behavioural_pass.

Audited 2026-10-06 · audit v0.4.1 · source sha ced9701e70affull audit observations/trust-audit/mcp-server/hanweg__discord-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-06ced9701e70afSAFEB89first audit
06

Questions

What is the Discord MCP server?

MCP server for discord bot

What tools does Discord expose?

15 in total: 6 read-only, 5 that write, and 4 that can delete or overwrite (delete_channel, moderate_message, remove_reaction, remove_role). Every one is listed on this page with its risk.

Is Discord safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 4 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Discord need?

It reads DISCORD_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Discord run?

It speaks stdio, so it runs as a local process your client starts. It is published on PyPI as mcp-discord.

How current is this page?

The grade is for one exact copy of the source (ced9701e70af), read on 2026-10-06. The repository is watched and re-audited when it changes.

Advertisement