JS Reverse MCP

Continuous browser-side JavaScript debugging and evidence capture for AI coding assistants.

Stars
★ 3.1k
Last updated
3mo ago v4.0.5
FARS reviewed
Nov 07, 2026
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
MCP serverCLI
Works with
Universal · cross-platformCodex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.js 20.19 or newerGoogle Chrome stableShell / CLINetwork accessLocal filesystemMCP Server
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.

  1. A security researcher or frontend analyst needs to find encryption, signing, or sensor logic inside minified scripts and break on matching source text.
  2. A developer needs to trigger a page action and inspect runtime arguments, scope variables, call stacks, and nearby source at the pause point.
  3. A protocol analyst needs the initiator stack, headers, bodies, responses, or Set-Cookie data for selected XHR and Fetch requests.
  4. An engineer investigating a real-time web application needs to enumerate WebSocket connections, identify message patterns, and inspect individual frames.
  5. A researcher studying cookie or risk-control initialization needs to clear site state, reload repeatedly, and export the decisive requests.
  6. 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-mcp

For Codex, run:

codex mcp add js-reverse -- npx js-reverse-mcp

A local source installation is also documented:

git clone https://github.com/zhizhuodemao/js-reverse-mcp.git
cd js-reverse-mcp
npm install
npm run build

Point 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 install

Then 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

FARS trust-control audit

Verified present in source (3/3)
  • data-flow disclosure

What are this agent's strengths and limitations?

Pros
  • 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 --isolated provides a disposable clean session when required.
Limitations
  • 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 --allowedRoots is 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?

FollowAgents source review · FARS-2.1
Some gaps
72/ 100 5-point scale 3.6 / 5
Trust 17/29
Reliability 9/14
Adaptability 15/18
Convention 14/18
Effectiveness 12/13
Verifiability 5/8
Why each dimension lost points
Trust17 / 29 · 2.9/5

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.

Reliability9 / 14 · 3.2/5

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.

Adaptability15 / 18 · 4.2/5

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.

Convention14 / 18 · 3.9/5

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.

Effectiveness12 / 13 · 4.6/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 07, 2026 Reviewed revision bf7dc506e874
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/js-reverse-mcp.svg)](https://followagents.com/en/agents/js-reverse-mcp)
<a href="https://followagents.com/en/agents/js-reverse-mcp"><img src="https://followagents.com/badge/js-reverse-mcp.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v4.0.5
    Release notes excerpt
    Full Changelog: https://github.com/zhizhuodemao/js-reverse-mcp/compare/v4.0.4...v4.0.5
    View on GitHub ↗
  2. v4.0.3
    Release notes excerpt
    Full Changelog: https://github.com/zhizhuodemao/js-reverse-mcp/compare/v4.0.2...v4.0.3
    View on GitHub ↗
  3. v4.0.2
    Release notes excerpt
    Full Changelog: https://github.com/zhizhuodemao/js-reverse-mcp/compare/v4.0.1...v4.0.2
    View on GitHub ↗

FAQ

Does normal operation require an API key or paid model endpoint?
No API credential is documented for running the MCP server itself. An OpenAI-compatible endpoint, model name, and potentially an API key are only involved when maintainers explicitly opt into the real-model routing evaluation, which may incur charges.
Why is the first page load missing some network requests?
Navigation intentionally starts with CDP domains quiet. Call list_network_requests to activate the collectors, reload with navigate_page(type="reload"), and then list the requests again.
When should I use --cloak?
Start with the default Patchright mode. Enable --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?
The default profile retains cookies and localStorage across 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?
Pass one or more --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.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts