Camoufox MCP
Camoufox MCP is an anti-detection browser automation server for AI agents, using a Firefox-based browser with fingerprint spoofing, WebRTC leak protection, canvas fingerprint spoofing, and human-like behavior simulation.
Anti-Detection & Humanization
Bypasses bot detection with fingerprint randomization and canvas/WebRTC spoofing
Realistic cursor movements, human-like click delays, and natural interaction patterns
Proxy support (HTTP/HTTPS/SOCKS5) with GeoIP auto-configuration for timezone/locale
Session Management
Create isolated browser sessions with separate cookies, localStorage, and cache
Pre-load authentication from JSON context files; export/import session states
Run multiple authenticated profiles simultaneously
Page Management
Create, list, select, and close browser pages/tabs
Navigate to URLs, go back/forward, reload, and wait for navigation events
Interaction
Click (left/right/middle, single/double, modifier keys), hover, drag elements
Fill form fields individually or in bulk; press keyboard keys/combinations
Auto-dismiss cookie consent popups (50+ common selectors)
Inspection & Snapshots
Take text snapshots with interactive element UIDs for targeting
Capture screenshots (full page or specific elements; PNG, JPEG, WebP)
Extract plain text from pages or specific CSS selectors
JavaScript Evaluation
evaluate_mainworld: Synchronous JS in the page's main world (accesswindow.__NUXT__,window.__NEXT_DATA__, etc.)evaluate_isolated: Async JS in a sandboxed context (supportsfetch,await, Promises)Extract Next.js/Nuxt.js hydration/framework state
Network Monitoring & Interception
Start/stop capturing network requests filtered by resource type or URL pattern
View/clear network logs; intercept requests to block or modify responses (status, headers, body)
Console Monitoring
Start/stop capturing browser console messages filtered by type or pattern
View/clear console logs with error-only filtering
User Interaction Recording
Start/stop recording user interactions (clicks, scrolls, inputs) and retrieve captured actions
Configuration & Utilities
Wait for specific text or CSS selectors to appear/disappear
Reload settings from config file; manage config file paths and user config directory
Automates the Firefox browser with advanced anti-detection features, including fingerprint randomization, WebRTC leak protection, and humanized cursor movements.
Automates the Firefox browser with advanced anti-detection features, including fingerprint randomization, WebRTC leak protection, and humanized cursor movements.
Enables the evaluation of Nuxt.js application state, such as __NUXT__ variables, during browser automation for enhanced data extraction.
Provides built-in WebRTC leak protection to maintain anonymity and prevent IP address exposure during automated browsing.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Camoufox MCP Search for flight prices on a travel site and bypass bot detection"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🦊 Camoufox MCP
Anti-detection browser automation for AI agents
MCP server for browser automation using Camoufox - an anti-detection Firefox browser.
Installation
npx camoufox-mcpRelated 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 ( | ✅ | ✅ |
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 a new isolated session, optionally pre-loading cookies/localStorage from a JSON file |
| List all sessions with their page counts and metadata |
| Export a session's cookies and localStorage to a JSON file |
| Close a session and all its pages |
| List available context files registered in settings |
Page Management
Tool | Description |
| Create a new page, optionally in a specific session |
| List all open pages with their session IDs |
| Set a page as active |
| Close a page |
Navigation & Interaction
Tool | Description |
| Navigate to URL, back, forward, or reload |
| Click an element by UID |
| Hover over an element |
| Fill a form field |
| Fill multiple form fields at once |
| Press a key or key combination |
| Drag an element to another |
Inspection
Tool | Description |
| Text snapshot with interactive element UIDs |
| Screenshot of page or element |
| Extract text content |
| Run JS in page context (sync only) |
| Run JS in isolated context (async OK) |
| Extract Next.js/Nuxt.js state |
Context Injection
Tool | Description |
| Inject cookies + localStorage from a JSON file into a session |
Monitoring
Tool | Description |
| Capture network requests |
| View/clear captured requests |
| Block or modify requests |
| Capture console messages |
| View/clear console messages |
| Record user interactions |
Utility
Tool | Description |
| Auto-dismiss cookie consent popups |
| Wait for text or selector |
| Wait for navigation to complete |
| Reload settings from config |
| Show config file paths |
| 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.comUsage Examples
Create a session with pre-loaded authentication:
create_sessionwithcontextPath: "github-cookies.json"— returns asessionIdnew_pagewithurl: "https://github.com"and thesessionId— opens GitHub already logged in
Run two accounts simultaneously:
create_sessionwithcontextPath: "account1.json"— session Acreate_sessionwithcontextPath: "account2.json"— session Bnew_pagein session A — logged in as account 1new_pagein session B — logged in as account 2
Save session state for later:
Log in manually in a session
save_sessionwithoutputPath: "my-session.json"— exports cookies + localStorageNext time,
create_sessionwithcontextPath: "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: trueauto-adjusts browser timezone/locale based on proxy IP location.
See More
Camoufox - The anti-detection Firefox browser
camoufox-js - JavaScript/TypeScript bindings
License
MIT
Available Tools
36 toolsclear_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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 36 tools
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.
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.
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.
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
Browser automation MCP for whole web tasks in a cloud browser: saved logins, bot checks, replays.
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn 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.2MIT
- AlicenseBqualityAmaintenanceAn 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.42577MIT
- AlicenseNot gradedqualityDmaintenanceA stealth-enhanced browser automation MCP server for AI agents to interact with websites while bypassing anti-bot detection mechanisms like Cloudflare and reCAPTCHA.9MIT
- AlicenseBqualityDmaintenanceBrowser automation MCP server using Camoufox anti-detect browser with fingerprint spoofing, geolocation/timezone spoofing, and human-like cursor movement.141Apache 2.0