█

AI/TLDR

Buy me a coffee
Buy me a coffee

JS Reverse MCP

An MCP server that gives coding agents a headed Chrome debugger: script search, text-based breakpoints, paused-frame evaluation, network initiator stacks and WebSocket analysis

Computer & Browser UseOpen source
Latest
v4.0.5
Updated
3 Sep 2026
Language
TypeScript
License
Apache-2.0

What's new

v4.0.53 Sep 2026

Tagged release published to npm; its release commit describes it as audit fixes.

IN SHORT

What is JS Reverse MCP?

JS Reverse MCP is an open-source Model Context Protocol server that lets coding assistants such as Claude Code, Codex, Cursor and VS Code Copilot debug JavaScript in real web pages the way an analyst would. It sits in the Computer & Browser Use category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Apache-2.0.

Updated Markdown version ↗

Overview

JS Reverse MCP is an open-source Model Context Protocol server that lets coding assistants such as Claude Code, Codex, Cursor and VS Code Copilot debug JavaScript in real web pages the way an analyst would. The agent can open a page, list and search its loaded scripts, save their source, set breakpoints, trigger behaviour, inspect the paused call stack and scope variables, and trace which code issued a given network request.

Its README stresses that it does not simply expose raw Chrome DevTools APIs to the model. Its 24 tools are shaped as agent primitives: list output stays short, detail output is bounded, and large results such as minified scripts, raw request bodies or binary responses are written to local files through `outputFile` and `save_script_source` instead of being stuffed into the chat context. `evaluate_script` can run code in the page or in a paused call frame and take one local file as input, so the agent moves between browser state, network captures and its own workspace.

By default it drives your installed Google Chrome, headed and with a persistent profile, so logins survive across sessions; `--isolated` gives a throwaway profile and `--browserUrl` attaches to a Chrome already running with a CDP endpoint. The browser layer is a Patchright fork maintained for the project, and an optional `--cloak` mode swaps in the CloakBrowser Chromium build; the README describes these anti-detection layers as a supporting capability so the debugger can reach the page, and says it does not claim automation is undetectable. The project is written in TypeScript, Apache-2.0 licensed and published on npm.

What it does

  • Script analysis: list every loaded script, search all sources by string or regex, fetch a line range, or save full (auto-formatted) source to a local file
  • Breakpoints that work on minified code: `set_breakpoint_on_text` places one by searching code text, and `break_on_xhr` pauses on fetch/XHR URLs
  • Paused-context inspection: call stack and scope variables via `get_paused_info`, `step` over/into/out with source context, and `evaluate_script` inside the paused frame
  • Network and WebSocket analysis: request initiator call stacks, Set-Cookie detection, raw header/body export, and grouped WebSocket messages
  • Replayable state: `clear_site_data` resets the current site's cookies, storage and sessionStorage so cookie-setting and initialisation flows can be reproduced
  • Guard rails for local files: repeatable `--allowedRoots` limits which directories the agent may read or write, with symlink escapes rejected

Getting started

JS Reverse MCP needs Node.js v20.19 or later and Chrome stable. It runs through npx, so there is nothing to install beyond registering it with your MCP client.

Register the server with your client

For any MCP client, add an `npx js-reverse-mcp` entry to its configuration. Claude Code, Codex and VS Code have one-line commands; in Cursor use Settings → MCP → New MCP Server with the same JSON.

bashbash
{
  "mcpServers": {
    "js-reverse": {
      "command": "npx",
      "args": ["js-reverse-mcp"]
    }
  }
}

# Claude Code
claude mcp add js-reverse npx js-reverse-mcp

# Codex
codex mcp add js-reverse -- npx js-reverse-mcp

# VS Code Copilot
code --add-mcp '{"name":"js-reverse","command":"npx","args":["js-reverse-mcp"]}'

Walk a debugging loop in plain language

Ask the agent to open a page and work through it. The README's basic workflow: list scripts, search for the function you care about, break on it, then trigger the action and inspect what the breakpoint caught.

texttext
Open https://example.com and list all loaded JS scripts
Search all scripts for code containing "encrypt"
Set a breakpoint at the entry of the encryption function
Trigger an action on the page, then inspect arguments, call stack and scope variables when the breakpoint hits

Capture the full request list

The first page load deliberately runs without CDP network collection. To see every request, open the page, activate the collectors, reload, then list again and export the requests you need.

texttext
1. Open the target page with new_page
2. Call list_network_requests to activate collectors
3. Reload with navigate_page(type="reload")
4. Call list_network_requests again to inspect the complete request list
5. Export key reqids with outputFile when exact material is needed

Choose a profile and restrict file access

All flags are optional. `--isolated` uses a temporary profile, `--browserUrl` attaches to a running Chrome (start it with `--remote-debugging-port=9222`), and `--allowedRoots` pins the directories the agent may touch; without it, local-file access is unrestricted and startup prints a warning.

jsonjson
{
  "mcpServers": {
    "js-reverse": {
      "command": "npx",
      "args": ["js-reverse-mcp", "--browserUrl", "http://127.0.0.1:9222"]
    }
  }
}

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Have an agent trace how a web app you are authorised to inspect builds a signed or encoded request, from the network call back through its initiator stack to the function that computes it
  • Debug your own minified production bundle by breaking on code text and inspecting scope variables when no source maps are available
  • Analyse a WebSocket protocol your front end speaks, grouping messages by type before writing a client or test
  • Reproduce a cookie or session-initialisation flow repeatedly by clearing site data, reloading and exporting the requests involved

How JS Reverse MCP compares

JS Reverse MCP alongside other open-source computer & browser use tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Browser Use★ 122kA Python library that lets agents control a real browser to read pages and complete tasks online from natural-language instructions.
Open Interpreter★ 69kA lightweight coding agent that runs code on your own computer to carry out tasks from natural-language requests.
Chrome DevTools MCP★ 59.9kThe Chrome team's MCP server that lets a coding agent control and inspect a live Chrome browser — performance traces, network requests, console messages and Puppeteer-backed automation.
agent-browser★ 54.8kVercel Labs' native Rust browser automation CLI for AI agents: accessibility-tree snapshots with element refs, a per-session CDP daemon, an MCP server and built-in agent skills.
UI-TARS Desktop★ 39.6kByteDance's multimodal agent stack and desktop app that controls a computer's graphical interface using vision-language models.
CloakBrowser★ 34.8kStealth Chromium build with source-level fingerprint patches that drops into Playwright or Puppeteer code, so agents and scrapers browse without tripping bot detection.
Cua★ 33.4kInfrastructure for computer-use agents, providing sandboxes and SDKs that let agents control full desktops on macOS, Linux, and Windows.
JS Reverse MCP★ 3.1kAn MCP server that gives coding agents a headed Chrome debugger: script search, text-based breakpoints, paused-frame evaluation, network initiator stacks and WebSocket analysis