KS
Killer-Skills

cloudflare-browser — Categories.community

Verified
v1.0.0
GitHub

About this Skill

Ideal for Automation Agents requiring seamless interaction with headless browsers via Cloudflare's Browser Rendering service Run OpenClaw, (formerly Moltbot, formerly Clawdbot) on Cloudflare Workers

cloudflare cloudflare
[0]
[0]
Updated: 3/5/2026

Quality Score

Top 5%
34
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add cloudflare/moltworker

Agent Capability Analysis

The cloudflare-browser MCP Server by cloudflare is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion.

Ideal Agent Persona

Ideal for Automation Agents requiring seamless interaction with headless browsers via Cloudflare's Browser Rendering service

Core Value

Empowers agents to control headless browsers using Chrome DevTools Protocol over WebSocket, enabling advanced browser automation and rendering capabilities with Cloudflare Workers, leveraging environment variables like `CDP_SECRET` and configurations in `openclaw.json`

Capabilities Granted for cloudflare-browser MCP Server

Automating browser interactions for web scraping tasks
Generating screenshots of web pages using Cloudflare's Browser Rendering
Debugging web applications with CDP protocol over WebSocket

! Prerequisites & Limits

  • Requires `CDP_SECRET` environment variable set
  • Needs browser profile configured in `openclaw.json` with `cdpUrl` pointing to the worker endpoint
Project
SKILL.md
2.6 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Cloudflare Browser Rendering

Control headless browsers via Cloudflare's Browser Rendering service using CDP (Chrome DevTools Protocol) over WebSocket.

Prerequisites

  • CDP_SECRET environment variable set
  • Browser profile configured in openclaw.json with cdpUrl pointing to the worker endpoint:
    json
    1"browser": { 2 "profiles": { 3 "cloudflare": { 4 "cdpUrl": "https://your-worker.workers.dev/cdp?secret=..." 5 } 6 } 7}

Quick Start

Screenshot

bash
1node /path/to/skills/cloudflare-browser/scripts/screenshot.js https://example.com output.png

Multi-page Video

bash
1node /path/to/skills/cloudflare-browser/scripts/video.js "https://site1.com,https://site2.com" output.mp4

CDP Connection Pattern

The worker creates a page target automatically on WebSocket connect. Listen for Target.targetCreated event to get the targetId:

javascript
1const WebSocket = require('ws'); 2const CDP_SECRET = process.env.CDP_SECRET; 3const WS_URL = `wss://your-worker.workers.dev/cdp?secret=${encodeURIComponent(CDP_SECRET)}`; 4 5const ws = new WebSocket(WS_URL); 6let targetId = null; 7 8ws.on('message', (data) => { 9 const msg = JSON.parse(data.toString()); 10 if (msg.method === 'Target.targetCreated' && msg.params?.targetInfo?.type === 'page') { 11 targetId = msg.params.targetInfo.targetId; 12 } 13});

Key CDP Commands

CommandPurpose
Page.navigateNavigate to URL
Page.captureScreenshotCapture PNG/JPEG
Runtime.evaluateExecute JavaScript
Emulation.setDeviceMetricsOverrideSet viewport size

Common Patterns

Navigate and Screenshot

javascript
1await send('Page.navigate', { url: 'https://example.com' }); 2await new Promise(r => setTimeout(r, 3000)); // Wait for render 3const { data } = await send('Page.captureScreenshot', { format: 'png' }); 4fs.writeFileSync('out.png', Buffer.from(data, 'base64'));

Scroll Page

javascript
1await send('Runtime.evaluate', { expression: 'window.scrollBy(0, 300)' });

Set Viewport

javascript
1await send('Emulation.setDeviceMetricsOverride', { 2 width: 1280, 3 height: 720, 4 deviceScaleFactor: 1, 5 mobile: false 6});

Creating Videos

  1. Capture frames as PNGs during navigation
  2. Use ffmpeg to stitch: ffmpeg -framerate 10 -i frame_%04d.png -c:v libx264 -pix_fmt yuv420p output.mp4

Troubleshooting

  • No target created: Race condition - wait for Target.targetCreated event with timeout
  • Commands timeout: Worker may have cold start delay; increase timeout to 30-60s
  • WebSocket hangs: Verify CDP_SECRET matches worker configuration

Related Skills

Looking for an alternative to cloudflare-browser or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
Design

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication