Camoufox Browser MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add camoufox-browser -- docker exec -i camofox-mcp python src/mcp_server.py
README.md

Stealthy browser automation using a custom Firefox build for anti-detection.

🦊 Camoufox MCP Browser

A Model Context Protocol (MCP) server designed to provide stealthy web browsing capabilities (anti-detection) to AI agents using the Camoufox engine.

πŸš€ Goal

Enable AI agents (such as Claude, GPT, etc.) to interact with the modern web without being blocked, maintaining persistent sessions and allowing detailed visual and structural inspection of content.

✨ Key Features

  • πŸ•΅οΈ Advanced Stealth: Engine based on Camoufox (custom Firefox) with C++ level fingerprint spoofing.
  • πŸ”— Session Management: Hash-based system to maintain multiple independent and persistent navigation contexts.
  • πŸ“Έ Dual Screenshots: Returns screenshots in Base64 directly to the agent and optionally saves them to local files.
  • πŸ› οΈ Interaction Tools: Navigation, clicks, text typing, scrolling, and link extraction.
  • 🐳 Docker Native: Optimized container with all necessary system dependencies to run browsers in headless mode.

πŸ› οΈ Available Tools

Tool Description
browser_navigate Navigates to a URL and creates/reuses a persistent session.
browser_interact Performs actions like click, type, scroll_up, scroll_down.
browser_get_markdown Converts current page to Markdown for AI token efficiency.
browser_list_links Extracts all links and their descriptive text from the current page.
browser_screenshot Captures the current view (Base64 + optional file).
browser_snapshot Retrieves the raw HTML content of the session.
browser_sessions Lists the hashes of all active sessions.

πŸ“¦ Installation and Usage

1. Requirements

  • Docker and Docker Compose.
  • Python 3.11+ (to run test scripts).

2. Deployment with Docker

# Clone and start
git clone https://github.com/danielmiranda/camoufox-browser-mcp.git
cd camoufox-browser-mcp
docker-compose up --build -d

3. Configuration in MCP Clients (e.g., Claude Desktop)

Add the following to your configuration file:

{
  "mcpServers": {
    "camoufox-browser": {
      "command": "docker",
      "args": ["exec", "-i", "camofox-mcp", "python", "src/mcp_server.py"]
    }
  }
}

πŸ§ͺ Verification Tests

We have included example scripts to verify integration:

  • General Test: python examples/test_mcp_docker.py (Simulates full agent flow).
  • ScrapingBee Test: python examples/scrapingbee_test.py (Navigates, lists links, and performs clicks).

⚠️ Current Limitations

  • Resource Consumption: Since it manages persistent sessions, memory usage can scale with many open tabs.
  • Headless Mode: Some websites specifically detect headless rendering despite advanced spoofing (though Camoufox minimizes this).
  • Network: Loading speed depends entirely on the Docker host's connectivity.

πŸ—ΊοΈ Roadmap (Future)

  • AI-Optimized Markdown: Tool to extract web content directly as Markdown (token saving).
  • Accessibility Tree tools: Tools to interact based on accessibility roles instead of CSS selectors.
  • Proxy Rotation: Integrated proxy management for each hashed session.
  • Captcha Solving: Integration with captcha solving services for fully autonomous flows.

Built with ❀️ for the AI Agent community.

Tools (7)

browser_navigateNavigates to a URL and creates/reuses a persistent session.
browser_interactPerforms actions like click, type, scroll_up, scroll_down.
browser_get_markdownConverts current page to Markdown for AI token efficiency.
browser_list_linksExtracts all links and their descriptive text from the current page.
browser_screenshotCaptures the current view (Base64 + optional file).
browser_snapshotRetrieves the raw HTML content of the session.
browser_sessionsLists the hashes of all active sessions.

Configuration

claude_desktop_config.json
{"mcpServers": {"camoufox-browser": {"command": "docker", "args": ["exec", "-i", "camofox-mcp", "python", "src/mcp_server.py"]}}}

Try it

β†’Navigate to https://example.com and extract all the links on the page.
β†’Take a screenshot of the current page and save it to my local directory.
β†’Go to the login page, type my username and password into the fields, and click the submit button.
β†’Convert the current webpage content into clean Markdown format for me to read.
β†’List all my active browser sessions and switch to the one for my research project.

Frequently Asked Questions

What are the key features of Camoufox Browser MCP?

Advanced fingerprint spoofing based on Camoufox custom Firefox engine. Hash-based persistent session management for multiple contexts. Direct Base64 screenshot capture and local file saving. Headless browser operation optimized for Docker environments. Interaction tools including navigation, clicking, typing, and scrolling.

What can I use Camoufox Browser MCP for?

Automating web research tasks that require persistent login sessions. Scraping data from websites that employ anti-bot detection measures. Performing autonomous web navigation and interaction flows via AI agents. Generating visual documentation of web pages for AI analysis.

How do I install Camoufox Browser MCP?

Install Camoufox Browser MCP by running: git clone https://github.com/danielmiranda/camoufox-browser-mcp.git && cd camoufox-browser-mcp && docker-compose up --build -d

What MCP clients work with Camoufox Browser MCP?

Camoufox Browser MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Camoufox Browser MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare