Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cf_browser_mcp-2.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cf_browser_mcp-2.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file cf_browser_mcp-2.0.0.tar.gz.

File metadata

  • Download URL: cf_browser_mcp-2.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cf_browser_mcp-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a408515c8f458fd67c3f86139fe81c113ee06dae9eeba33011b7cadeb10d6d35
MD5 3575016e539c9a8b903433d6d67bcb46
BLAKE2b-256 f05a9ddbefaff5d6e249f2b3ebd414ca3fed257780141c3d91f584b1458cd1b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cf_browser_mcp-2.0.0.tar.gz:

Publisher: publish.yml on claude-world/cf-browser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cf_browser_mcp-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: cf_browser_mcp-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cf_browser_mcp-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb467d3067d33b8c4781c4ff8f4d46505cf167a12875abd5024c128ae2ea29b
MD5 4a02f9022cb1be3b8764cef89ba27d23
BLAKE2b-256 fa3efd9c4b03a0d614a276b52170faa9f8f0eaf8e5def83fbb293da533209279

See more details on using hashes here.

Provenance

The following attestation bundles were made for cf_browser_mcp-2.0.0-py3-none-any.whl:

Publisher: publish.yml on claude-world/cf-browser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page