camoufox-reverse-mcp

camoufox-reverse-mcp

An anti-detection browser MCP server designed for JavaScript reverse engineering through the Camoufox engine. It enables AI assistants to perform dynamic debugging, function hooking, and network interception while bypassing sophisticated bot detection mechanisms.

Category
Visit Server

README

camoufox-reverse-mcp

English | 中文

Anti-detection browser MCP server for JavaScript reverse engineering.

An MCP (Model Context Protocol) server that gives AI coding assistants (Claude Code, Cursor, Cline, etc.) the ability to perform JavaScript reverse engineering through the Camoufox anti-detection browser — including API parameter analysis, JS source analysis, dynamic debugging, function hooking, network interception, and cookie/storage management.

Why Camoufox?

Feature chrome-devtools-mcp camoufox-reverse-mcp
Browser Engine Chrome (Puppeteer) Firefox (Camoufox)
Anti-Detection None C++ engine-level fingerprint spoofing
Debug Capability Limited (no breakpoints) Playwright + JS Hook

Core Advantages:

  • Camoufox modifies fingerprint information at the C++ engine level, not JS patches
  • Juggler protocol sandbox isolation makes Playwright completely undetectable by page JS
  • BrowserForge generates fingerprints based on real-world traffic distribution
  • Works on sites with strong bot detection: Rui Shu, GeeTest, Cloudflare, etc.

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 configure camoufox-reverse-mcp and refer to this MCP for related operations: https://github.com/WhiteNightShadow/camoufox-reverse-mcp

The AI will automatically clone, install dependencies, and configure the MCP server.

Option 2: Manual Installation

1. Clone the repository

git clone https://github.com/WhiteNightShadow/camoufox-reverse-mcp.git
cd camoufox-reverse-mcp

2. Install dependencies

pip install -e .

Or with uv:

uv pip install -e .

3. Configure your AI tool

Add the MCP server config to your tool's configuration file (see "Client Configuration" below).


Usage

As MCP Server (stdio)

python -m camoufox_reverse_mcp

With options:

python -m camoufox_reverse_mcp \
  --proxy http://127.0.0.1:7890 \
  --geoip \
  --humanize \
  --os windows

CLI Options

Option Description Default
--proxy Proxy server URL None
--headless Headless mode false
--os OS fingerprint (windows/macos/linux) windows
--geoip Infer geolocation from proxy IP false
--humanize Humanized mouse movement false
--block-images Block image loading false
--block-webrtc Block WebRTC false

Client Configuration

<details> <summary><b>Cursor (.cursor/mcp.json)</b></summary>

{
  "mcpServers": {
    "camoufox-reverse": {
      "command": "python",
      "args": ["-m", "camoufox_reverse_mcp"]
    }
  }
}

</details>

<details> <summary><b>Claude Code</b></summary>

{
  "mcpServers": {
    "camoufox-reverse": {
      "command": "python",
      "args": ["-m", "camoufox_reverse_mcp", "--headless"]
    }
  }
}

</details>

<details> <summary><b>Claude Code (with proxy)</b></summary>

{
  "mcpServers": {
    "camoufox-reverse": {
      "command": "python",
      "args": [
        "-m", "camoufox_reverse_mcp",
        "--proxy", "http://127.0.0.1:7890",
        "--geoip",
        "--humanize"
      ]
    }
  }
}

</details>


Available Tools (44)

Navigation & Page

  • launch_browser — Launch Camoufox with anti-detection config
  • close_browser — Close browser and release resources
  • navigate — Navigate to URL
  • reload / go_back — Reload / go back
  • take_screenshot / take_snapshot — Screenshot / accessibility tree
  • click / type_text — Click / type into elements
  • wait_for — Wait for element or URL pattern
  • get_page_info — Get current page info

Script Analysis (Reverse Engineering Core)

  • list_scripts — List all loaded JS scripts
  • get_script_source — Get full JS source code
  • search_code — Search keyword across all scripts
  • save_script — Save JS file locally
  • get_page_html — Get page HTML

Debugging (Reverse Engineering Core)

  • evaluate_js — Execute arbitrary JS in page context
  • evaluate_js_handle — Execute JS and inspect complex objects
  • add_init_script — Inject scripts that run before page JS
  • set_breakpoint_via_hook — Set pseudo-breakpoints via JS hooks
  • get_breakpoint_data — Get captured breakpoint data
  • get_console_logs — Get page console output

Hooking (Reverse Engineering Core)

  • trace_function — Trace function calls without pausing
  • get_trace_data — Get collected trace data
  • hook_function — Inject custom hook code (before/after/replace)
  • inject_hook_preset — One-click preset hooks (xhr/fetch/crypto/websocket/debugger_bypass)
  • remove_hooks — Remove all hooks

Network Analysis (Reverse Engineering Core)

  • start_network_capture / stop_network_capture — Capture network traffic
  • list_network_requests — List captured requests with filters
  • get_network_request — Get full request details
  • get_request_initiator — Get JS call stack that initiated a request
  • intercept_request — Intercept: log / block / modify / mock
  • stop_intercept — Stop interception

Storage Management

  • get_cookies / set_cookies / delete_cookies — Cookie management
  • get_storage / set_storage — localStorage / sessionStorage
  • export_state / import_state — Save / restore browser state

Fingerprint & Anti-Detection

  • get_fingerprint_info — Inspect current browser fingerprint
  • check_detection — Test anti-detection on bot detection sites
  • bypass_debugger_trap — Bypass anti-debugging traps

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured