home / mcp / js reverse mcp server
Provides debugging and analysis tools for JavaScript in webpages, including script inspection, breakpoints, and runtime checks.
Configuration
View docs{
"mcpServers": {
"zhizhuodemao-js-reverse-mcp": {
"command": "node",
"args": [
"/你的路径/js-reverse-mcp/build/src/index.js"
]
}
}
}JS Reverse MCP lets your AI coding assistants debug and analyze JavaScript running in web pages. It provides script inspection, breakpoints, function tracing, runtime checks, network analysis, and event monitoring to help you understand and debug complex web code with an MCP client.
Set up the MCP server in your client and connect to a page you want to inspect. You can switch between pages, list loaded scripts, and locate the exact source even in minified code. Define breakpoints on specific URLs or texts, then pause execution to inspect call stacks and scope variables. Trace functions, hook internal modules, and step through code to see how data flows through your page.
Prerequisites: you need Node.js version 20.19 or newer, Google Chrome Stable, and Git.
1) Clone the MCP server repository and move into the project directory.
2) Install dependencies.
3) Build the project.
List all JavaScript scripts loaded on the page.
Fetch the source of a script, with support for line ranges or character offsets (useful for minified files).
Search a script for text and return exact line and column numbers.
Search across all loaded scripts for a string or regular expression.
Set a breakpoint at a specific URL and line number.
Automatically set a breakpoint by searching for code text (useful for minified code).
Remove an active breakpoint.
List all currently active breakpoints.
Get current pause status, stack trace, and scope variables.
Resume execution after a pause.
Pause execution.
Step over the next function call.
Step into the next function call.
Step out of the current function.
Evaluate an expression in the context of the paused call frame.
Hook a global function or object method and record calls and return values.
Remove a function hook.
List all active function hooks.
Trace arbitrary function calls, including internal module functions, with conditional breakpoints.
Get the JavaScript call stack that initiated a network request.
Set breakpoints on XHR/fetch requests.
Remove an XHR breakpoint.
Inspect a JavaScript object deeply.
Retrieve cookies, localStorage, and sessionStorage.
Monitor DOM events on elements or the window.
Stop event monitoring.
List open pages in the browser.
Choose a page as the debugging context.
Create a new page and navigate to a URL.
Navigate the current page.
Capture a screenshot of the page.
Obtain a DOM snapshot of the page.
Execute JavaScript within the page context.
Retrieve console messages from the page.
List network requests captured during the session.
Get details and response body of a network request.