vencord-mcp
Provides tools to read and interact with a running Discord client, including inspecting webpack modules, Flux stores, React props, gateway traffic (WebSocket frames), console output, and managing plugin patches.
Allows managing Vencord plugins and patches, including testing patch regexes against the running bundle, checking which patches have actually matched, reading plugin settings, and writing settings through Vencord's proxy.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@vencord-mcptest whether the patch find '"2026-08-video-guard"' is unique in the current build"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vencord-mcp
An MCP server that lets a coding agent read a running Discord client the way a plugin author reads it: stores, webpack modules, patches, React props, and the gateway traffic itself.
It talks to any Chromium started with --remote-debugging-port, so it works on Discord with
Vencord or Equicord injected, and most of it works on any Electron app with a minified
webpack bundle.
Why this exists
Two halves of this already existed separately, and neither was useful on its own.
There are several generic Electron and Chrome DevTools MCP servers. They take screenshots, read the console, and evaluate JavaScript, but they know nothing about webpack, Flux stores, or Vencord patches, so an agent using them spends its budget rediscovering the same boilerplate every session.
On the other side, Vencord Companion knows exactly the right things: whether a webpack find is unique, whether a patch's match compiles. But it is a VSCode extension, built for a human reading it in an editor.
Nothing connected the two. This does.
Related MCP server: instagit
What it changes
The normal loop for writing a plugin is: open devtools, hunt through a minified bundle, write a regex and hope, compile, restart Discord, find out. Each mistake costs a restart.
With these tools the loop closes in seconds, and more importantly the agent stops guessing.
test_patch answers "would this patch actually run" before anything is built.
capture_websocket shows what the server really sent instead of what the interface implied.
react_props recovers the name of a failure whose UI only shows a number.
Install
npm installRegister it with your MCP client. Most of them take a config block like this:
{
"mcpServers": {
"vencord": {
"command": "node",
"args": ["/absolute/path/to/vencord-mcp/src/index.js"]
}
}
}Clients that ship a CLI usually have a one-liner for the same thing, along the
lines of mcp add vencord -- node /absolute/path/to/vencord-mcp/src/index.js.
Then start Discord with the debugger open:
Discord.exe --remote-debugging-port=9223The port only listens on localhost, but it is a debugger: anything that can reach it can read your session. Close and reopen Discord normally when you are done.
Tools
Read-only unless marked otherwise.
Tool | What it answers |
| Is the client reachable, and which page do I attach to |
| Which plugins are enabled, started, patched, and which have a native side |
| Which patches never found their module and are doing nothing |
| Is the find unique, does the match hit, how many times, what does the replacement produce |
| What state exists at all |
| What does this store know, and what do its getters return right now |
| Call one method with arguments |
| Find a module by exported props or by the code it contains |
| Search every module source, with the module ids and surrounding code |
| Walk up from a DOM node and read the props holding an error or state |
| What did the server assign this account for an experiment |
| Record gateway and voice frames, decoded, heartbeats dropped |
| Record console output, optionally reloading first to catch startup |
| Plugin settings as the running client sees them |
| Writes. Change one setting through Vencord's own proxy |
| Writes. Send a Flux action, for behaviour with no exported method |
| Writes. Reload the renderer, the same as Ctrl+R |
| Escape hatch for anything above not covered |
Every tool takes port (default 9223) and an optional urlHint for when more than one page
target is open.
The three that are worth the install
test_patch runs the same check Vencord runs at startup, against the build that is
actually running. A find that matches no module means the patch silently never runs, and a
find that matches several means Vencord patches all of them. Both are invisible until the
plugin misbehaves in a way that looks like something else.
test_patch(find: '"2026-08-video-guard"', match: 'variations:\\{.{0,120}?\\}\\}', replace: 'variations:{}')
-> "find is unique and match hits exactly once"patch_status answers the question test_patch cannot: did it actually run. Vencord drops
a patch from its pending list once its module loads, so anything still listed never matched.
That is the failure that costs the most time, because the plugin loads, reports no error, and
quietly does nothing. Patches declared all stay listed forever by design and are reported
separately so they do not read as broken.
capture_websocket decodes Discord's voice opcodes by name: IDENTIFY, READY,
SESSION_DESCRIPTION, VIDEO, MEDIA_SINK_WANTS. Reading them is the difference between
"the video did not appear" and "the server offered ssrc 267, the client asked for it at full
quality, and no packets followed", which are different bugs with different fixes.
One caveat: the Network domain only records sockets it saw being created. A connection that
was already open when the capture started is reported as
(socket opened before capture) — the frames are still decoded, because their content
identifies the protocol, but the URL is unknown. Make the client reconnect during the window
to get it.
Notes
Discord ships a strict CSP that blocks eval. Every evaluation here sets
allowUnsafeEvalBlockedByCSP, which is the documented way for a debugger to run anyway;
without it every call fails with an unhelpful EvalError.
Each tool call opens its own debugger session and hangs up. Holding one open between calls would only create state to get out of sync.
Tests
node test/smoke.jsIt speaks the real protocol to the real server over stdio: initialize, list the tools, then exercise the live path against a Discord on port 9223 if one is running. A server that starts is not the same as a server that answers.
License
GPL-3.0-or-later, matching Vencord.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Vencord plugin that provides MCP server capabilities for inspecting Discord's internal state, executing JavaScript code, accessing Flux stores, discovering webpack modules, and inspecting DOM elements within Discord's context.1,270MIT
- AlicenseAqualityDmaintenanceAn MCP server that gives coding agents instant insight into any Git repository — no guessing, no hallucination.14618MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides native Discord tools for Claude Code, enabling bidirectional communication with remote agents or humans via the Discord REST API. It allows users to send messages, read channel history, and manage reactions directly from their local environment.6223MIT
- AlicenseAqualityAmaintenanceAn MCP server that empowers AI coding agents to work effectively with Minecraft mod development, providing static analysis of decompiled source code and runtime interaction with a running Minecraft instance.313913MIT
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mazxxy/vencord-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server