camoufox-mcp

camoufox-mcp

Enables browser automation with anti-detection features, including navigation, interaction, form filling, and session management.

Category
访问服务器

README

Camoufox MCP Server

Deprecated: moved to camoufox-browser

This repository is deprecated. The project has moved to:

  • Repository: https://github.com/rlgrpe/camoufox-browser-cli
  • PyPI: https://pypi.org/project/camoufox-browser/

A Python MCP (Model Context Protocol) server providing full browser automation with Camoufox anti-detection capabilities.

Features

  • 21 browser automation tools for complete browser control
  • Anti-detection: Automatic fingerprint randomization to avoid bot detection
  • Lazy initialization: Browser only launches on first tool call
  • Persistent sessions: Browser persists between tool calls
  • Tab management: Support for multiple tabs/pages
  • Form automation: Fill forms, upload files, handle dialogs

Installation

Quick Start (uvx - recommended)

uvx camoufox-mcp

Using pipx

pipx run camoufox-mcp

Using pip

pip install camoufox-mcp
camoufox-mcp

From source

# Clone the repository
git clone https://github.com/rlgrpe/camoufox-mcp-python.git
cd camoufox-mcp-python

# Install with uv
uv sync

Install Camoufox browser

After installing the package, you need to download the Camoufox browser binary. The command depends on how you installed the package:

If installed via uvx (recommended)

uvx camoufox fetch

If installed via pipx

pipx run camoufox fetch

If installed via pip

# macOS
python3 -m camoufox fetch

# Linux
python -m camoufox fetch

# Windows
camoufox fetch

If installed from source (uv)

uv run python -m camoufox fetch

Linux system dependencies

On Linux, you also need to install system dependencies:

# Ubuntu/Debian
sudo apt install -y libgtk-3-0 libx11-xcb1 libasound2

# Arch
sudo pacman -S gtk3 libx11 libxcb cairo libasound alsa-lib

To uninstall the browser binary

# Use the same method as installation:
uvx camoufox remove          # if using uvx
pipx run camoufox remove     # if using pipx
camoufox remove              # if using pip
uv run python -m camoufox remove  # if using uv from source

Usage

Start the server

# Using uvx (recommended)
uvx camoufox-mcp

# Using uv (from source)
uv run camoufox-mcp

# Or as a module
python -m camoufox_mcp

Add to Claude Code

claude mcp add camoufox-mcp -- uvx camoufox-mcp

Claude Desktop Configuration

Add to your Claude Desktop config file:

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

Or if running from source:

{
  "mcpServers": {
    "camoufox-mcp": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/camoufox-mcp-python",
        "camoufox-mcp"
      ]
    }
  }
}

Tools Reference

Navigation (4 tools)

Tool Description
browser_navigate Navigate to a URL
browser_navigate_back Go back to the previous page
browser_snapshot Capture accessibility snapshot of the current page
browser_wait_for Wait for text to appear/disappear or a specified time

Interaction (6 tools)

Tool Description
browser_click Click on an element
browser_type Type text into an element
browser_hover Hover over an element
browser_drag Drag and drop between two elements
browser_press_key Press a key on the keyboard
browser_select_option Select an option in a dropdown

Page (4 tools)

Tool Description
browser_evaluate Evaluate JavaScript on the page or element
browser_console_messages Get console messages
browser_network_requests Get network requests
browser_take_screenshot Take a screenshot

Forms (3 tools)

Tool Description
browser_fill_form Fill multiple form fields
browser_file_upload Upload files
browser_handle_dialog Handle dialogs (alert, confirm, prompt)

Session (4 tools)

Tool Description
browser_tabs List, create, close, or select tabs
browser_resize Resize the browser window
browser_close Close the browser
browser_install Install Camoufox browser

Configuration

The browser can be configured via the BrowserConfig class in camoufox_mcp/config.py. Available options:

Parameter Type Default Description
os str None OS to spoof (windows/macos/linux)
headless bool/str False Headless mode (or 'virtual')
humanize bool/float True Human-like cursor movements
geoip bool True Auto-detect geolocation from IP
proxy str/dict None Proxy configuration
block_webrtc bool True Block WebRTC leaks
block_webgl bool False Block WebGL fingerprinting
block_images bool False Block image loading
locale str None Browser locale
viewport dict None Viewport dimensions
enable_cache bool True Enable caching
timeout int 30000 Page load timeout (ms)
wait_strategy str "domcontentloaded" Wait strategy
ublock bool False Enable uBlock Origin

Proxy Configuration Example

proxy = {
    'server': 'http://proxy.example.com:8080',
    'username': 'user',
    'password': 'pass'
}

Development

# Install dev dependencies
uv sync --dev

# Run tests
uv run pytest

# Format code
uv run ruff format

# Lint
uv run ruff check

License

MIT License - see LICENSE for details.

Related Projects

  • Camoufox - The anti-detect browser this MCP server is built on
  • MCP - Model Context Protocol specification
  • FastMCP - Python framework for building MCP servers

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选