Skip to main content
Glama

🦊 Camoufox MCP

Anti-detection browser automation for AI agents

npm version npm downloads License: MIT Node.js

MCP server for browser automation using Camoufox - an anti-detection Firefox browser.

Installation

npx camoufox-mcp

Related MCP server: camoufox-reverse-mcp

Claude Desktop Configuration

Add to claude_desktop_config.json:

Basic:

{
  "mcpServers": {
    "camoufox": {
      "command": "npx",
      "args": ["camoufox-mcp"]
    }
  }
}

With Proxy (via env vars):

{
  "mcpServers": {
    "camoufox": {
      "command": "npx",
      "args": ["camoufox-mcp"],
      "env": {
        "PROXY_SERVER": "http://1.2.3.4:8080",
        "PROXY_USER": "username",
        "PROXY_PASS": "password"
      }
    }
  }
}

Then in ~/.config/camoufox-mcp/settings.json:

{
  "proxy": {
    "enabled": true,
    "server": "${PROXY_SERVER}",
    "username": "${PROXY_USER}",
    "password": "${PROXY_PASS}",
    "geoip": true
  }
}

Why Camoufox MCP?

Feature

Camoufox MCP

Chrome DevTools MCP

Anti-Detection

Bot detection bypass

✅ Built-in

❌ Detected

Fingerprint randomization

✅

❌

WebRTC leak protection

✅

❌

Canvas fingerprint spoofing

✅

❌

Automation

Humanized cursor movement

✅ Realistic paths

❌ Instant jumps

Click with human-like delays

✅

❌

Proxy with GeoIP auto-config

✅ Timezone/locale

❌ Manual

JavaScript Evaluation

MainWorld eval (__NUXT__, __NEXT_DATA__)

✅

✅

Isolated eval (async/await)

✅

✅

Session Management

Isolated browser sessions

✅ Multiple contexts

❌ Single context

Pre-authenticated sessions

✅ Cookie/localStorage injection

❌

Session state export

✅ Save to JSON

❌

Features

Cookie popup auto-dismiss

✅ 50+ selectors

❌

User action recording

✅

❌

Network interception

✅

✅

Console capture

✅

✅

Performance tracing

❌

✅

Browser

Engine

Firefox (Gecko)

Chrome (Chromium)

Auto-install

✅ ~150MB

✅

Tools

Session Management

Sessions provide isolated browser contexts — each session has its own cookies, localStorage, and cache. Use sessions to run multiple authenticated profiles simultaneously.

Tool

Description

create_session

Create a new isolated session, optionally pre-loading cookies/localStorage from a JSON file

list_sessions

List all sessions with their page counts and metadata

save_session

Export a session's cookies and localStorage to a JSON file

close_session

Close a session and all its pages

list_context_files

List available context files registered in settings

Page Management

Tool

Description

new_page

Create a new page, optionally in a specific session

list_pages

List all open pages with their session IDs

select_page

Set a page as active

close_page

Close a page

Navigation & Interaction

Tool

Description

navigate_page

Navigate to URL, back, forward, or reload

click

Click an element by UID

hover

Hover over an element

fill

Fill a form field

fill_form

Fill multiple form fields at once

press_key

Press a key or key combination

drag

Drag an element to another

Inspection

Tool

Description

take_snapshot

Text snapshot with interactive element UIDs

take_screenshot

Screenshot of page or element

get_page_text

Extract text content

evaluate_mainworld

Run JS in page context (sync only)

evaluate_isolated

Run JS in isolated context (async OK)

get_framework_state

Extract Next.js/Nuxt.js state

Context Injection

Tool

Description

inject_context

Inject cookies + localStorage from a JSON file into a session

Monitoring

Tool

Description

start_network_capture / stop_network_capture

Capture network requests

get_network_logs / clear_network_logs

View/clear captured requests

intercept_network / remove_intercept

Block or modify requests

start_console_capture / stop_console_capture

Capture console messages

get_console_logs / clear_console_logs

View/clear console messages

start_recording / stop_recording / get_recording_status

Record user interactions

Utility

Tool

Description

dismiss_popups

Auto-dismiss cookie consent popups

wait_for

Wait for text or selector

wait_for_navigation

Wait for navigation to complete

reload_settings

Reload settings from config

get_config_paths

Show config file paths

init_user_config

Initialize user config directory

Sessions

Sessions enable running multiple authenticated profiles in parallel. Each session is an isolated browser context with its own cookies and localStorage.

Browser (single Camoufox instance)
  ├── Session "github" (cookies from github.json)
  │     ├── Page: github.com
  │     └── Page: github.com/repo
  ├── Session "linkedin" (cookies from linkedin.json)
  │     └── Page: linkedin.com/feed
  └── Session "default" (no pre-loaded state)
        └── Page: example.com

Usage Examples

Create a session with pre-loaded authentication:

  1. create_session with contextPath: "github-cookies.json" — returns a sessionId

  2. new_page with url: "https://github.com" and the sessionId — opens GitHub already logged in

Run two accounts simultaneously:

  1. create_session with contextPath: "account1.json" — session A

  2. create_session with contextPath: "account2.json" — session B

  3. new_page in session A — logged in as account 1

  4. new_page in session B — logged in as account 2

Save session state for later:

  1. Log in manually in a session

  2. save_session with outputPath: "my-session.json" — exports cookies + localStorage

  3. Next time, create_session with contextPath: "my-session.json" — restored

Context File Format

Context files use Playwright's storageState format:

{
  "cookies": [
    {
      "name": "session_id",
      "value": "abc123",
      "domain": ".example.com",
      "path": "/",
      "expires": 1735689600,
      "httpOnly": true,
      "secure": true,
      "sameSite": "Lax"
    }
  ],
  "origins": [
    {
      "origin": "https://example.com",
      "localStorage": [
        { "name": "token", "value": "xyz789" }
      ]
    }
  ]
}

Registering Context Files in Settings

Add context file paths to settings.json to make them discoverable via list_context_files. Sessions are created lazily on demand — no memory is used until the agent calls create_session:

{
  "contextPaths": [
    "/path/to/github-cookies.json",
    "/path/to/linkedin-cookies.json"
  ]
}

The agent can then call list_context_files to see what's available, and create_session with the desired contextPath to load it when needed.

Settings

Create ~/.config/camoufox-mcp/settings.json:

{
  "browser": {
    "headless": false,
    "viewport": [1280, 1080],
    "timeout": 30000,
    "humanize": 0.5
  },
  "proxy": {
    "enabled": true,
    "server": "http://proxy.example.com:8080",
    "username": "user",
    "password": "pass",
    "geoip": true
  },
  "contextPaths": []
}

Proxy Examples

HTTP/HTTPS Proxy:

{ "proxy": { "enabled": true, "server": "http://1.2.3.4:8080" } }

SOCKS5 Proxy:

{ "proxy": { "enabled": true, "server": "socks5://1.2.3.4:1080" } }

With Authentication (using env vars):

{
  "proxy": {
    "enabled": true,
    "server": "${PROXY_SERVER}",
    "username": "${PROXY_USER}",
    "password": "${PROXY_PASS}",
    "geoip": true
  }
}

geoip: true auto-adjusts browser timezone/locale based on proxy IP location.

See More

License

MIT

Available Tools

36 tools
clear_console_logsB

Clear captured console logs

Inputs: pageId.

clear_network_logsC

Clear captured network logs

Inputs: pageId.

clickC

Click an element by its UID from snapshot

Inputs: uid (required), pageId, button, clickCount, +1 more.

close_pageC

Close a browser page/tab

Inputs: pageId (required).

dismiss_popupsA

Dismiss cookie consent popups and overlays

Inputs: pageId, maxAttempts, customSelectors.

dragC

Drag an element to another element

Inputs: fromUid (required), toUid (required), pageId.

evaluate_isolatedA

Execute JavaScript in an ISOLATED context (sandboxed, separate from page scripts).

USE THIS TOOL WHEN YOU NEED TO:

  • Make async operations (fetch, setTimeout, Promises)

  • Query/manipulate the DOM without affecting page state

  • Run code that shouldn't interfere with page scripts

  • Perform async data extraction or waiting

LIMITATIONS:

  • CANNOT access window globals (window.NUXT, etc. will be undefined)

  • CANNOT call functions defined by page scripts

  • Only has access to DOM and standard browser APIs

EXAMPLES:

  • "await fetch('/api/data').then(r => r.json())" → Make API calls

  • "document.querySelectorAll('.item').length" → Count elements

  • "await new Promise(r => setTimeout(r, 1000))" → Wait/delay

Inputs: script (required), pageId.

evaluate_mainworldA

Execute JavaScript in the page's MAIN execution context (same as browser DevTools console).

USE THIS TOOL WHEN YOU NEED TO:

  • Access window globals like window.NUXT, window.NEXT_DATA, window.APP_STATE

  • Read framework hydration state (Next.js, Nuxt.js, Vue, React, etc.)

  • Access variables/functions defined by the page's own scripts

  • Interact with third-party libraries loaded by the page (jQuery, etc.)

CRITICAL LIMITATIONS:

  • NO async/await support - scripts must be SYNCHRONOUS only

  • NO Promise, fetch(), setTimeout callbacks

  • Script will be REJECTED if it contains async patterns

EXAMPLES:

  • "window.NUXT" → Returns Nuxt.js state

  • "window.NEXT_DATA" → Returns Next.js props

  • "typeof jQuery !== 'undefined' ? jQuery.fn.jquery : null" → Check jQuery version

