DiscordSAFE
Discord MCP Server for Claude Integration
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol (MCP) server that enables LLMs to interact with Discord channels, allowing them to send and read messages through Discord's API. Using this server, LLMs like Claude can directly interact with Discord channels while maintaining user control and security.
Features
- Send messages to Discord channels
- Read recent messages from channels
- Automatic server and channel discovery
- Support for both channel names and IDs
- Proper error handling and validation
Prerequisites
- Node.js 16.x or higher
- A Discord bot token
- The bot must be invited to your server with proper permissions:
- Read Messages/View Channels
- Send Messages
- Read Message History
Setup
- Clone this repository:
git clone https://github.com/yourusername/discordmcp.git cd discordmcp
- Install dependencies:
npm install
- Create a
.envfile in the root directory with your Discord bot token:
DISCORD_TOKEN=your_discord_bot_token_here
- Build the server:
npm run build
Usage with Claude for Desktop
- Open your Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Add the Discord MCP server configuration:
{
"mcpServers": {
"discord": {
"command": "node",
"args": ["path/to/discordmcp/build/index.js"],
"env": {
"DISCORD_TOKEN": "your_discord_bot_token_here"
}
}
}
}- Restart Claude for Desktop
Available Tools
send-message
Sends a message to a specified Discord channel.
Parameters:
server(optional): Server name or ID (required if bot is in multiple servers)channel: Channel name (e.g., "general") or IDmessage: Message content to send
Example:
{
"channel": "general",
"message": "Hello from MCP!"
}read-messages
Reads recent messages from a specified Discord channe
1aad7bc1740fOBSERVED · 2026-10-06Connect
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 mcp add discord-mcp-server --env DISCORD_TOKEN=${DISCORD_TOKEN} -- npx -y [email protected]{
"mcpServers": {
"discord-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DISCORD_TOKEN": "${DISCORD_TOKEN}"
}
}
}
}Exposed tools (2)
1 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
read-messages | read | Read recent messages from a Discord channel |
send-message | write | Send a message to a Discord channel |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (1 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
@modelcontextprotocol/sdk, discord.js, dotenv, zod, @types/node, typescript
Gates applied: no_behavioural_pass, no_license.
1aad7bc1740ffull audit observations/trust-audit/mcp-server/v-3__discord.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-06 | 1aad7bc1740f | SAFE | B | 89 | first audit |
Questions
What is the Discord MCP server?
Discord MCP Server for Claude Integration
What tools does Discord expose?
2 in total: 1 read-only, 1 that write, and 0 that can delete or overwrite. 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.
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 npm as discord-mcp-server at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (1aad7bc1740f), read on 2026-10-06. The repository is watched and re-audited when it changes.