# Cloudflare Browser Rendering — MCP server on mcp.ai > Connect your Cloudflare Browser Rendering account and use 4 tools for web scraping straight from your AI agent. Connect with your own API key. Cloudflare Browser Rendering enables developers to programmatically control and interact with headless browser instances running on Cloudflare’s global network, facilitating tasks such as automating browser interactions, capturing screenshots, generating PDFs, and extracting data from web pages. By: mcp.ai · official Page: https://mcp.ai/cloudflare_browser_rendering ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_cloudflare_browser_rendering?ms=1787295900000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/cloudflare_browser_rendering/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/cloudflare_browser_rendering/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/cloudflare_browser_rendering/skill.md Postman collection (v2.1): https://mcp.ai/cloudflare_browser_rendering/postman.json ## Tools - cloudflare_browser_rendering_capture_screenshot(url?: string, html?: string, cacheTTL?: integer, viewport?: object, accountId: string, screenshotOptions?: object) — Tool to capture a webpage screenshot. Use when you need a visual snapshot of a URL or HTML with optional viewport and clipping. Always validate screenshot content — the tool returns a successful resul - cloudflare_browser_rendering_list_accounts(name?: string, page?: integer, per_page?: integer, direction?: string) — List all Cloudflare accounts accessible to the authenticated API token. Returns account IDs, names, types, and settings. Use this to retrieve a valid account_id required by other browser-rendering act - cloudflare_browser_rendering_scrape_html_elements(url?: string, html?: string, cacheTTL?: integer, elements: object[], account_id: string, actionTimeout?: integer) — Tool to scrape HTML elements for text, HTML, attributes, and box metrics. Use when you need detailed data of matched selectors after rendering a page. - cloudflare_browser_rendering_take_webpage_snapshot(url?: string, html?: string, cookies?: object[], cacheTTL?: integer, viewport?: object, accountId?: string, userAgent?: string, addStyleTag?: object[], bestAttempt?: boolean, gotoOptions?: object, addScriptTag?: object[], authenticate?: object, actionTimeout?: integer, waitForTimeout?: integer, waitForSelector?: object, emulateMediaType?: string, screenshotOptions?: object, allowResourceTypes?: string[], allowRequestPattern?: string[], rejectResourceTypes?: string[], setExtraHTTPHeaders?: object, rejectRequestPattern?: string[], setJavaScriptEnabled?: boolean) — Capture both rendered HTML content and a screenshot of a webpage in a single request. Returns the full DOM content as a string and a Base64-encoded screenshot image. Useful when you need both visual r ## Example prompts - "What can I do in Cloudflare Browser Rendering?" - "Show me a summary of my Cloudflare Browser Rendering account" ## Links Docs: https://mcp.ai/docs/mcps/cloudflare_browser_rendering Website: https://mcp.ai/mcps/cloudflare_browser_rendering