camofox-mcp

camofox-mcp

Anti-detection browser automation MCP server. 18 tools wrapping CamoFox REST API with stealth fingerprinting that passes bot detection.

Category
Visit Server

README

🦊 CamoFox MCP

The anti-detection browser MCP server for AI agents. Navigate, interact, and automate the web without getting blocked.

CI npm version License: MIT TypeScript Node.js MCP


Why CamoFox MCP?

AI agents using Playwright get blocked constantly. CAPTCHAs, fingerprint detection, IP bans — the web fights back against automation.

CamoFox MCP wraps the CamoFox anti-detection browser as an MCP server, giving your AI agent:

  • šŸ›”ļø Anti-detection fingerprinting — Each tab gets a unique, human-like browser fingerprint
  • ⚔ Fast, token-efficient snapshots — Accessibility tree snapshots use 90% fewer tokens than screenshots
  • šŸ” Built-in search — Search Google, YouTube, Amazon + 11 more engines without getting blocked
  • šŸŖ Session persistence — Import cookies, maintain login state across interactions
  • šŸŽÆ CSS selector fallback — Target elements even when accessibility refs aren't available

CamoFox MCP vs Playwright MCP

Feature CamoFox MCP Playwright MCP
Anti-detection fingerprinting āœ… āŒ
Passes bot detection tests āœ… āŒ
Search engine macros (14 engines) āœ… āŒ
Accessibility snapshots āœ… āœ…
Cookie import/export āœ… Limited
Headless support āœ… āœ…
Setup complexity Medium Easy
Token efficiency High High

CamoFox MCP vs Other Camoufox MCPs

Feature CamoFox MCP whit3rabbit/camoufox-mcp baixianger/camoufox-mcp
Tools 27 1 33
Architecture REST API client Direct browser Direct browser
Session persistence āœ… āŒ (destroyed per request) āœ…
Token efficiency High (snapshots) Low (raw HTML) High (snapshots)
Search macros āœ… (14 engines) āŒ āŒ
CSS selector fallback āœ… āŒ āŒ
Active maintenance āœ… āŒ (stale 8mo) āœ…
Press key support āœ… āŒ āœ…

Quick Start

1. Install CamoFox Browser

Download from CamoFox releases and start:

./camofox-browser   # Starts on port 9377

2. Configure MCP Client

VS Code / Cursor (Recommended)

Add to your MCP settings (settings.json or .vscode/mcp.json):

{
  "servers": {
    "camofox": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "camofox-mcp@latest"],
      "env": {
        "CAMOFOX_URL": "http://localhost:9377"
      }
    }
  }
}

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "camofox": {
      "command": "npx",
      "args": ["-y", "camofox-mcp@latest"],
      "env": {
        "CAMOFOX_URL": "http://localhost:9377"
      }
    }
  }
}

From Source (Development)

git clone https://github.com/redf0x1/camofox-mcp.git
cd camofox-mcp
npm install && npm run build

Then configure:

{
  "servers": {
    "camofox": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/camofox-mcp/dist/index.js"],
      "env": {
        "CAMOFOX_URL": "http://localhost:9377"
      }
    }
  }
}

Docker

Quick Start with Docker

# Standalone (connect to an existing CamoFox browser server running on the host)
docker run -i --rm -e CAMOFOX_URL=http://host.docker.internal:9377 redf0x1/camofox-mcp

# Browser only (recommended): starts the CamoFox browser server in the background
docker compose up -d

# MCP (stdio): start the browser with compose, then launch the MCP container on-demand
# Option A: plain docker (attach stdin; uses the compose network)
docker run -i --rm --network=camofox-mcp_default -e CAMOFOX_URL=http://camofox-browser:9377 redf0x1/camofox-mcp

# Option B: compose run (no TTY; attaches stdin/stdout for JSON-RPC)
docker compose run --rm -T camofox-mcp

Note: docker compose up -d detaches and does not provide stdin, so it can only be used to run the browser service. Your MCP client should launch the MCP container separately (using docker run -i ... or docker compose run -T ...).

VS Code MCP Configuration (Docker)

{
  "camofox": {
    "command": "docker",
    "args": ["run", "-i", "--rm", "-e", "CAMOFOX_URL=http://host.docker.internal:9377", "redf0x1/camofox-mcp"],
    "type": "stdio"
  }
}

Claude Desktop Configuration (Docker)

{
  "mcpServers": {
    "camofox": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "CAMOFOX_URL=http://host.docker.internal:9377", "redf0x1/camofox-mcp"],
      "type": "stdio"
    }
  }
}

IMPORTANT: Do NOT use -t flag — TTY corrupts the JSON-RPC stdio stream.

Tools (31)

Tab Management

Tool Description
create_tab Create a new tab with anti-detection fingerprinting
close_tab Close a tab and release resources
list_tabs List all open tabs with URLs and titles

Navigation

Tool Description
navigate Navigate to a URL, waits for page load
go_back Browser back button
go_forward Browser forward button
refresh Reload current page

Interaction

Tool Description
click Click element by ref (from snapshot) or CSS selector
type_text Type text into input fields by ref or CSS selector
camofox_press_key Press keyboard keys (Enter, Tab, Escape, etc.)
scroll Scroll page up or down by pixel amount
camofox_hover Hover over an element to trigger tooltips, dropdowns, or hover states
camofox_wait_for Wait for page readiness after navigation or dynamic updates

