Skip to main content

cf-browser-mcp

MCP Server with 15 browser tools for Claude Code — powered by Cloudflare Browser Rendering.

Installation

pip install cf-browser-mcp

Setup

Add to your .mcp.json. Two modes are supported:

Direct Mode (no Worker needed)

{
  "mcpServers": {
    "cf-browser": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "cf_browser_mcp.server"],
      "env": {
        "CF_ACCOUNT_ID": "your-cloudflare-account-id",
        "CF_API_TOKEN": "your-cloudflare-api-token"
      }
    }
  }
}

Worker Mode (via deployed Cloudflare Worker)

{
  "mcpServers": {
    "cf-browser": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "cf_browser_mcp.server"],
      "env": {
        "CF_BROWSER_URL": "https://cf-browser.YOUR-SUBDOMAIN.workers.dev",
        "CF_BROWSER_API_KEY": "your-api-key"
      }
    }
  }
}

Tools

Read-Only Tools

Tool Description
browser_markdown Convert page to clean Markdown
browser_content Get fully rendered HTML
browser_screenshot Take a PNG screenshot
browser_pdf Generate PDF
browser_scrape Extract elements by CSS selector
browser_json AI-powered data extraction
browser_links Extract all hyperlinks
browser_a11y Accessibility tree (low token cost)
browser_crawl Start async multi-page crawl
browser_crawl_status Check crawl progress

Interaction Tools (Worker Mode only)

Tool Description
browser_click Click an element on a page
browser_type Type text into an input field
browser_evaluate Execute JavaScript and return result
browser_interact Execute a chain of browser actions
browser_submit_form Fill and submit a form

All tools accept optional cookies and headers for authenticated scraping.

Requirements

  • Python 3.10+
  • Direct Mode: Cloudflare Account ID + API Token
  • Worker Mode: A deployed CF Browser Worker

License

MIT

Metadata

Release files for cf-browser-mcp 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cf-browser-mcp 2.0.0
File Size Uploaded
cf_browser_mcp-2.0.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cf-browser-mcp 2.0.0
File Interpreter ABI Platform
cf_browser_mcp-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / cf_browser_mcp-2.0.0.tar.gz

Download URL cf_browser_mcp-2.0.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a408515c8f458fd67c3f86139fe81c113ee06dae9eeba33011b7cadeb10d6d35
BLAKE2b-256 checksum
How to use checksums
f05a9ddbefaff5d6e249f2b3ebd414ca3fed257780141c3d91f584b1458cd1b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.

Transparency log

Release files / cf_browser_mcp-2.0.0-py3-none-any.whl

Download URL cf_browser_mcp-2.0.0-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbb467d3067d33b8c4781c4ff8f4d46505cf167a12875abd5024c128ae2ea29b
BLAKE2b-256 checksum
How to use checksums
fa3efd9c4b03a0d614a276b52170faa9f8f0eaf8e5def83fbb293da533209279
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page