mcp-server-cloudflare-browser
Provides tools that use the Cloudflare Browser Rendering API to fetch URLs and return rendered Markdown, HTML, screenshots, PDFs, accessibility trees, extracted links/elements/JSON, and manage asynchronous crawl jobs.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-server-cloudflare-browser
An MCP server that fetches any URL and returns it as clean Markdown, powered by the Cloudflare Browser Rendering API. Useful for giving LLMs access to live web content without the noise of raw HTML.
Features
Eleven tools covering the full Cloudflare Browser Run Quick Actions API:
Tool | Description |
| URL → clean Markdown (JS-rendered) |
| URL → fully rendered HTML after JS execution |
| URL → PNG screenshot |
| URL or HTML → PDF (base64) |
| URL → multiple formats in one call (HTML + screenshot + markdown + a11y tree) |
| URL → accessibility tree (roles, names, states) |
| URL → all links on the page |
| URL + CSS selectors → structured element data |
| URL + prompt/schema → AI-powered structured JSON |
| URL → async crawl job (follow links, up to N pages) |
| Poll crawl job status and retrieve results |
Related MCP server: Fetch MCP Server
Requirements
Node.js 18+
A Cloudflare account with Browser Rendering enabled
A Cloudflare API token with Workers AI or Browser Rendering permission
Quick Start
No installation needed. Run directly with npx:
CLOUDFLARE_ACCOUNT_ID=your-account-id \
CLOUDFLARE_API_TOKEN=your-api-token \
npx -y @vpsm-sh/mcp-server-cloudflare-browserConfiguration
Variable | Required | Description |
| Yes | Your Cloudflare account ID (found in the dashboard sidebar) |
| Yes | API token with Browser Rendering read permission |
To create an API token: Cloudflare Dashboard → My Profile → API Tokens → Create Token → use the Read all resources template or create a custom token with Browser Rendering access.
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"cloudflare-browser": {
"command": "npx",
"args": ["-y", "@vpsm-sh/mcp-server-cloudflare-browser@latest"],
"env": {
"CLOUDFLARE_ACCOUNT_ID": "your-account-id",
"CLOUDFLARE_API_TOKEN": "your-api-token"
}
}
}
}Config file location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Usage with VS Code
Add this to your .vscode/mcp.json (or user-level settings.json under "mcp.servers"):
{
"servers": {
"cloudflare-browser": {
"command": "npx",
"args": ["-y", "@vpsm-sh/mcp-server-cloudflare-browser@latest"],
"env": {
"CLOUDFLARE_ACCOUNT_ID": "${input:cloudflareAccountId}",
"CLOUDFLARE_API_TOKEN": "${input:cloudflareApiToken}"
}
}
}
}VS Code will prompt for the values on first connect.
Usage with OpenCode
Add to your ~/.config/opencode/config.json:
{
"mcp": {
"cloudflare-browser": {
"type": "local",
"command": ["npx", "-y", "@vpsm-sh/mcp-server-cloudflare-browser@latest"],
"env": {
"CLOUDFLARE_ACCOUNT_ID": "your-account-id",
"CLOUDFLARE_API_TOKEN": "your-api-token"
}
}
}
}Available Tools
render_markdown
Fetches a URL using a headless browser and returns the rendered page as Markdown.
Parameter | Type | Required | Description |
|
| One of | The URL to fetch and render |
|
| One of | Raw HTML to convert to Markdown |
|
| No | Control page load behavior ( |
|
| No | Block resource types (e.g., |
Example: "Fetch https://developers.cloudflare.com/browser-rendering/ and summarize it."
render_content
Fetches a URL and returns the fully rendered HTML after JavaScript execution.
take_screenshot
Captures a screenshot of a fully rendered webpage. Returns a PNG image.
Parameter | Type | Required | Description |
|
| Yes | URL to screenshot or HTML to render |
|
| No |
|
|
| No | CSS selector to screenshot a specific element |
|
| No |
|
render_pdf
Generates a PDF from a webpage or custom HTML. Returns base64-encoded PDF data.
Parameter | Type | Required | Description |
|
| Yes | URL or HTML to convert to PDF |
|
| No |
|
take_snapshot
Captures multiple formats in a single request: HTML, screenshot, Markdown, and/or accessibility tree.
Parameter | Type | Required | Description |
|
| Yes | URL or HTML to snapshot |
|
| No | At least two of: |
get_accessibility_tree
Captures the accessibility tree of a webpage after JavaScript execution.
Parameter | Type | Required | Description |
|
| Yes | URL or HTML |
|
| No | Only semantically meaningful nodes (default: true) |
|
| No | CSS selector to anchor to a subtree |
extract_links
Extracts all links from a webpage, including hidden ones.
Parameter | Type | Required | Description |
|
| Yes | URL or HTML |
|
| No | Only return visible links (default: false) |
|
| No | Exclude external domain links (default: false) |
scrape_elements
Extracts structured data from specific elements using CSS selectors.
Parameter | Type | Required | Description |
|
| Yes | URL or HTML |
|
| Yes | Array of |
extract_json
Extracts structured JSON data from a webpage using AI.
Parameter | Type | Required | Description |
|
| Yes | URL or HTML |
|
| No | Natural language prompt describing what to extract |
|
| No | JSON schema for structured output |
|
| No | Custom AI models with fallback support |
start_crawl
Initiates an async crawl job that follows links across a site.
Parameter | Type | Required | Description |
|
| Yes | Starting URL |
|
| No | Max pages (default: 10, max: 100000) |
|
| No | Max link depth |
|
| No |
|
|
| No | Use headless browser (default: true) |
|
| No | Wildcard patterns to include |
|
| No | Wildcard patterns to exclude |
get_crawl_status
Checks status or retrieves results of an async crawl job.
Parameter | Type | Required | Description |
|
| Yes | Crawl job ID from |
|
| No | Filter records by status |
|
| No | Pagination cursor |
|
| No | Max records (use 1 for status checks) |
Development
# Install dependencies
npm install
# Compile TypeScript
npm run build
# Run the server
npm start
# Test interactively with the MCP Inspector
npm run inspectorAfter editing src/index.ts, always run npm run build before testing.
Testing with MCP Inspector
npm run inspectorThis opens a web UI where you can call render_markdown manually and inspect requests/responses.
Adding Tools
See AGENTS.md for the full code style guide and tool-handler contract.
License
MIT — Copyright (c) 2026 Nathan Beddoe
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Unblocking and fresh web data for agents: URL to Markdown, YouTube, Maps, Amazon, jobs. Pay per call
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Markdown scrape, site map, page metadata, screenshots, web search and PDF to text. Pay per call
Read a URL as clean markdown, screenshot a website, url to PDF. Web access for agents, no signup.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to fetch and extract web content using browser automation, OCR, and multiple extraction methods, handling JavaScript rendering and anti-scraping techniques.17MIT
- AlicenseAqualityDmaintenanceEnables LLMs to fetch and extract web content as markdown with browser impersonation to bypass basic bot detection.1MIT
- AlicenseAqualityDmaintenanceEnables LLMs to crawl websites via Cloudflare's Browser Rendering API, providing tools to start, monitor, cancel crawls, and retrieve structured content with AI extraction.5MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read, screenshot, or convert web pages to PDF using a real headless browser, turning any URL into clean Markdown, a visual image, or a print-ready document.82 npmMIT