Camofox Mcp
About
# π¦ CamoFox MCP **The anti-detection browser MCP server for AI agents.** Navigate, interact, and automate the web without getting blocked. [](https://github.com/redf0x1/camofox-mcp/actions/workflows/ci.yml) [![npmβ¦
Explore
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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Camofox McpCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
- Pick one:
- Docker (recommended) β easiest βzero-to-heroβ setup
- Node.js 18+ (download) β needed for the npx setup
- CamoFox Browser Server must be running (it is not a downloadable desktop binary β use Docker, npx, or build from source)
- An MCP-compatible client: VS Code (Copilot), Cursor, Claude Desktop, or any MCP client
1) Start CamoFox Browser (keep this terminal open)
npx camofox-browser@latest
2) In another terminal, verify:
curl http://localhost:9377/health
3) Add MCP config to your editor (see configs below)
4) Paste the verification prompt into your AI agent
> After configuring your MCP client, restart your editor. Then paste this prompt into your AI agent:
Verify my CamoFox MCP setup. Run these checks and report results:
1) Call server_status β is the browser server connected?
2) If connected: create_tab with url https://example.com
3) navigate_and_snapshot on that tab (wait for text: "Example Domain")
4) list_profiles to confirm profile storage is accessible
5) close_tab for the test tab
If any step fails, diagnose the issue and suggest a fix.
Report: β
pass or β fail for each step, plus overall status.
> Prerequisites: You must configure your MCP client first (Step 2 above). The AI agent can do everything else.
Manual verification (optional):
curl http://localhost:9377/health
bash
docker run -i --rm -e CAMOFOX_URL=http://host.docker.internal:9377 ghcr.io/redf0x1/camofox-mcp:latest
{
"servers": {
"camofox": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "CAMOFOX_URL=http://host.docker.internal:9377", "ghcr.io/redf0x1/camofox-mcp:latest"]
}
}
}
{
"mcpServers": {
"camofox": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "CAMOFOX_URL=http://host.docker.internal:9377", "ghcr.io/redf0x1/camofox-mcp:latest"],
"type": "stdio"
}
}
}
IMPORTANT: Do NOT use -t flag β TTY corrupts the JSON-RPC stdio stream.
The API key is optional. All 35 tools work without a key when the CamoFox browser server doesn't enforce authentication (the default for local setups).
If your CamoFox browser server has authentication enabled, these tools need a matching key:
- import_cookies
- camofox_evaluate_js
- load_profile (imports cookies)
- Auto-save / auto-load session profiles (imports cookies on create_tab)
Without a matching key, these tools return a clear "API key required" error with setup instructions.
| Variable | Default | Description |
|----------|---------|-------------|
| CAMOFOX_URL | http://localhost:9377 | CamoFox server URL |
| CAMOFOX_TIMEOUT | 30000 | Request timeout in ms |
| CAMOFOX_API_KEY | β | Shared secret for authenticated operations. Only needed if the CamoFox browser server enforces 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_DEFAULT_USER_ID | default | Default userId for new tabs when none specified |
| 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) |
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
- 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
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"camofox mcp": {
"camofox-mcp": {
"command": "docker",
"args": [
"run",
"-d",
"-p",
"9377:9377",
"--name",
"camofox-browser",
"ghcr.io/redf0x1/camofox-browser:latest"
]
}
}
}
}
McpServers
{
"camofox-mcp": {
"command": "docker",
"args": [
"run",
"-d",
"-p",
"9377:9377",
"--name",
"camofox-browser",
"ghcr.io/redf0x1/camofox-browser:latest"
]
}
}
The anti-detection browser MCP server for AI agents. Navigate, interact, and automate the web without getting blocked.
> New to CamoFox? Skip the docs β paste this prompt into your AI agent and itβll verify your setup end-to-end.
How it works (TL;DR)
Your AI Agent ββ(MCP)ββ> camofox-mcp ββ(REST)ββ> camofox-browser ββ> Camoufox (anti-detection Firefox)
CamoFox has 2 components β you need both running:
- camofox-browser is the headless browser server (anti-detection)
- camofox-mcp is the MCP bridge your AI agent connects to
---
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 Browser Server 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 | 35 | 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 | β
| β | β
|
Prerequisites
- Pick one:
- Docker (recommended) β easiest βzero-to-heroβ setup
- Node.js 18+ (download) β needed for the npx setup
- CamoFox Browser Server must be running (it is not a downloadable desktop binary β use Docker, npx, or build from source)
- An MCP-compatible client: VS Code (Copilot), Cursor, Claude Desktop, or any MCP client
Quick Start
Pick ONE option below.
Option A: Docker (Recommended β Easiest)
1) Start CamoFox Browser
docker run -d -p 9377:9377 --name camofox-browser ghcr.io/redf0x1/camofox-browser:latest
2) Verify itβs running
curl http://localhost:9377/health
3) Add MCP config to your editor (see configs below)
4) Paste the verification prompt into your AI agent (see below)
Option B: npx (Quick β Needs Node.js 18+)
1) Start CamoFox Browser (keep this terminal open)
npx camofox-browser@latest
2) In another terminal, verify:
curl http://localhost:9377/health
3) Add MCP config to your editor (see configs below)
4) Paste the verification prompt into your AI agent
Option C: From Source (Developers)
1) Clone and start CamoFox Browser
git clone https://github.com/redf0x1/camofox-browser.git
cd camofox-browser && npm install && npm run build && npm start
2) Clone and build CamoFox MCP
git clone https://github.com/redf0x1/camofox-mcp.git
cd camofox-mcp && npm install && npm run build
3) Add MCP config (see configs below β use node path instead of npx)
4) Paste the verification prompt
MCP Client Configuration
VS Code (Copilot)
- File: .vscode/mcp.json (in your workspace root)
- Create the file if it doesn't exist
{
"servers": {
"camofox": {
"type": "stdio",
"command": "npx",
"args": ["-y", "camofox-mcp@latest"],
"env": {
"CAMOFOX_URL": "http://localhost:9377"
}
}
}
}
Claude Desktop
- macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
- Windows: %APPDATA%\Claude\claude_desktop_config.json
- Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"camofox": {
"command": "npx",
"args": ["-y", "camofox-mcp@latest"],
"env": {
"CAMOFOX_URL": "http://localhost:9377"
}
}
}
}
Note: Claude Desktop uses "mcpServers" not "servers".
Cursor
- File: ~/.cursor/mcp.json
{
"mcpServers": {
"camofox": {
"command": "npx",
"args": ["-y", "camofox-mcp@latest"],
"env": {
"CAMOFOX_URL": "http://localhost:9377"
}
}
}
}
From Source (use node instead of npx)
{
"servers": {
"camofox": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/camofox-mcp/dist/index.js"],
"env": {
"CAMOFOX_URL": "http://localhost:9377"
}
}
}
}
Note: This example is for VS Code. For Claude Desktop or Cursor, use "mcpServers" instead of "servers".
3. Verify Setup
> After configuring your MCP client, restart your editor. Then paste this prompt into your AI agent:
Verify my CamoFox MCP setup. Run these checks and report results:
1) Call server_status β is the browser server connected?
2) If connected: create_tab with url https://example.com
3) navigate_and_snapshot on that tab (wait for text: "Example Domain")
4) list_profiles to confirm profile storage is accessible
5) close_tab for the test tab
If any step fails, diagnose the issue and suggest a fix.
Report: β
pass or β fail for each step, plus overall status.
> Prerequisites: You must configure your MCP client first (Step 2 above). The AI agent can do everything else.
Manual verification (optional):
```bash
curl http://localhost:9377/health
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



