barryyip0625/mcp-discord
Implement Discord MCP server enabling AI assistants to interact with the Discord platform.
aef9595e6fe5mcp-discord1.5.2 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 5 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 47 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
discord_add_multiple_reactions, discord_add_reaction, discord_assign_role, discord_create_category, discord_create_forum_channel, discord_create_forum_post and 40 moreNo tool was seen to: start other programs on the machine; read or write files; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
2898 request addresses could not be settled from the code (built at run time).
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- web or API responses46 tools · discord_add_multiple_reactions, discord_add_reaction, discord_assign_role +43
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (47: 47 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
(name computed at run time)tool
No description.
discord_add_multiple_reactionstool Adds multiple emoji reactions to a Discord message at onceNetworkoutside text
Adds multiple emoji reactions to a Discord message at once
discord_add_reactiontool Adds an emoji reaction to a specific Discord messageNetworkoutside text
Adds an emoji reaction to a specific Discord message
discord_assign_roletool Assigns a role to a member in a Discord serverNetworkoutside text
Assigns a role to a member in a Discord server
discord_create_categorytool Creates a new category in a Discord server.Networkoutside text
Creates a new category in a Discord server.
discord_create_forum_channeltool Creates a new forum channel in a Discord server, optionally under a categoryNetworkoutside text
Creates a new forum channel in a Discord server, optionally under a category
discord_create_forum_posttool Creates a new post in a Discord forum channel with optional tagsNetworkoutside text
Creates a new post in a Discord forum channel with optional tags
discord_create_roletool Creates a new role in a Discord serverNetworkoutside text
Creates a new role in a Discord server
discord_create_text_channeltool Creates a new text channel in a Discord server with an optional topic and parent categoryNetworkoutside text
Creates a new text channel in a Discord server with an optional topic and parent category
discord_create_voice_channeltool Creates a new voice channel in a Discord server with an optional parent categoryNetworkoutside text
Creates a new voice channel in a Discord server with an optional parent category
discord_create_webhooktool Creates a new webhook for a Discord channelNetworkoutside text
Creates a new webhook for a Discord channel
discord_delete_categorytool Deletes a Discord category by ID.Networkoutside text
Deletes a Discord category by ID.
discord_delete_channeltool Deletes a Discord channel with an optional reasonNetworkoutside text
Deletes a Discord channel with an optional reason
discord_delete_forum_posttool Deletes a forum post or thread with an optional reasonNetworkoutside text
Deletes a forum post or thread with an optional reason
discord_delete_messagetool Deletes a specific message from a Discord text channelNetworkoutside text
Deletes a specific message from a Discord text channel
discord_delete_roletool Deletes a role from a Discord serverNetworkoutside text
Deletes a role from a Discord server
discord_delete_webhooktool Deletes an existing webhook for a Discord channelNetworkoutside text
Deletes an existing webhook for a Discord channel
discord_edit_categorytool Edits an existing Discord category (name and position).Networkoutside text
Edits an existing Discord category (name and position).
discord_edit_channeltool Edits a Discord channel's name, topic, parent category, or positionNetworkoutside text
Edits a Discord channel's name, topic, parent category, or position
discord_edit_messagetool Edits a message previously sent by the bot. Only messages authored by the bot can be edited.Networkoutside text
Edits a message previously sent by the bot. Only messages authored by the bot can be edited.
discord_edit_roletool Edits an existing role in a Discord serverNetworkoutside text
Edits an existing role in a Discord server
discord_edit_webhooktool Edits an existing webhook for a Discord channelNetworkoutside text
Edits an existing webhook for a Discord channel
discord_get_forum_channelstool Lists all forum channels in a specified Discord server (guild)Networkoutside text
Lists all forum channels in a specified Discord server (guild)
discord_get_forum_posttool Retrieves details about a forum post including its messagesNetworkoutside text
Retrieves details about a forum post including its messages
discord_get_forum_tagstool Gets all available tags for a Discord forum channel, including tag IDs, names, and emojiNetworkoutside text
Gets all available tags for a Discord forum channel, including tag IDs, names, and emoji
discord_get_membertool Gets detailed information about a specific member in a Discord serverNetworkoutside text
Gets detailed information about a specific member in a Discord server
discord_get_reaction_userstool Lists the users who reacted with a specific emoji to a Discord message. Uses REST fetch and does not require Gateway intents. Returns up to 100 users per call.Networkoutside text
Lists the users who reacted with a specific emoji to a Discord message. Uses REST fetch and does not require Gateway intents. Returns up to 100 users per call.
discord_get_server_infotool Retrieves detailed information about a Discord server including channels and member countNetworkoutside text
Retrieves detailed information about a Discord server including channels and member count
discord_list_forum_threadstool Lists all threads (posts) in a Discord forum channel, including both active and archived threadsNetworkoutside text
Lists all threads (posts) in a Discord forum channel, including both active and archived threads
discord_list_memberstool Lists members in a Discord server with their rolesNetworkoutside text
Lists members in a Discord server with their roles
discord_list_pinned_messagestool Lists the pinned messages of a channel, newest pin first.Networkoutside text
Lists the pinned messages of a channel, newest pin first.
discord_list_rolestool Lists all roles in a Discord server with their propertiesNetworkoutside text
Lists all roles in a Discord server with their properties
discord_list_serverstool Lists all Discord servers the bot is a member ofNetworkoutside text
Lists all Discord servers the bot is a member of
discord_logintool Logs in to Discord using the configured tokenNetworkoutside text
Logs in to Discord using the configured token
discord_pin_messagetool Pins a message to its channel. A channel can hold at most 50 pinned messages.Networkoutside text
Pins a message to its channel. A channel can hold at most 50 pinned messages.
discord_read_messagestool Retrieves messages from a Discord text channel. Supports date-based filtering via before/after/around params (accepts snowflake IDs or ISO 8601 dates).Networkoutside text
Retrieves messages from a Discord text channel. Supports date-based filtering via before/after/around params (accepts snowflake IDs or ISO 8601 dates).
discord_remove_channel_permissionstool Removes all permission overrides for a role or user on a channel or categoryNetworkoutside text
Removes all permission overrides for a role or user on a channel or category
discord_remove_reactiontool Removes a specific emoji reaction from a Discord messageNetworkoutside text
Removes a specific emoji reaction from a Discord message
discord_remove_roletool Removes a role from a member in a Discord serverNetworkoutside text
Removes a role from a member in a Discord server
discord_reply_to_forumtool Adds a reply to an existing forum post or threadNetworkoutside text
Adds a reply to an existing forum post or thread
discord_search_messagestool Searches for messages in a Discord serverNetworkoutside text
Searches for messages in a Discord server
discord_sendtool Sends a message to a specified Discord text channel. Optionally reply to another message by providing its message ID.Networkoutside text
Sends a message to a specified Discord text channel. Optionally reply to another message by providing its message ID.
discord_send_webhook_messagetool Sends a message to a Discord channel using a webhookNetworkoutside text
Sends a message to a Discord channel using a webhook
discord_set_channel_permissionstool Sets permission overrides for a role or user on a channel or categoryNetworkoutside text
Sets permission overrides for a role or user on a channel or category
discord_set_forum_tagstool Sets the available tags for a Discord forum channel. Replaces all existing tags.Networkoutside text
Sets the available tags for a Discord forum channel. Replaces all existing tags.
discord_unpin_messagetool Removes a message from its channel's pinned messages.Networkoutside text
Removes a message from its channel's pinned messages.
discord_update_forum_posttool Updates a forum post's title, applied tags, archived status, locked status, or pinned status. Tags can be specified by name or ID.Networkoutside text
Updates a forum post's title, applied tags, archived status, locked status, or pinned status. Tags can be specified by name or ID.
Text the model reads (47)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
(name computed at run time) tool
discord_create_category tool
Creates a new category in a Discord server.
discord_edit_category tool
Edits an existing Discord category (name and position).
discord_delete_category tool
Deletes a Discord category by ID.
discord_login tool
Logs in to Discord using the configured token
discord_send tool
Sends a message to a specified Discord text channel. Optionally reply to another message by providing its message ID.
discord_get_forum_channels tool
Lists all forum channels in a specified Discord server (guild)
discord_create_forum_post tool
Creates a new post in a Discord forum channel with optional tags
discord_get_forum_post tool
Retrieves details about a forum post including its messages
discord_list_forum_threads tool
Lists all threads (posts) in a Discord forum channel, including both active and archived threads
discord_reply_to_forum tool
Adds a reply to an existing forum post or thread
discord_create_text_channel tool
Creates a new text channel in a Discord server with an optional topic and parent category
discord_create_forum_channel tool
Creates a new forum channel in a Discord server, optionally under a category
discord_edit_channel tool
Edits a Discord channel's name, topic, parent category, or position
discord_delete_channel tool
Deletes a Discord channel with an optional reason
discord_read_messages tool
Retrieves messages from a Discord text channel. Supports date-based filtering via before/after/around params (accepts snowflake IDs or ISO 8601 dates).
discord_get_server_info tool
Retrieves detailed information about a Discord server including channels and member count
discord_add_reaction tool
Adds an emoji reaction to a specific Discord message
discord_add_multiple_reactions tool
Adds multiple emoji reactions to a Discord message at once
discord_remove_reaction tool
Removes a specific emoji reaction from a Discord message
discord_get_reaction_users tool
Lists the users who reacted with a specific emoji to a Discord message. Uses REST fetch and does not require Gateway intents. Returns up to 100 users per call.
discord_delete_forum_post tool
Deletes a forum post or thread with an optional reason
discord_get_forum_tags tool
Gets all available tags for a Discord forum channel, including tag IDs, names, and emoji
discord_set_forum_tags tool
Sets the available tags for a Discord forum channel. Replaces all existing tags.
discord_update_forum_post tool
Updates a forum post's title, applied tags, archived status, locked status, or pinned status. Tags can be specified by name or ID.
discord_edit_message tool
Edits a message previously sent by the bot. Only messages authored by the bot can be edited.
discord_delete_message tool
Deletes a specific message from a Discord text channel
discord_pin_message tool
Pins a message to its channel. A channel can hold at most 50 pinned messages.
discord_unpin_message tool
Removes a message from its channel's pinned messages.
discord_list_pinned_messages tool
Lists the pinned messages of a channel, newest pin first.
discord_create_webhook tool
Creates a new webhook for a Discord channel
discord_send_webhook_message tool
Sends a message to a Discord channel using a webhook
discord_edit_webhook tool
Edits an existing webhook for a Discord channel
discord_delete_webhook tool
Deletes an existing webhook for a Discord channel
discord_list_servers tool
Lists all Discord servers the bot is a member of
discord_search_messages tool
Searches for messages in a Discord server
discord_list_roles tool
Lists all roles in a Discord server with their properties
discord_create_role tool
Creates a new role in a Discord server
discord_edit_role tool
Edits an existing role in a Discord server
discord_delete_role tool
Deletes a role from a Discord server
discord_assign_role tool
Assigns a role to a member in a Discord server
discord_remove_role tool
Removes a role from a member in a Discord server
discord_list_members tool
Lists members in a Discord server with their roles
discord_get_member tool
Gets detailed information about a specific member in a Discord server
discord_create_voice_channel tool
Creates a new voice channel in a Discord server with an optional parent category
discord_set_channel_permissions tool
Sets permission overrides for a role or user on a channel or category
discord_remove_channel_permissions tool
Removes all permission overrides for a role or user on a channel or category
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 47 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 47 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 47 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 47 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 47 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 47 capabilities; 47 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 47 capabilities; 47 more call code the scanner could not follow, where it may happen
- Tools that call the network46 of 47 capabilities call the network; 1 more call code the scanner could not follow, where it may happen
Where the code is: 47 handlers in 2 files at commit aef9595e6fe5
src/app.ts(name computed at run time)src/server.tsdiscord_create_category, discord_edit_category, discord_delete_category, discord_login, discord_send, discord_get_forum_channels, discord_create_forum_post, discord_get_forum_post, discord_list_forum_threads, discord_reply_to_forum, discord_create_text_channel, discord_create_forum_channel +34
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.32.2
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 47 capabilities; 47 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.32.2 |
| Servers in the code | 2 (discord-mcp-server, MCP-Discord) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-05 |
| Signed releases | not checked yet |
Install it
For the server's own npm package mcp-discord. Pin a version ([email protected]) so an update cannot change the tools without you noticing.
Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"mcp-discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord"
]
}
}
}Cursor ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-discord": {
"command": "npx",
"args": [
"-y",
"mcp-discord"
]
}
}
}VS Code .vscode/mcp.json
{
"servers": {
"mcp-discord": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-discord"
]
}
}
}Claude Code terminal
claude mcp add mcp-discord -- npx -y mcp-discordWhere it is published
| npm package | mcp-discord |
|---|---|
| Downloads | 3 713 a month on npm |
| Listed in | 5 catalogs (awesome_tensorblock, github_search, glama, mcpservers_org, npm) |
| License | MIT |
| Created | 2025-03-25 |
| Topics | ai discord discord-bot mcp mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.