WhiteNightShadow/camoufox-reverse-mcp
About
🔧 Anti-detection browser MCP Server | 39 JS reverse-engineering tools + JSVMP fingerprint tracing in the C++ engine layer
Security & PrivacyMeasured star growth
- in 24h
- +1
- in 7 days
- +7
- in 15 days
- +23
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_en.md
Originalcamoufox-reverse-mcp
An MCP server built on the Camoufox anti-detection browser, designed for JavaScript reverse engineering. AI coding assistants (Claude Code, Cursor, Cline, etc.) use it to analyze API parameters and JS files, hook functions, intercept network traffic, investigate JSVMP, and verify signing code offline.
Tool reference | JSVMP playbook | General capture | Changelog
Features
- Anti-detection browser: Camoufox changes fingerprints in C++ rather than through page-level JS patches, and BrowserForge generates them from real-world traffic distributions.
- Runtime analysis: network capture, script search, function hooks and JS execution. Hooks and JS execution can target the main world and specific frames.
- JSVMP investigation: runtime probes and source instrumentation. With the custom browser build, property access can also be traced in native Gecko code without rewriting page JS.
- Verifiable results: check a signer offline against samples and find the first differing character. Captured requests can be compared and exported.
Before You Use It
- Use it only on targets you own or are authorized to test.
- MCP clients can read and change browser data, including cookies and local storage. Do not sign in to accounts you do not want the client to reach.
- Anti-detection does not mean undetectable. Pages can still observe hooks, environment differences and timing, so verify each site with real samples.
- Engine tracing (
enable_trace=True) temporarily disables the Firefox content sandbox. Normal launches are unaffected.
Requirements
- Python 3.10 or later on macOS, Linux or Windows
- An MCP client with stdio support. Tool schemas work with strict providers such as Moonshot/Kimi.
- The Camoufox browser, about 1.3 GB to download and about 2.5 GB unpacked on macOS
Quick Start
Option 1: Install via AI Chat (Recommended)
Paste the following into your AI coding tool's chat (Cursor / Claude Code / Codex, etc.):
Please install this MCP tool: camoufox-reverse-mcp
Project URL: https://github.com/WhiteNightShadow/camoufox-reverse-mcp
The AI will automatically clone, install dependencies, and configure the MCP server.
Option 2: Manual Installation
Use this if you already have a Python environment or want to change the code.
git clone https://github.com/WhiteNightShadow/camoufox-reverse-mcp.git
cd camoufox-reverse-mcp
pip install -e .
python -m camoufox fetch
The last command downloads the browser. If you skip it, the first launch_browser downloads it and returns only when that finishes, about 4 minutes in our test, so your client may time out first.
Add this to your client's MCP configuration, such as .cursor/mcp.json for Cursor or a project .mcp.json for Claude Code:
{
"mcpServers": {
"camoufox-reverse": {
"command": "python",
"args": ["-m", "camoufox_reverse_mcp"]
}
}
}
python must be the interpreter you installed into.
Option 3: uvx (no clone, pin a version)
Install uv and git first, then run these once in a terminal:
uvx --from "git+https://github.com/WhiteNightShadow/[email protected]" camoufox-reverse-mcp --version
uvx --from "git+https://github.com/WhiteNightShadow/[email protected]" camoufox fetch
The first command downloads the dependencies and confirms the version, which keeps your client from timing out on the first start. The second downloads the browser into your user cache, so clearing uvx environments does not remove it.
Add this to your client's MCP configuration:
{
"mcpServers": {
"camoufox-reverse": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/WhiteNightShadow/[email protected]",
"camoufox-reverse-mcp"
]
}
}
}
Claude Code can add it with one command:
claude mcp add --scope user camoufox-reverse -- uvx --from "git+https://github.com/WhiteNightShadow/[email protected]" camoufox-reverse-mcp
Updating and persistent installs
Updating: find the latest tag on Releases, change @v1.13.1 in the configuration to it, and restart your client. A tag never moves on its own. Without @v1.13.1, every start follows the latest commit on main, which is not recommended for daily use. If check_environment reports a missing browser, run camoufox fetch again with the new tag.
Persistent install: set command to camoufox-reverse-mcp and leave out args. Fetch the browser with the uvx ... camoufox fetch command above, because both setups share the same browser.
uv tool install "git+https://github.com/WhiteNightShadow/[email protected]"
uv tool install --force "git+https://github.com/WhiteNightShadow/camoufox-reverse-mcp.git@<new-tag>"
The second command updates it. uv tool upgrade does not move a pinned tag, so reinstall with --force.
Check the Install
Restart your client, then enter:
Use camoufox-reverse to open https://example.com, capture the network requests, and tell me the page title and how many requests were made
The client should launch the browser and return the title Example Domain. If something fails, ask the AI to call check_environment, which reports the state of the dependencies and the browser.
Tools
43 tools in 10 groups. See the tool reference for details and usage scenarios.
| Group | Count | What it covers |
|---|---|---|
| Browser Control | 10 | Launch, navigate, screenshot, snapshot, click, type |
| JS Execution & Debugging | 2 | Run JS in the isolated context or the page main world, record replayable sessions |
| Script Analysis | 2 | List, read and save scripts, search code |
| Hooking & Tracing | 5 | Function hooks and traces, preset hooks, console logs |
| Network Analysis | 9 | Capture, intercept, initiator stacks, compare, export |
| JSVMP Reverse Analysis | 4 | Runtime probes, source instrumentation, state-level capture, environment fingerprints and bundles |
| Firefox RDP Debugging | 1 | Real breakpoints, stepping, call stacks, scopes, paused-frame evaluation, request breakpoints (native Firefox RDP, no CDP needed) |
| Cookies & Storage | 4 | Cookies, storage, browser state import and export |
| Verification & Environment | 3 | Offline signer checks, self-check, residual cleanup |
| Native PropertyTracer | 3 | Native Gecko property tracing, needs the custom browser build |
Server Options
Put them after the start command. With uvx, put them after camoufox-reverse-mcp:
"args": ["-m", "camoufox_reverse_mcp", "--headless", "--proxy", "http://127.0.0.1:7890"]
| Option | Description |
|---|---|
--headless |
Run headless |
--proxy <url> |
Proxy URL, for example http://127.0.0.1:7890 |
--geoip |
Infer geolocation from the proxy |
--humanize |
Humanize mouse movement |
--os <system> |
OS fingerprint to emulate: auto, windows, macos or linux. Default auto |
--locale <locale> |
Browser locale, for example en-US. Default auto |
--block-images |
Do not load images |
--block-webrtc |
Block WebRTC |
--version |
Print the version and exit |
Note: Arguments passed to
launch_browsertake priority. Anything left out uses these options.
Documentation
| Document | Contents |
|---|---|
| Tool reference | All tools, usage scenarios, architecture |
| JSVMP playbook (Chinese) | Anti-bot type identification and workflow |
| General capture (Chinese) | Capture behavior, limits and examples |
| Real source validation (Chinese) | Hands-on records with real upstream source |
| Research and validation (Chinese) | Public approaches compared and agent validation method |
Changelog
- v1.13.1 (2026-11-25):
list_network_requests(andwait_forrequest summaries) no longer truncatesurlsilently — long URLs end with…and exposeurl_truncated/url_length, so a cut query tail can no longer be read as a missing parameter; the docstring now requiresget_network_requestfor the complete URL before reading parameters, signatures or tokens. Notes - v1.13.0 (2026-11-24): adds
extract_scriptto extractfetch+evalSDK payloads from captured JSON responses to disk (43 tools in total);evaluate_jsgainsoutput_file(UTF-8 / Base64 atomic evidence persistence);cookies(action="header")exports RFC 6265-scopedCookieheaders with0600file output;wait_foraddsmode="request"for settled captured requests; fixes dead-sessionalready_runningwedges andrdp_debuggerinitial-tab races. Notes - v1.12.0 (2026-11-20):
instrumentationgainsinjectfor source-level regex insertion (modern JS validation, literal/template guards andcaselabel shifting);intercept_requestacceptsmock_response.body_filere-read per request;rdp_debuggersupportsurl_pattern+findpattern breakpoints across reloads. Notes - v1.11.1 (2026-11-15): skips the two POSIX Unix-socket path tests on Windows CI and aligns release note validation with the automated release workflow. Notes
- v1.11.0 (2026-11-15): adds
rdp_debuggerover Firefox's native RDP for real breakpoints, stepping, call stacks, scopes, paused-frame evaluation and pre-request breakpoints; shareslaunch_browserfingerprint/proxy/active-build settings and supports 0700 Unix sockets on macOS/Linux (42 tools in total). Notes
See CHANGELOG_en.md for every version.
Community Contributors
- @tuntun1337 — strict JSON Schema compatibility
- @Code-xy — Windows engine-trace diagnosis and validation
- @Moojing-jianchuan — JSVMP execution-site requirements and analysis materials,
tap_stage_callsstage taps andinjectregex insertion forinstrumentation,stage_breakandtrace_session,body_filemocks forintercept_request,extract_scriptpayload extraction and generic evidence I/O (evaluate_js/cookies/wait_for),list_network_requestsURL truncation observability, stale-session recovery andrdp_debuggerFirefox RDP debugging, and the #19–#25 reports addressed in v1.10.0 - @dsaw1111 — Camoufox 152 version-gap and PropertyTracer upgrade request
- @chung1912 —
uvxinstall suggestion anduv tool installsetup - @tunguyen1993 —
script_urlescaping report and fix forhook_jsvmp_interpreter
Feedback / Contact
Hit a bug, want a new hook preset, or just want to chat about JS reverse engineering? Add me on WeChat:
- WeChat ID:
han8888v8888
Please note "camoufox-reverse" in your friend request.
License
Explore related projects
Loading…