MCPInstall
Cloudflare Browser Rendering logo

Cloudflare Browser Rendering

Featured
by cloudflare 4,424 stars cloudflare/mcp-server-cloudflare

Browser automation for Cloudflare Workers and quick browser actions.

READMEHEAD

Cloudflare Browser Run MCP Server 📡

This is a Model Context Protocol (MCP) server that supports remote MCP connections, with Cloudflare OAuth built-in.

It integrates tools powered by the Cloudflare Browser Run API to fetch web pages, convert them to markdown, and take screenshots.

The /mcp URL uses a stateless SDK v2 handler that creates a fresh server with request-scoped auth/account context for every request. The retired /sse URL returns 410 Gone pointing at /mcp. OAuth grants and token validation remain durable security state; the server stores no MCP protocol session. The Browser Run session tools below manage application-level browser sessions, not MCP protocol sessions.

🔨 Available Tools

Currently available tools:

ToolDescription
get_url_html_contentRetrieves the HTML content of the specified URL.
get_url_markdownFetches the webpage content and converts it into Markdown format.
get_url_screenshotCaptures a screenshot of the webpage. Optionally, specify the viewport size.
get_url_pdfRenders the webpage to a PDF document.
get_url_snapshotReturns the page HTML content and a screenshot in a single call.
scrape_url_elementsScrapes elements from the page by CSS selector.
get_url_jsonExtracts structured JSON from the page using AI. Supports a prompt and JSON schema.
get_url_linksReturns the list of links on the page.
start_crawlStarts an asynchronous crawl of a website and returns a job_id.
get_crawl_resultReturns the status and records of a crawl job.
cancel_crawlCancels a running crawl job.
list_browser_sessionsLists active Browser Run sessions for the account.
kill_browser_sessionCloses (kills) a Browser Run session by its session ID.

Browser selection: The page tools (get_url_*, scrape_url_elements, and start_crawl) accept an optional browser argument. Omit it to use the default Chrome browser. Set it to kitesurf to render the page with the Kitesurf browser engine. start_crawl accepts kitesurf only when render is true.

Note: These tools are account-scoped. Single-account credentials (and account-scoped API tokens) are detected automatically. If your credentials can access multiple accounts, pass account_id to the tool, or set a cf-account-id request header in your MCP client config.

This MCP server is still a work in progress, and we plan to add more tools in the future.

Prompt Examples

  • Get the HTML content of https://example.com.
  • Convert https://example.com to Markdown.
  • Take a screenshot of https://example.com.
  • Take a screenshot of https://example.com with the kitesurf browser.
  • Render https://example.com to a PDF.
  • Extract the product name and price from https://example.com as JSON.
  • List all the links on https://example.com.
  • Crawl https://example.com two levels deep and give me the results.
  • List my active browser sessions and kill the oldest one.

Connect to the MCP server

Connect your MCP client directly to https://browser.mcp.cloudflare.com/mcp. If prompted, complete the Cloudflare OAuth flow in your browser. The tools become available after authorization.

Interested in contributing, and running this server locally? See CONTRIBUTING.md to get started.

More OS Automation MCP servers

Similar servers from the same category.

Enables browser automation through structured accessibility snapshots for web navigation, form-filling, and tab management without requiring vision-tuned models.

browser

Provides a bridge to virtual Ubuntu desktops for browsing the web, running code, and automating tasks through a sandboxed environment with bash command execution and natural language control.

TextModel

Enables LLMs to run Computer-Use Agent (CUA) workflows on Apple Silicon macOS.

environmentother+2

Hyperbrowser

hyperbrowserai

Hyperbrowser is the next-generation platform empowering AI agents and enabling effortless, scalable browser automation.

automationbrowser-automation+2