Discord MCP server: what each of its 52 tools does to your server, and how to make your agent ask
All 52 tools of the most-installed Discord MCP server, checked by running mcp-discord 1.5.4 against a local stand-in for Discord's API and gateway: which tools post, DM, forward and delete, how a webhook it made handed its token to the model, how one call opened a private channel to everyone, what a folder's .env changes, and the Claude Code settings that make the rest ask.
Checked on by running mcp-discord 1.5.4 (npm, run with Node.js) from barryyip0625/mcp-discord and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
Every tool works in every server and channel the bot can see, with no read-only mode, tool filter or channel list, and its README suggests Administrator. Reads can run unasked, but message reads hand the model what strangers wrote. Keep sending, DMs, webhooks, forwards, deletes, roles and permissions on ask, and give the bot only the permissions its job needs.
- Can run on their own
- 15
- Should ask a person
- 37
Lethal trifecta: On its own this server can read private data, take in content other people wrote and send data out: all three legs of the lethal trifecta. Check your whole setup
Which Discord server this is
This page is about mcp-discord on npm, from barryyip0625/mcp-discord. At about 4,200 installs a week it is the most-installed Discord MCP server on npm; the next ones have a few hundred. We ran 1.5.4, the latest release, published on 26 November 2026, and spoke to it over stdio with a small script of our own. It lists 52 tools and marks none of them read-only or destructive. We found no telemetry in its code.
We used no real Discord server. A small preload script pointed discord.js, the library the server is built on, at a stand-in on this machine that played Discord’s API and gateway: a server called Acme Community with #general, a private #mods channel, a forum, three members and a Moderator role. It recorded every request the server made. The bot token was fake. What follows is what the server sent for each call, not what Discord would have answered; where Discord itself decides, such as whether a role sits high enough to change, we say so.
What the bot can reach
Every tool works in every server the bot was added to and every channel it can see. There is no read-only mode, no way to pick tools and no list of allowed servers or channels. Under “Easiest Setup” the README recommends Administrator. Its “minimum” invite link grants Manage Channels, Manage Messages, Manage Webhooks, Manage Threads, View Channel, Send Messages, Create Public Threads and Add Reactions; the list above that link also names Manage Roles, which the link leaves out. The bot logs in with the Message Content and Server Members intents, so it reads every message in the channels it sees and the whole member list.
What the calls did
discord_sendposted@everyone urgentwith no limit on mentions, so a bot allowed to mention everyone pings the whole server. A base64 file the model wrote, a fake.env, went up asenv.txt. Attachments by URL are limited to Discord’s own CDN:https://attacker.example/a.pngwas refused.discord_create_webhookanswered with the webhook’s token in plain text, straight into the model’s context:
Successfully created webhook with ID: 1900000000000000001 and token: WEBHOOK-TOKEN-SECRET-abc123- Anyone holding that token can post into the channel, under any name, until someone deletes the webhook, and removing the bot does not end it.
discord_send_webhook_messagetakes any webhook id and token: it posted to one the bot never made, without the bot’s own login, as “Acme Admin” with an avatar fromattacker.exampleand a link to re-verify an account. discord_forward_messagecopied a note from the private #mods channel, a member’s email address in it, into #general. It works across every server the bot is in.discord_search_messagessearches every channel the bot can see: a search for “email” brought back that same #mods note.discord_set_channel_permissionsallowed View Channel and Send Messages for @everyone on #mods in one call, so the whole server could read the moderators’ channel. The reason the model wrote, “cleanup”, went into the audit log.discord_edit_roletakes any role id, and the @everyone role’s id is the server’s own. Setting it to Administrator went out as one call. Discord lets a bot grant only permissions it holds, so a bot with Administrator can.discord_create_rolemade a role with Administrator anddiscord_assign_rolegave Moderator to a member.discord_delete_messagedeleted a member’s message, not only the bot’s.discord_edit_messagerefused one it had not written.discord_set_forum_tagsreplaced all of a forum’s tags with the one the model gave.discord_create_scheduled_eventannounced a “Nitro giveaway” athttps://attacker.example/claimto every member.discord_send_dmhas the one brake in the server: two direct messages per person and ten in all per hour. The third to one member was refused and another member got one at once. The count lives in memory and starts again when the server restarts.discord_read_messagesreturned a hidden instruction a stranger posted in #general, telling the assistant to make a webhook on #mods and post its token, word for word.
What a folder’s .env changes
The server reads a .env file from the folder it starts in, and Claude Code starts it in your project. Values already in its environment win, so it matters for every setting your config leaves out. We put this in the folder:
DISCORD_TOKEN=DOTENV.FOLDER.TOKEN
DISCORD_ATTACHMENT_ALLOWED_HOSTS=*
DISCORD_ATTACHMENT_MAX_MB=0- With no token in the config, the server logged in with the folder’s token, as whatever bot that is. With our own token set, the folder’s was ignored.
*letsdiscord_sendfetch an attachment from any https address and upload it to the channel. It connected tohttps://localhost:47443, a test server on this machine; only our self-signed certificate stopped the download. An internal address with a real certificate would have gone up to Discord. SettingDISCORD_ATTACHMENT_ALLOWED_HOSTSyourself refused it.DISCORD_ATTACHMENT_MAX_MB=0turns the 25 MB cap off.- In HTTP mode (
--transport http),MCP_HTTP_HOST=0.0.0.0andMCP_AUTH_TOKENin the folder opened it on every interface with a password the folder chose. Without anyMCP_AUTH_TOKENit refuses to start, and it listens on 127.0.0.1 by default.
discord_login takes a token from the model
discord_login has a token argument. With a token in the config it only answered “Already logged in”. Started without one, it logged in with the token the model wrote, and every later call ran as that bot. A token pasted in a message the agent read is enough. The code reads the argument only while the bot is not logged in, so set DISCORD_TOKEN in the config and check that it logs in.
A setup we would use
claude mcp add discord -e DISCORD_TOKEN=… -e DISCORD_ATTACHMENT_ALLOWED_HOSTS=cdn.discordapp.com -e DISCORD_ATTACHMENT_MAX_MB=8 -- npx -y mcp-discord@1.5.4Naming the token and the attachment settings yourself keeps a folder’s .env out of them, and the size cap drops from its default of 25 MB to 8 MB. Make a bot for this job alone and invite it with only the permissions it needs, not Administrator: without Manage Roles and Manage Webhooks the role, permission and webhook tools fail at Discord. Add it only to the servers it works in. Pin the version: npx mcp-discord runs whatever is newest each time Claude Code starts it.
Its 52 tools
Hard to undo16 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
discord_delete_categoryDeletes a Discord category by ID.
Server gives no read-only or destructive hint
discord_delete_channelDeletes a Discord channel with an optional reason
Server gives no read-only or destructive hint
discord_remove_reactionRemoves a specific emoji reaction from a Discord message
Server gives no read-only or destructive hint
discord_delete_forum_postDeletes a forum post or thread with an optional reason
Server gives no read-only or destructive hint
discord_set_forum_tagsSets the available tags for a Discord forum channel.
Server gives no read-only or destructive hint
Our call: Replaces all of a forum's tags with the list the model gives: one tag went, the rest were dropped, and posts lose the tags that are gone.
discord_delete_messageDeletes a specific message from a Discord text channel
Server gives no read-only or destructive hint
Our call: With Manage Messages the bot deletes anyone's message, not only its own: a member's message went, and the reason the model gave was not sent with it.
discord_unpin_messageRemoves a message from its channel's pinned messages.
Server gives no read-only or destructive hint
discord_create_webhookCreates a new webhook for a Discord channel
Server gives no read-only or destructive hint
Our call: The answer hands the webhook's token to the model in plain text. Anyone holding it can post into that channel, under any name, until someone deletes the webhook; removing the bot does not end it.
discord_delete_webhookDeletes an existing webhook for a Discord channel
Server gives no read-only or destructive hint
discord_edit_roleEdits an existing role in a Discord server
Server gives no read-only or destructive hint
Our call: The model picks the role. The @everyone role's id is the server's id, and editing it to Administrator went out as one call: every member would hold it.
discord_delete_roleDeletes a role from a Discord server
Server gives no read-only or destructive hint
discord_assign_roleAssigns a role to a member in a Discord server
Server gives no read-only or destructive hint
Our call: Gives any member any role below the bot's own: alice got Moderator, and with it every channel Moderator can see.
discord_remove_roleRemoves a role from a member in a Discord server
Server gives no read-only or destructive hint
discord_delete_scheduled_eventDelete a scheduled event.
Server gives no read-only or destructive hint
discord_set_channel_permissionsSets permission overrides for a role or user on a channel or category
Server gives no read-only or destructive hint
Our call: One call allowed View Channel for @everyone on the private #mods channel, so the whole server could read it. The reason the model wrote, 'cleanup', went into the audit log.
discord_remove_channel_permissionsRemoves all permission overrides for a role or user on a channel or category
Server gives no read-only or destructive hint
Reaches people11 toolsAsk a person: once it reaches someone, it cannot be unsent.
discord_sendSends a message to a specified Discord text channel.
Server gives no read-only or destructive hint
Our call: Posts as the bot in any channel it can see. '@everyone' went out with no limit on mentions, and a base64 file the model wrote, a fake .env, went up as env.txt. Attachment URLs are limited to Discord's CDN unless DISCORD_ATTACHMENT_ALLOWED_HOSTS widens it.
discord_create_forum_postCreates a new post in a Discord forum channel with optional tags
Server gives no read-only or destructive hint
discord_reply_to_forumAdds a reply to an existing forum post or thread
Server gives no read-only or destructive hint
discord_create_text_channelCreates a new text channel in a Discord server with an optional topic and parent category
Server gives no read-only or destructive hint
discord_update_forum_postUpdates a forum post's title, applied tags, archived status, locked status, or pinned status.
Server gives no read-only or destructive hint
discord_edit_messageEdits a message previously sent by the bot.
Server gives no read-only or destructive hint
discord_forward_messageForwards an existing message, including its attachments (e.g. images), to another channel like Discord's Forward button.
Server gives no read-only or destructive hint
Our call: Copies a message, attachments included, into any channel of any server the bot is in: a note from the private #mods channel, with a member's email address, landed in #general.
discord_pin_messagePins a message to its channel.
Server gives no read-only or destructive hint
discord_send_webhook_messageSends a message to a Discord channel using a webhook
Server gives no read-only or destructive hint
Our call: Posts through any webhook id and token the model writes, without the bot's own login, so it reaches servers the bot was never added to. The name 'Acme Admin' and an avatar from attacker.example went out as written.
discord_send_dmSend a direct message to a member of a server the bot is in.
Server gives no read-only or destructive hint
Our call: Sends a direct message to any member. Its own brake allows 2 per person and 10 in all per hour, counted in memory: the third to one member was refused, and the count starts again when the server restarts.
discord_create_scheduled_eventCreate a scheduled event in a server.
Server gives no read-only or destructive hint
Our call: Every member sees the event, and an external one shows the location the model writes: a 'Nitro giveaway' at https://attacker.example/claim went out as written.
Changes data10 toolsAsk a person. Once it is routine, a standing rule can answer.
discord_create_categoryCreates a new category in a Discord server.
Server gives no read-only or destructive hint
discord_edit_categoryEdits an existing Discord category (name and position).
Server gives no read-only or destructive hint
discord_loginLogs in to Discord using the configured token
Server gives no read-only or destructive hint
Our call: With a token in the config it only answers 'Already logged in'. Started without one, it logged in with a token the model wrote, and every later call ran as that bot.
discord_create_forum_channelCreates a new forum channel in a Discord server, optionally under a category
Server gives no read-only or destructive hint
discord_edit_channelEdits a Discord channel's name, topic, parent category, or position
Server gives no read-only or destructive hint
discord_add_reactionAdds an emoji reaction to a specific Discord message
Server gives no read-only or destructive hint
discord_add_multiple_reactionsAdds multiple emoji reactions to a Discord message at once
Server gives no read-only or destructive hint
discord_edit_webhookEdits an existing webhook for a Discord channel
Server gives no read-only or destructive hint
Our call: Renames a webhook or moves it to another channel, the one the model names.
discord_create_roleCreates a new role in a Discord server
Server gives no read-only or destructive hint
Our call: Makes a role with whatever permissions the model lists: Administrator went to Discord as written. Nobody holds it until someone assigns it.
discord_create_voice_channelCreates a new voice channel in a Discord server with an optional parent category
Server gives no read-only or destructive hint
Only looks15 toolsLet it run. It only looks.
discord_get_forum_channelsLists all forum channels in a specified Discord server (guild)
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_get_forum_postRetrieves details about a forum post including its messages
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads, but what comes back is what anyone in the server wrote: a hidden instruction we posted in #general reached the model word for word.
discord_list_forum_threadsLists all threads (posts) in a Discord forum channel, including both active and archived threads
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads, but what comes back is what anyone in the server wrote: a hidden instruction we posted in #general reached the model word for word.
discord_read_messagesRetrieves messages from a Discord text channel.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads, but what comes back is what anyone in the server wrote: a hidden instruction we posted in #general reached the model word for word.
discord_get_server_infoRetrieves detailed information about a Discord server including channels and member count
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_get_reaction_usersLists the users who reacted with a specific emoji to a Discord message.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_get_forum_tagsGets all available tags for a Discord forum channel, including tag IDs, names, and emoji
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_list_pinned_messagesLists the pinned messages of a channel, newest pin first.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads, but what comes back is what anyone in the server wrote: a hidden instruction we posted in #general reached the model word for word.
discord_list_serversLists all Discord servers the bot is a member of
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_search_messagesSearches for messages in a Discord server
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads, across every channel the bot can see: a search for 'email' brought back a note from the private #mods channel. What comes back is text other people wrote.
discord_list_rolesLists all roles in a Discord server with their properties
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_list_membersLists members in a Discord server with their roles
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads, up to 1,000 members a call with their names, ids and roles; Server Members, a privileged intent, must be on for it.
discord_search_membersSearch server members by the start of their username or nickname (prefix match, case-insensitive).
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_list_scheduled_eventsList the scheduled events of a server with start, end, status, location and number of interested members.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
discord_get_memberGets detailed information about a specific member in a Discord server
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It only reads what the bot can see in the servers it was added to, and sends nothing on.
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as discord, this server’s tools are named mcp__discord__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__discord__discord_get_forum_channels",
"mcp__discord__discord_get_forum_post",
"mcp__discord__discord_list_forum_threads",
"mcp__discord__discord_read_messages",
"mcp__discord__discord_get_server_info",
"mcp__discord__discord_get_reaction_users",
"mcp__discord__discord_get_forum_tags",
"mcp__discord__discord_list_pinned_messages",
"mcp__discord__discord_list_servers",
"mcp__discord__discord_search_messages",
"mcp__discord__discord_list_roles",
"mcp__discord__discord_list_members",
"mcp__discord__discord_search_members",
"mcp__discord__discord_list_scheduled_events",
"mcp__discord__discord_get_member"
]
}
}The command that adds the server:
claude mcp add discord -e DISCORD_TOKEN=… -e DISCORD_ATTACHMENT_ALLOWED_HOSTS=cdn.discordapp.com -e DISCORD_ATTACHMENT_MAX_MB=8 -- npx -y mcp-discord@1.5.4Send the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__discord__(?!(discord_get_forum_channels|discord_get_forum_post|discord_list_forum_threads|discord_read_messages|discord_get_server_info|discord_get_reaction_users|discord_get_forum_tags|discord_list_pinned_messages|discord_list_servers|discord_search_messages|discord_list_roles|discord_list_members|discord_search_members|discord_list_scheduled_events|discord_get_member)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients
The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.
claude_desktop_config.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}.vscode/mcp.json{
"servers": {
"discord": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.codex/config.toml[mcp_servers.discord]
command = "npx"
args = ["-y", "mcp-discord@1.5.4"]
env = { DISCORD_TOKEN = "…", DISCORD_ATTACHMENT_ALLOWED_HOSTS = "cdn.discordapp.com", DISCORD_ATTACHMENT_MAX_MB = "8" }~/.gemini/settings.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}- Add context_servers next to your other settings in the same file.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:
claude_desktop_config.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}.vscode/mcp.json{
"servers": {
"discord": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.codex/config.toml[mcp_servers.discord]
command = "npx"
args = ["-y", "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz", "mcp-proxy", "--name", "discord", "--look-only", "discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member", "--", "npx", "-y", "mcp-discord@1.5.4"]
env = { DISCORD_TOKEN = "…", DISCORD_ATTACHMENT_ALLOWED_HOSTS = "cdn.discordapp.com", DISCORD_ATTACHMENT_MAX_MB = "8" }~/.gemini/settings.json{
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"discord": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"discord": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"discord",
"--look-only",
"discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member",
"--",
"npx",
"-y",
"mcp-discord@1.5.4"
],
"env": {
"DISCORD_TOKEN": "…",
"DISCORD_ATTACHMENT_ALLOWED_HOSTS": "cdn.discordapp.com",
"DISCORD_ATTACHMENT_MAX_MB": "8"
}
}
}
}- Add context_servers next to your other settings in the same file.
Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__discord, keeps Claude Code from asking a second time in the terminal:
claude mcp add discord -e DISCORD_TOKEN=… -e DISCORD_ATTACHMENT_ALLOWED_HOSTS=cdn.discordapp.com -e DISCORD_ATTACHMENT_MAX_MB=8 -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name discord --look-only discord_get_forum_channels,discord_get_forum_post,discord_list_forum_threads,discord_read_messages,discord_get_server_info,discord_get_reaction_users,discord_get_forum_tags,discord_list_pinned_messages,discord_list_servers,discord_search_messages,discord_list_roles,discord_list_members,discord_search_members,discord_list_scheduled_events,discord_get_member -- npx -y mcp-discord@1.5.4When the agent should act freely
The 15 reads can run unasked: they send nothing on. But five of them hand the model what anyone in the server wrote, so an agent that reads a public channel and can also post, DM or forward holds the lethal trifecta inside one server. Keep every send, DM, forward, webhook, delete, role and permission change on ask: the person approving sees the channel, the text and the role before it happens, which is the only check this server leaves. For a team chat with a narrower tool set, see the Slack server.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.