Camoufox Playwright MCP
Camoufox Playwright MCP
一个与官方功能对等的 Playwright 模型上下文协议(MCP)服务器,并搭载了 Camoufox —— 这款隐身、反检测浏览器引擎,开箱即用地绕过反机器人系统、Cloudflare Turnstile、DataDome 以及高级浏览器指纹识别。
亮点
🥷 默认隐身:由 Camoufox 的自定义反检测浏览器引擎驱动,具备硬件伪装、拟人化光标移动和 GeoIP 对齐功能。
🎭 100% 官方 Playwright MCP 对等:与官方 TypeScript Playwright MCP 完全工具对等(
browser_navigate、browser_click、browser_fill、browser_snapshot、browser_take_screenshot、browser_evaluate等)。🔄 双引擎灵活性:默认使用隐身
camoufox,或无缝切换到标准 Playwright 浏览器(chromium、chrome、firefox、webkit)或自定义 CDP 端点。⚡ 通过
uvx零安装:在 Claude Desktop、Cursor、Cline、Windsurf 或任何 MCP 客户端中即时运行,无需手动设置。
Related MCP server: wraith-mcp
快速开始
1. 使用 uvx 即时运行
无需预先安装:
# Run stealth Camoufox browser in headless mode (recommended for AI agents)
uvx camoufox-playwright-mcp --headless
# Or run with standard Chrome
uvx camoufox-playwright-mcp --browser chrome2. 客户端配置
Claude Desktop
将此添加到您的 claude_desktop_config.json:
{
"mcpServers": {
"camoufox": {
"command": "uvx",
"args": [
"camoufox-playwright-mcp",
"--headless"
]
}
}
}Cursor(~/.cursor/mcp.json)
{
"mcpServers": {
"camoufox": {
"command": "uvx",
"args": ["camoufox-playwright-mcp", "--headless"]
}
}
}Windsurf / Cline / OpenCode / Zed
{
"mcpServers": {
"browser": {
"command": "uvx",
"args": [
"camoufox-playwright-mcp",
"--headless"
]
}
}
}安装
您也可以将 camoufox-playwright-mcp 安装到您的虚拟环境中:
使用 uv
uv add camoufox-playwright-mcp使用 pip
pip install camoufox-playwright-mcp安装浏览器二进制文件
获取 Camoufox 浏览器二进制文件:
camoufox-playwright-mcp install-browser同时安装标准 Playwright 浏览器:
camoufox-playwright-mcp install-browser chromium firefox webkit
# or install all
camoufox-playwright-mcp install-browser allCLI 参考
usage: camoufox-playwright-mcp [-h] [--browser BROWSER] [--headless] [--isolated]
[--user-data-dir USER_DATA_DIR] [--proxy-server PROXY_SERVER]
[--cdp-endpoint CDP_ENDPOINT] [--port PORT] ...常用标志
选项 | 描述 |
| 要使用的浏览器: |
| 以无头模式运行浏览器。 |
| 创建全新的临时浏览器上下文,而不是持久化配置文件。 |
| 浏览器配置文件存储的自定义目录路径。 |
| 代理服务器 URL(例如 |
| 以逗号分隔的绕过代理的域名列表。 |
| 操作超时时间(毫秒)(默认: |
| 导航超时时间(毫秒)(默认: |
| 保存快照、截图和日志的目录。 |
| 返回内联工件或文件引用( |
| HTTP/SSE 传输的监听端口(如果省略则运行 stdio 传输)。 |
命令
camoufox-playwright-mcp install-browser:下载 Camoufox 和/或 Playwright 浏览器二进制文件。
Camoufox 隐身与反检测选项
当使用 --browser camoufox(默认)运行时,Camoufox 会应用高级隐身配置。您可以通过 JSON 配置文件(--config config.json)提供更深入的配置:
{
"browser": {
"provider": "camoufox",
"camoufoxOptions": {
"geoip": true,
"humanize": true,
"os": "windows",
"block_images": false
}
}
}环境变量
所有 CLI 标志都可以通过环境变量配置:
变量 | 描述 |
| 默认浏览器( |
| 设置为 |
| 设置为 |
| 代理服务器 URL |
| 工件输出目录 |
| JSON/INI 配置文件的路径 |
(注意:也支持 PLAYWRIGHT_MCP_* 变量以实现向后兼容)。
可用的 MCP 工具
与官方 Playwright MCP 规范完全 1:1 匹配:
browser_navigate:导航到指定 URL。browser_click:使用定位器、坐标或文本点击元素。browser_fill:使用反检测按键填充输入字段。browser_snapshot:捕获完整的可访问性和语义树快照。browser_take_screenshot:捕获整页或元素截图。browser_evaluate:在页面上下文中安全地评估 JavaScript。browser_hover、browser_press_key、browser_type:鼠标和键盘交互。browser_tabs:管理多个浏览器标签页和窗口。browser_cookies:获取、设置和清除 Cookie。browser_network:管理路由和网络拦截。
许可证
Apache 许可证 2.0。详情请参阅 LICENSE。
Available Tools
24 toolsbrowser_clickClickCDestructive
Perform click on a web page
Inputs: target (required), _meta, button, element, +2 more.
browser_closeClose browserCDestructive
Close the page
Inputs: _meta.
browser_console_messagesGet console messagesCRead-only
Returns all console messages
Inputs: all, _meta, level, filename.
browser_dragDrag mouseCDestructive
Perform drag and drop between two elements
Inputs: endTarget (required), startTarget (required), _meta, endElement, +1 more.
browser_dropDrop files or data onto an elementBDestructive
Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.
Inputs: target (required), data, _meta, paths, +1 more.
browser_evaluateEvaluate JavaScriptCDestructive
Evaluate JavaScript expression on page or element
Inputs: function (required), _meta, target, element, +1 more.
browser_file_uploadUpload filesCDestructive
Upload one or multiple files
Inputs: _meta, paths.
browser_fill_formFill formCDestructive
Fill multiple form fields
Inputs: fields (required), _meta.
browser_findFind in page snapshotARead-only
Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.
Inputs: text, _meta, regex.
browser_handle_dialogHandle a dialogDDestructive
Handle a dialog
Inputs: accept (required), _meta, promptText.
browser_hoverHover mouseCDestructive
Hover over element on page
Inputs: target (required), _meta, element.
browser_network_requestShow network request detailsARead-only
Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.
Inputs: index (required), part, _meta, filename.
browser_network_requestsList network requestsARead-only
Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.
Inputs: _meta, filter, static, filename.
browser_press_keyPress a keyCDestructive
Press a key on the keyboard
Inputs: key (required), _meta.
browser_resizeResize browser windowDDestructive
Resize the browser window
Inputs: width (required), height (required), _meta.
browser_run_code_unsafeRun Playwright code (unsafe)ADestructive
Run a Python Playwright code snippet. Unsafe: executes arbitrary Python in the Playwright server process with normal builtins/imports and is RCE-equivalent.
Inputs: code, _meta, filename.
browser_select_optionSelect optionCDestructive
Select an option in a dropdown
Inputs: target (required), values (required), _meta, element.
browser_snapshotPage snapshotCRead-only
Capture accessibility snapshot of the current page, this is better than screenshot
Inputs: _meta, boxes, depth, target, +1 more.
browser_tabsManage tabsCDestructive
List, create, close, or select a browser tab.
Inputs: action (required), url, _meta, index.
browser_take_screenshotTake a screenshotARead-only
Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
Inputs: type, _meta, scale, target, +3 more.
browser_typeType textCDestructive
Type text into editable element
Inputs: text (required), target (required), _meta, slowly, +2 more.
browser_wait_forWait forCRead-only
Wait for text to appear or disappear or a specified time to pass
Inputs: text, time, _meta, textGone.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Most tools have clearly distinct purposes, but 'browser_snapshot' and 'browser_take_screenshot' could confuse agents as both capture page state, and 'browser_type' vs 'browser_fill_form' overlap slightly. Descriptions help differentiate them.
All tools follow a consistent 'browser_<action_or_noun>' pattern using lowercase with underscores. The naming is predictable and uniform, making it easy for agents to infer tool function from the name.
24 tools is well-scoped for a browser automation server, covering navigation, interaction, forms, dialogs, console, network, tabs, and more. Each tool addresses a distinct operation without being excessive.
The tool set covers most common browser automation operations (CRUD-like for page interactions), but lacks a forward navigation tool and explicit waiting for elements beyond text. These minor gaps are workable.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
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.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI-powered browser automation, web scraping, and testing using Playwright across Chromium, Firefox, and WebKit. It allows users to perform actions like navigation, clicking, typing, and taking screenshots through natural language interfaces.MIT
- AlicenseAqualityDmaintenanceAn AI-native stealth browser MCP server that uses AI vision navigation and bot detection bypass, enabling natural language browser automation.17MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables AI agents to automate browser interactions using Playwright and Cloudflare Workers, supporting tasks like navigation, clicking, typing, and screenshots.Apache 2.0
- 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