JS Reverse MCP
Continuous browser-side JavaScript debugging and evidence capture for AI coding assistants.
- Source repo
- zhizhuodemao/js-reverse-mcp
- Stars
- ★ 3.1k
- Last updated
- 3mo ago v4.0.5
- FARS reviewed
- Nov 07, 2026
- License
- Apache-2.0
- Primary language
- TypeScript
- FA score
- 72/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A security researcher or frontend analyst needs to find encryption, signing, or sensor logic inside minified scripts and break on matching source text.
- Not a fit if
- Teams needing a headless or fully hosted browser
- Users who cannot install Node.js 20.19+ and stable Chrome
- Anyone debugging sensitive pages without browser isolation
- Maintenance
- Commits in the last 6 monthslast commit 2026-09-03latest release v4.0.5 (2026-09-03)+2.7 ★/day over 7 days
- Source review
- 72/100 · Some gaps
What does this agent do, and when should you use it?
JS Reverse MCP is a JavaScript reverse-engineering MCP server that exposes headed Chrome debugging, breakpoints, network inspection, WebSocket analysis, and browser-state controls to AI coding assistants. Instead of mirroring Chrome DevTools menus, it packages Chrome DevTools Protocol and Patchright behavior into 24 tools designed for sequential agent decisions. Its default execution model uses the installed Google Chrome, a visible window, a persistent profile, and Patchright protocol-level stealth; an optional CloakBrowser mode adds source-level fingerprint patches for more heavily protected sites. Results can be returned through MCP or exported as script source, raw request data, and binary material for subsequent local analysis. It runs through npx or a locally built Node.js entry point and documents direct MCP setup for Claude Code, Codex, Cursor, and VS Code Copilot.
A workflow starts with new_page, then uses list_scripts, search_in_sources, get_script_source, and save_script_source to locate and preserve JavaScript. set_breakpoint_on_text and break_on_xhr create breakpoints; after execution pauses, get_paused_info reports call stacks and scope variables, while evaluate_script runs code in either the page or a paused call frame and step or pause_or_resume controls execution. For traffic analysis, list_network_requests indexes, inspects, or exports request material, get_request_initiator retrieves the JavaScript initiator stack, and get_websocket_messages groups connections and messages. clear_site_data removes cookies, origin storage, and sessionStorage for the current site, with an option to clear the global HTTP cache, so initialization and risk-control flows can be replayed. Additional tools select pages and frames, click visible elements, take screenshots, and inspect console messages; outputFile, filePath, and localFilePath parameters connect browser evidence with local files.
- A security researcher or frontend analyst needs to find encryption, signing, or sensor logic inside minified scripts and break on matching source text.
- A developer needs to trigger a page action and inspect runtime arguments, scope variables, call stacks, and nearby source at the pause point.
- A protocol analyst needs the initiator stack, headers, bodies, responses, or Set-Cookie data for selected XHR and Fetch requests.
- An engineer investigating a real-time web application needs to enumerate WebSocket connections, identify message patterns, and inspect individual frames.
- A researcher studying cookie or risk-control initialization needs to clear site state, reload repeatedly, and export the decisive requests.
- A debugger blocked by automation detection needs Patchright stealth by default and an optional CloakBrowser fingerprint-patching mode for harder targets.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx cloakbrowser install
- Runtime
- Node.js 20.19
How do you install or deploy this agent?
The documented runtime is Node.js 20.19 or newer plus the stable release of Google Chrome. The standard server setup does not require API credentials. The shortest installation path is an npx-backed MCP configuration:
{
"mcpServers": {
"js-reverse": {
"command": "npx",
"args": ["js-reverse-mcp"]
}
}
}Register it in Claude Code with:
claude mcp add js-reverse npx js-reverse-mcpFor Codex, run:
codex mcp add js-reverse -- npx js-reverse-mcpA local source installation is also documented:
git clone https://github.com/zhizhuodemao/js-reverse-mcp.git
cd js-reverse-mcp
npm install
npm run buildPoint the MCP client at the resulting Node.js entry point:
{
"mcpServers": {
"js-reverse": {
"command": "node",
"args": ["/your/path/js-reverse-mcp/build/src/index.js"]
}
}
}For --cloak, pre-download the optional browser binary, which is approximately 200 MB:
npx cloakbrowser installThen configure the MCP arguments as ["js-reverse-mcp", "--cloak"].
How do you use this agent?
After the MCP server starts, call new_page with the target URL. Initial navigation deliberately keeps CDP quiet, so a complete traffic capture requires calling list_network_requests to activate collectors, running navigate_page(type="reload"), and listing the requests again. Inspect a key request by reqid or supply outputFile to export raw headers, bodies, or query data. For script work, proceed through list_scripts, search_in_sources, and set_breakpoint_on_text; trigger the relevant page behavior, then use get_paused_info, evaluate_script, and step after the breakpoint is hit. To replay cookie or risk-control initialization, run clear_site_data(confirm=true), reload, and export the requests that set cookies or submit sensor data. In production or shared environments, pass one or more --allowedRoots options to constrain host-file access.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- data-flow disclosure
What are this agent's strengths and limitations?
- Its 24 tools span navigation, source discovery, breakpoint execution, network traffic, WebSockets, console output, and site state, supporting an end-to-end debugging loop.
- Evaluation inside paused call frames, scope inspection, and step control make it substantially more suitable for runtime analysis than page automation alone.
- Large scripts, raw traffic artifacts, and binary results can be written to local files instead of consuming the entire model context.
- Patchright protocol-level stealth and optional CloakBrowser source-level patches provide two distinct anti-detection layers.
- A headed persistent profile retains login state, while
--isolatedprovides a disposable clean session when required.
- Adoption requires Node.js 20.19+ and stable Chrome; the default deployment is not a browserless or purely hosted service.
- Cloak mode downloads an approximately 200 MB binary and uses custom Chromium without Google services, the Web Store, or sync.
- Because the first navigation keeps Network and Debugger domains quiet, complete captures normally require collector activation followed by a reload.
- Host-file access is unrestricted when
--allowedRootsis omitted, so operators must configure the boundary themselves. - The server can inspect, debug, and modify browser data, making unisolated use on sensitive pages inappropriate.
How does this agent compare with similar options?
The default mode combines the installed Google Chrome with Patchright protocol-level stealth and retains access to Chrome extensions, sync, and the Web Store. --cloak switches to a separate profile and custom Chromium with C++ fingerprint patches, covering more fingerprint surfaces at the cost of an approximately 200 MB download and no Google services or Web Store. The documented guidance is to enable CloakBrowser only when the default path remains blocked.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| JS Reverse MCP This agent | 72 · Some gaps | MCP serverFree | ★ 3.1k | 3mo ago | TypeScript | Codex · Claude Code |
| Anything Analyzer | 65 · Some gaps | — | ★ 3.9k | 17d ago | TypeScript | OpenAI API · Claude API |
| BrowserTools MCP | 75 · Good | — | ★ 7.3k | 1mo ago | TypeScript | Claude Code |
| bdg Browser Debugger | 73 · Some gaps | CLIFree | ★ 187 | 6d ago | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README documents --allowedRoots for restricting local file access, and the supplied tests cover path escapes and symlink rejection. SERVER_INSTRUCTIONS require explicit user authorization before confirm=true for code execution, clicks, deletion of state or evidence, and breakpoint removal. Unrestricted file access remains the default without configured roots; the server also retains login state and can modify browser data. The sample does not show every tool implementation, so this is not a full score.
Node version gates, pinned dependencies, structured errors, some recovery guidance, and CI/presubmit checks have direct evidence. Browser and protocol state still have lifecycle limits, and the packet does not cover every error path or dependency availability strategy, supporting moderate scores.
The documentation covers scripts, breakpoints, HTTP/WebSocket, cookies, replay, multiple MCP clients, default Chrome, optional Cloak, isolated profiles, and CDP connection boundaries. Workflows are explicit but presume authorized debugging, and environment choices remain limited.
The README is well organized and provides installation, client configuration, workflow examples, troubleshooting, limitations, and an Apache-2.0 license. Package metadata and CI give versioning and maintenance-process evidence. Changelog detail and named maintenance or support responsibility are thin in the sample.
Concise listings, detail/export flows, ID lifetime guidance, and structured errors support downstream agent steps. Purpose-built source search, debugging, request tracing, and replay add clear value over a generic DevTools mapping. Persistent browser operation, logging choices, anti-detection dependencies, and file-access configuration add setup and operating cost.
README claims about tools and safety boundaries are traceable, and source instructions, package metadata, CI, and supplied tests corroborate some of them. Anti-detection effectiveness, performance, and several maintenance claims remain project assertions; static evidence cannot verify runtime outcomes.
- The server can read, debug, and modify browser data; persistent profiles may contain logged-in sessions.
- Without --allowedRoots, local file access is unrestricted. Configure dedicated allowed directories in shared or production environments and avoid DEBUG=*.
- Anti-detection effectiveness and third-party browser component behavior are documented claims; this static review did not execute or verify them.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Full Changelog: https://github.com/zhizhuodemao/js-reverse-mcp/compare/v4.0.4...v4.0.5View on GitHub ↗ -
Release notes excerpt
Full Changelog: https://github.com/zhizhuodemao/js-reverse-mcp/compare/v4.0.2...v4.0.3View on GitHub ↗ -
Release notes excerpt
Full Changelog: https://github.com/zhizhuodemao/js-reverse-mcp/compare/v4.0.1...v4.0.2View on GitHub ↗
FAQ
Does normal operation require an API key or paid model endpoint?
Why is the first page load missing some network requests?
list_network_requests to activate the collectors, reload with navigate_page(type="reload"), and then list the requests again.When should I use --cloak?
--cloak only if fingerprint defenses such as Cloudflare Turnstile, DataDome, or FingerprintJS still block the session; --isolated can first rule out contaminated profile state.Does it preserve authenticated sessions?
--isolated uses a temporary user-data directory that is removed on shutdown, while CloakBrowser has its own physically separate persistent profile.How can host-file permissions be constrained?
--allowedRoots directories. The server resolves real paths, rejects symlink escapes, and also blocks file:, view-source:file:, and filesystem:file: pages while that restriction is active.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.