Is the Discord MCP server safe? What it can reach
What the Discord MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
This is a community server, SaseQ’s discord-mcp, run locally in Docker with a Discord bot token. It has 81 documented tools and the bot acts with whatever permissions you gave it in your server. It can message members, delete channels, change roles and ban people. Limit the bot’s Discord permissions first, then deny the destructive tools.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| discord-mcp by SaseQ (community) | Community | active |
It runs as a local process on your machine.
How it signs in
A Discord bot token (DISCORD_TOKEN). The server acts as that bot, with the permissions the bot holds in each server it has joined.
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_server_info, get_user_id_by_name, get_member_by_id, search_members, read_private_messages, read_messages, search_messages, get_message, get_message_replies, find_channel, list_channels, get_channel_info, find_category, list_channels_in_category, list_webhooks, list_roles, get_bans, list_guild_scheduled_events, get_guild_scheduled_event_users, list_channel_permission_overwrites, list_invites, get_invite_details, list_active_threads, list_threads, get_thread_info, list_forum_channels, get_forum_channel_info, list_forum_tags, list_forum_posts, list_emojis, get_emoji_details |
| Write | add_reaction, remove_reaction, create_text_channel, edit_text_channel, move_channel, create_category, edit_category, set_nickname, create_voice_channel, create_stage_channel, edit_voice_channel, move_member, disconnect_member, modify_voice_state, create_guild_scheduled_event, edit_guild_scheduled_event, create_forum_channel, edit_forum_channel, modify_forum_post, create_emoji, edit_emoji, create_webhook |
| Can’t be undone | send_private_message, edit_private_message, delete_private_message, send_message, edit_message, delete_message, delete_channel, delete_category, delete_webhook, send_webhook_message, create_role, edit_role, delete_role, assign_role, remove_role, kick_member, ban_member, unban_member, timeout_member, remove_timeout, upsert_role_channel_permissions, upsert_member_channel_permissions, delete_channel_permission_overwrite, create_invite, delete_invite, create_forum_post, delete_guild_scheduled_event, delete_emoji |
Tools are listed in the README by category. Most take a guildId, which DISCORD_GUILD_ID can supply as a default.
Built-in limits
| Option | What it does |
|---|---|
DISCORD_GUILD_ID | Sets a default server ID so tools can omit guildId. The README describes it as a default, not as a restriction. |
Bot permissions in Discord | The README does not document permission controls. The bot can only do what the roles and permissions you give it allow in Discord. |
SPRING_PROFILES_ACTIVE | Set to http for the recommended single shared server on port 8085. The older stdio mode starts one process per client session. |
The risks
- A message in any channel the bot can read could tell the agent to call kick_member, ban_member or delete_channel. The bot’s Discord permissions are the only hard limit.
- send_message, send_private_message, send_webhook_message and create_forum_post publish text as the bot to real people. Sent messages cannot be quietly withdrawn.
- create_role, assign_role and the permission overwrite tools can raise someone’s rights inside the server.
- In the recommended HTTP mode the server listens on port 8085, and the README documents no authentication for that endpoint. Anything that can reach the port can use the bot.
- read_private_messages and read_messages bring member conversations into the model’s context.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http discord http://localhost:8085/mcpClaude Code names MCP tools mcp__discord__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__discord__ban_member",
"mcp__discord__kick_member",
"mcp__discord__unban_member",
"mcp__discord__delete_channel",
"mcp__discord__delete_category",
"mcp__discord__delete_role",
"mcp__discord__delete_message",
"mcp__discord__delete_private_message",
"mcp__discord__delete_webhook",
"mcp__discord__delete_emoji",
"mcp__discord__delete_guild_scheduled_event",
"mcp__discord__create_role",
"mcp__discord__edit_role",
"mcp__discord__assign_role",
"mcp__discord__remove_role",
"mcp__discord__upsert_role_channel_permissions",
"mcp__discord__upsert_member_channel_permissions",
"mcp__discord__delete_channel_permission_overwrite",
"mcp__discord__create_invite",
"mcp__discord__delete_invite"
],
"ask": [
"mcp__discord__send_message",
"mcp__discord__send_private_message",
"mcp__discord__send_webhook_message",
"mcp__discord__edit_message",
"mcp__discord__edit_private_message",
"mcp__discord__create_forum_post",
"mcp__discord__timeout_member",
"mcp__discord__remove_timeout",
"mcp__discord__create_webhook",
"mcp__discord__create_text_channel",
"mcp__discord__edit_text_channel",
"mcp__discord__set_nickname",
"mcp__discord__move_member",
"mcp__discord__disconnect_member",
"mcp__discord__modify_voice_state"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.discord]
url = "http://localhost:8085/mcp"
disabled_tools = ["ban_member", "kick_member", "unban_member", "delete_channel", "delete_category", "delete_role", "delete_message", "delete_private_message", "delete_webhook", "delete_emoji", "delete_guild_scheduled_event", "create_role", "edit_role", "assign_role", "remove_role", "upsert_role_channel_permissions", "upsert_member_channel_permissions", "delete_channel_permission_overwrite", "create_invite", "delete_invite"]Checklist
- Create a bot with only the Discord permissions the task needs.
- Add it to one test server first, and set DISCORD_GUILD_ID.
- Deny moderation, role and delete tools in your client.
- Bind the HTTP port to localhost only and do not expose it.
- Rotate the bot token if you ever pasted it into a shared config.
Checked against the vendor documentation on November 25, 2026. SaseQ/discord-mcp README · SaseQ/discord-mcp repository
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing