npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vpsm-sh/mcp-server-cloudflare-browser

v1.0.1

Published

MCP server that fetches URLs as Markdown via the Cloudflare Browser Rendering API.

Readme

mcp-server-cloudflare-browser

npm version License: MIT Node.js CI

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

  • render_markdown — fetches a URL using a real headless browser and returns the page as Markdown

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-browser

Configuration

| Variable | Required | Description | |---|---|---| | CLOUDFLARE_ACCOUNT_ID | Yes | Your Cloudflare account ID (found in the dashboard sidebar) | | CLOUDFLARE_API_TOKEN | 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.json
  • Windows: %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 | |---|---|---|---| | url | string | Yes | The URL to fetch and render |

Example prompt: "Fetch https://developers.cloudflare.com/browser-rendering/ and summarize it."

The tool handles JavaScript-rendered pages — it uses a real browser, not a simple HTTP fetch, so dynamic content is captured.

Development

# Install dependencies
npm install

# Compile TypeScript
npm run build

# Run the server
npm start

# Test interactively with the MCP Inspector
npm run inspector

After editing src/index.ts, always run npm run build before testing.

Testing with MCP Inspector

npm run inspector

This 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