Batch / Composite

Tool Description
fill_form Fill multiple form fields in one call, with optional submit click
type_and_submit Type into a field and press a key (default: Enter)
navigate_and_snapshot Navigate to a URL, wait for readiness, and return a snapshot
scroll_and_snapshot Scroll then capture a fresh snapshot
batch_click Click multiple elements sequentially with per-click results

Observation

Tool Description
snapshot Get accessibility tree — PRIMARY way to read pages. Token-efficient
screenshot Take visual screenshot as base64 PNG
get_links Get all hyperlinks with URLs and text
camofox_wait_for_text Wait for specific text to appear on the page

Search

Tool Description
web_search Search via 14 engines: Google, YouTube, Amazon, Bing, DuckDuckGo, Reddit, GitHub, StackOverflow, Wikipedia, Twitter, LinkedIn, Facebook, Instagram, TikTok

Session

Tool Description
import_cookies Import cookies for authenticated sessions
get_stats Get session statistics and performance metrics
camofox_close_session Close all browser tabs for a user session

Session Profiles

Tool Description
save_profile Save cookies from an active tab to a named on-disk profile
load_profile Load a saved profile's cookies into an active tab (restores login sessions)
list_profiles List saved profiles with metadata (cookie count, save date, description)
delete_profile Delete a saved profile from disk

Health

Tool Description
server_status Check CamoFox server health and connection

Session Profiles

Session Profiles let you persist authenticated browser state across MCP restarts by saving/loading cookies to/from disk.

Tools

  • save_profile — export cookies from an active tab and save them under a profile name
  • load_profile — load a saved profile into an active tab (imports cookies)
  • list_profiles — list all saved profiles and metadata
  • delete_profile — delete a saved profile permanently

Configuration

  • CAMOFOX_PROFILES_DIR — directory used to store profiles (default: ~/.camofox-mcp/profiles/)
  • CAMOFOX_AUTO_SAVE — enable auto-save/auto-load of an "auto profile" (default: true). Set to false to disable.

Auto-save / auto-load

By default, CamoFox MCP will persist sessions automatically:

  • On close_tab and camofox_close_session, cookies are exported and saved to _auto_{userId} (best-effort; 5-second timeout).
  • On create_tab, if _auto_{userId} exists, it is loaded automatically (best-effort; 5-second timeout).

Note: auto-load requires CAMOFOX_API_KEY because importing cookies requires an API key.

Example flow

  1. create_tab
  2. Navigate + login interactively
  3. save_profile (from the logged-in tab)
  4. Restart your MCP client/server
  5. create_tab
  6. load_profile
  7. navigate — you should already be authenticated

Docker persistence

Mount a volume so profiles survive container restarts:

docker run -i --rm \
  -e CAMOFOX_URL=http://host.docker.internal:9377 \
  -v "$HOME/.camofox-mcp/profiles:/root/.camofox-mcp/profiles" \
  redf0x1/camofox-mcp

Configuration

Environment Variables

Variable Default Description
CAMOFOX_URL http://localhost:9377 CamoFox server URL
CAMOFOX_TIMEOUT 30000 Request timeout in ms
CAMOFOX_API_KEY — API key (if CamoFox requires auth)
CAMOFOX_PROFILES_DIR ~/.camofox-mcp/profiles Directory to store persistent session profiles
CAMOFOX_AUTO_SAVE true Auto-save on close + auto-load on create via _auto_{userId}
CAMOFOX_TAB_TTL_MS 1800000 Tab TTL in milliseconds (30min). Set to 0 to disable auto-eviction
CAMOFOX_MAX_TABS 100 Maximum tracked tabs
CAMOFOX_VISITED_URLS_LIMIT 50 Max URLs to keep in tab history
CAMOFOX_SWEEP_INTERVAL_MS 60000 Sweep interval in milliseconds (1min)

Architecture

AI Agent (Claude, GPT, etc.)
       │
       │ MCP Protocol (stdio)
       ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  CamoFox MCP    │  ← This package
│  (TypeScript)   │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
         │
         │ REST API (HTTP)
         ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  CamoFox Server │  ← Anti-detection browser
│  (Port 9377)    │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
         │
         │ Browser Engine
         ā–¼
ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
│  Camoufox       │  ← Firefox-based, fingerprint spoofing
│  (Firefox)      │
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

How It Works

  1. Your AI agent sends MCP tool calls (e.g., create_tab, navigate, snapshot)
  2. CamoFox MCP translates these into REST API calls to the CamoFox server
  3. CamoFox server manages a Camoufox browser with anti-detection features
  4. Each tab gets a unique fingerprint — different user agent, screen size, WebGL, fonts, etc.
  5. Websites see what appears to be a normal human browser, not automation

Anti-Detection Features

CamoFox (via Camoufox) provides:

  • āœ… Unique browser fingerprint per tab
  • āœ… Human-like user agent rotation
  • āœ… WebGL fingerprint spoofing
  • āœ… Canvas fingerprint protection
  • āœ… Screen resolution randomization
  • āœ… Font enumeration protection
  • āœ… Navigator properties masking
  • āœ… Timezone/locale consistency

Contributing

Contributions are welcome! Please open an issue or submit a PR.

License

MIT

Acknowledgments

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