
amotivv/cloudflare-browser-rendering-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
This MCP server provides tools for interacting with Cloudflare Browser Rendering, allowing you to fetch and process web content for use as context in LLMs directly from Cline or Claude Desktop.
概要
This MCP (Model Context Protocol) server provides tools for fetching and processing web content using Cloudflare Browser Rendering for use as context in LLMs. It's designed to work with both Claude and Cline client environments. - : Fetch and process web pages for LLM context - : Search Cloudflare documentation and return relevant content - : Extract structured content from web pages using CSS selectors - : Summarize web content for more concise LLM context - : Take screenshots of web pages - Node.js v18 or higher - A Cloudflare account with Browser Rendering API access - A deployed Cloudflare Worker using the provided puppeteer-worker.js file To install Cloudflare Browser Rendering for Claude Desktop automatically via Smithery: 1. Deploy the puppeteer-worker.js file to Cloudflare Workers using Wrangler: 2. Make sure to configure the following bindings in your Cloudflare Worker: - Browser Rendering binding named browser - KV namespace binding named SCREENSHOTS 3.
README
以下は原文 README の抜粋です。原文を見る。
Cloudflare Browser Rendering MCP Server
This MCP (Model Context Protocol) server provides tools for fetching and processing web content using Cloudflare Browser Rendering for use as context in LLMs. It’s designed to work with both Claude and Cline client environments.
Features
- Web Content Fetching: Fetch and process web pages for LLM context
- Documentation Search: Search Cloudflare documentation and return relevant content
- Structured Content Extraction: Extract structured content from web pages using CSS selectors
- Content Summarization: Summarize web content for more concise LLM context
- Screenshot Capture: Take screenshots of web pages
Prerequisites
- Node.js v18 or higher
- A Cloudflare account with Browser Rendering API access
- A deployed Cloudflare Worker using the provided
puppeteer-worker.jsfile
Installation
Installing via Smithery
To install Cloudflare Browser Rendering for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @amotivv/cloudflare-browser-rendering-mcp --client claude
-
Clone this repository:
git clone https://github.com/yourusername/cloudflare-browser-rendering.git cd cloudflare-browser-rendering -
Install dependencies:
npm install -
Build the project:
npm run build
Cloudflare Worker Setup
-
Deploy the
puppeteer-worker.jsfile to Cloudflare Workers using Wrangler:npx wrangler deploy -
Make sure to configure the following bindings in your Cloudflare Worker:
- Browser Rendering binding named
browser - KV namespace binding named
SCREENSHOTS
- Browser Rendering binding named
-
Note the URL of your deployed worker (e.g.,
https://browser-rendering-api.yourusername.workers.dev)
Configuration
For Claude Desktop
-
Open the Claude Desktop configuration file:
# macOS code ~/Library/Application\ Support/Claude/claude_desktop_config.json # Windows code %APPDATA%\Claude\claude_desktop_config.json -
Add the MCP server configuration:
{ "mcpServers": { "cloudflare-browser-rendering": { "command": "node", "args": ["/path/to/cloudflare-browser-rendering/dist/index.js"], "env": { "BROWSER_RENDERING_API": "https://your-worker-url.workers.dev" }, "disabled": false, "autoApprove": [] } } } -
Restart Claude Desktop
For Cline
- Open the Cline MCP settings file:
# macOS
インストール
npx -y @smithery/cli install @amotivv/cloudflare-browser-rendering-mcp --client claude設定
{
"mcpServers": {
"cloudflare-browser-rendering": {
"command": "node",
"args": ["/path/to/cloudflare-browser-rendering/dist/index.js"],
"env": {
"BROWSER_RENDERING_API": "https://your-worker-url.workers.dev"
},
"disabled": false,
"autoApprove": []
}
}
}