
Camoufox Mcp
io.github.baixianger由 GitHub 账号 baixianger 发布v1.0.0更新于 Oct 24, 2026
Anti-detection browser automation with Camoufox - stealth Firefox for web scraping
概览
本地 MCP 服务器,驱动反检测 Firefox 浏览器 Camoufox,让助手自动化浏览、抓取网页并管理相互隔离的已登录会话。
- 可以做什么
- 创建、列出、保存和关闭隔离的浏览器会话,可从上下文文件预载 Cookie 与 localStorage,并向会话注入上下文。新建、列出、选择和关闭页面,以及导航、前进、后退和刷新。点击、悬停、填写表单、按键和拖拽元素。通过文本快照、截图、页面文本、主世界或隔离环境中的 JavaScript 执行以及框架状态提取来检查页面。捕获和拦截网络请求、捕获控制台日志、录制用户操作、关闭 Cookie 弹窗,并等待文本、选择器或导航完成。
- 适用场景
- 适合助手需要浏览或抓取会拦截普通无头浏览器的网站,或用已保存的 Cookie 与 localStorage 状态并行运行多个登录账号。也适用于脚本化网页交互和页面检查任务。
- 运行要求
- 通过 stdio 在本机运行,通常用 npx 启动,因此需要 Node.js 和网络访问。Camoufox 会自动安装(约 150MB)。可选在用户配置目录放置设置文件;代理可通过 PROXY_SERVER、PROXY_USER 和 PROXY_PASS 环境变量提供。未声明任何身份验证。
安装
在 SourceWeft 中
- 打开 控制台中的 Camoufox Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
🦊 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
Claude Desktop Configuration
Add to claude_desktop_config.json:
Basic:
With Proxy (via env vars):
Then in ~/.config/camoufox-mcp/settings.json:
Why Camoufox MCP?
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.
Page Management
Navigation & Interaction
Inspection
Context Injection
Monitoring
Utility
Sessions
Sessions enable running multiple authenticated profiles in parallel. Each session is an isolated browser context with its own cookies and localStorage.
Usage 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 + localStorage- Next time,
create_sessionwithcontextPath: "my-session.json"— restored
Context File Format
Context files use Playwright's storageState format:
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:
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:
Proxy Examples
HTTP/HTTPS Proxy:
SOCKS5 Proxy:
With Authentication (using env vars):
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
来源:README.md,提交 1e44772
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。