Inputs: script (required), pageId.

fillC

Fill a form field (input, textarea, select) by its UID

Inputs: uid (required), value (required), pageId.

fill_formC

Fill multiple form fields at once

Inputs: fields (required), pageId.

get_config_pathsB

Get all config file paths (user config, package default, active)

Inputs: no named parameters.

get_console_logsC

Get captured console messages

Inputs: pageId, types, pattern, limit, +1 more.

get_framework_stateC

Extract Next.js/Nuxt.js hydration state from the page

Inputs: pageId, framework.

get_network_logsC

Get captured network request logs

Inputs: pageId, urlPattern, limit.

get_page_textC

Extract text content from the page

Inputs: pageId, selector.

get_recording_statusC

Get current recording status

Inputs: pageId.

hoverC

Hover over an element by its UID

Inputs: uid (required), pageId.

init_user_configA

Initialize user config directory (~/.config/camoufox-mcp) with default settings

Inputs: no named parameters.

intercept_networkC

Intercept and block/modify network requests

Inputs: urlPattern (required), action (required), pageId, modifyResponse.

list_pagesB

List all open browser pages/tabs

Inputs: no named parameters.

new_pageC

Create a new browser page/tab, optionally navigating to a URL

Inputs: url.

press_keyC

Press a keyboard key or combination

Inputs: key (required), pageId.

reload_settingsC

Reload settings from config file

Inputs: configPath.

remove_interceptC

Remove network intercept rules

Inputs: pageId, urlPattern.

select_pageC

Set a page as the active page for subsequent operations

Inputs: pageId (required).

start_console_captureC

Start capturing browser console messages

Inputs: pageId, types.

start_network_captureC

Start capturing network requests

Inputs: pageId, resourceTypes.

start_recordingC

Start recording user interactions (clicks, scrolls, inputs)

Inputs: pageId.

stop_console_captureB

Stop capturing console messages

Inputs: pageId.

stop_network_captureB

Stop capturing network requests

Inputs: pageId.

stop_recordingC

Stop recording and return captured actions

Inputs: pageId.

take_screenshotC

Take a screenshot of the page or a specific element

Inputs: pageId, fullPage, uid, format, +1 more.

take_snapshotC

Take a text snapshot of the page with interactive element UIDs for targeting

Inputs: pageId, verbose.

wait_forC

Wait for text or selector to appear on the page

Inputs: pageId, text, selector, state, +1 more.

wait_for_navigationC

Wait for page navigation to complete

Inputs: pageId, url, waitUntil, timeout.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 36 tools

    Disambiguation3/5

    Most tools have distinct purposes, but there is some overlap that could cause confusion. For example, 'evaluate_isolated' and 'evaluate_mainworld' both execute JavaScript but in different contexts, which is clarified in descriptions, yet their similar names might lead to misselection. Tools like 'fill' and 'fill_form' also have overlapping functionality, though 'fill_form' handles multiple fields. Overall, descriptions help differentiate, but some boundaries are unclear.

    Naming Consistency4/5

    Tool names largely follow a consistent verb_noun pattern (e.g., 'clear_console_logs', 'get_page_text', 'start_recording'), making them predictable and readable. There are minor deviations, such as 'evaluate_isolated' and 'evaluate_mainworld' using adjectives instead of nouns, and 'init_user_config' using 'init' instead of a more standard verb like 'initialize'. However, the overall naming scheme is coherent and easy to follow.

    Tool Count2/5

    With 36 tools, the count is excessive for a browser automation server, leading to potential cognitive overload and reduced usability. A typical well-scoped server in this domain should have 10-20 tools; this set includes many granular operations (e.g., separate tools for starting/stopping console and network capture) that could be consolidated. The high number makes the tool surface feel heavy and less intuitive for agents.

    Completeness5/5

    The tool set provides comprehensive coverage for browser automation, including navigation, interaction (click, hover, drag), form handling, JavaScript execution, logging, network control, and state management. It supports full CRUD-like operations for logs and captures, and there are no obvious gaps—tools like 'wait_for' and 'wait_for_navigation' ensure robust workflow support. The domain is well-covered without dead ends.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server for stealth browser automation that uses human-like interaction patterns to bypass bot detection via the Chrome DevTools Protocol. It enables users to navigate, interact with elements, and capture data from websites using undetectable behaviors like Bezier mouse movements and Gaussian typing delays.
      2
      MIT
    • A
      license
      B
      quality
      A
      maintenance
      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.
      42
      577
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      A stealth-enhanced browser automation MCP server for AI agents to interact with websites while bypassing anti-bot detection mechanisms like Cloudflare and reCAPTCHA.
      9
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Browser automation MCP server using Camoufox anti-detect browser with fingerprint spoofing, geolocation/timezone spoofing, and human-like cursor movement.
      14
      1
      Apache 2.0