AC

amotivv/cloudflare-browser-rendering-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 4 forks 품질 70 트렌드 18MIT

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.js file

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
  1. Clone this repository:

    git clone https://github.com/yourusername/cloudflare-browser-rendering.git
    cd cloudflare-browser-rendering
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Cloudflare Worker Setup

  1. Deploy the puppeteer-worker.js file to Cloudflare Workers using Wrangler:

    npx wrangler deploy
    
  2. Make sure to configure the following bindings in your Cloudflare Worker:

    • Browser Rendering binding named browser
    • KV namespace binding named SCREENSHOTS
  3. Note the URL of your deployed worker (e.g., https://browser-rendering-api.yourusername.workers.dev)

Configuration

For Claude Desktop

  1. Open the Claude Desktop configuration file:

    # macOS
    code ~/Library/Application\ Support/Claude/claude_desktop_config.json
    
    # Windows
    code %APPDATA%\Claude\claude_desktop_config.json
    
  2. 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": []
        }
      }
    }
    
  3. Restart Claude Desktop

For Cline

  1. Open the Cline MCP settings file:
    # macOS
GitHub에서 전체 README 보기

설치

npx -y @smithery/cli install @amotivv/cloudflare-browser-rendering-mcp --client claude
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "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": [] } } }