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

@leonbeckert/mcp-server-zenrows

v0.1.0

Published

MCP server that fetches webpages via ZenRows with cost‑aware escalation

Readme

ZenRows Fetch MCP Server

An Model Context Protocol (MCP) server that retrieves web pages through ZenRows and returns a clean, Markdown‑formatted snapshot—while automatically escalating from the cheapest request mode to more advanced (and expensive) bypass levels only when needed.


✨ Features

  • Cost‑aware escalation – starts with the base ZenRows request and retries with Premium Proxy → Stealth (Premium + JS) → Stealth + Wait (2.5 s) until useful content is obtained.
  • LLM‑ready output – delivers Markdown/text instead of raw HTML, ideal for downstream summarisation or analysis.
  • Optional selector wait – pass a CSS selector to wait for (implies JS rendering) when working with SPAs or late‑loading content.
  • Blocked‑page detection – heuristically recognises captchas/forbidden responses and escalates automatically.
  • Cost tier metadata – the final tier used (basic, premium, stealth, or wait) is returned in additionalParams.meta.costTier.
  • Zero‑config runtime – ship as an npx one‑liner, a slim Docker image, or run directly on Node 22+.

🛠️ Tool

zenrowsFetch

Fetches a web page through ZenRows and returns its Markdown rendition.

| Input | Type | Required | Description | | ---------- | -------- | -------- | ---------------------------------------------------------------------------------------- | | url | string | ✅ | Fully‑qualified URL to fetch. | | selector | string | | CSS selector ZenRows must wait for before snapshot (automatically enables JS rendering). |

Output – Plain‑text (Markdown) content of the page. The enclosing MCP response includes additionalParams.meta.costTier.


🚀 Usage

Use zenrowsFetch whenever you need a lightweight, resilient webpage retriever that:

  • Minimises cost by default but adapts when the target site blocks basic scraping.
  • Produces clean, LLM‑friendly Markdown with no extra parsing steps.
  • Works equally well for simple HTML pages and heavy JavaScript single‑page apps.

Typical scenarios include web‑content summarisation, ad‑hoc research pipelines, and programmatic ingestion of news/article sites.


⚙️ Configuration

Claude Desktop

npx

{
	"mcpServers": {
		"zenrows-fetch": {
			"command": "npx",
			"args": ["-y", "@leonbeckert/mcp-server-zenrows"],
			"env": {
				"ZENROWS_API_KEY": "zenrw_…"
			}
		}
	}
}

docker

{
	"mcpServers": {
		"zenrows-fetch": {
			"command": "docker",
			"args": [
				"run",
				"--rm",
				"-i",
				"-e",
				"ZENROWS_API_KEY=zenrw_…",
				"leonbeckert/mcp-server-zenrows"
			]
		}
	}
}

🧑‍💻 Local Install (No Docker, No NPM Publish)

This lets you run the server locally while using npx to launch it from tools like Claude Desktop.

🧱 Step-by-Step

1. Clone or Set Up the Code Locally

mkdir -p ~/code/zenrows-mcp
cd ~/code/zenrows-mcp
# Copy the relevant files here (index.ts, package.json, etc.)

2. Install Dependencies and Build

npm install       # installs dependencies: zenrows, MCP SDK, TypeScript types
npm run build     # compiles TypeScript into dist/, and makes dist/index.js executable

3. Globally Link the Binary

npm link

This makes the mcp-server-zenrows binary globally accessible via npx.

4. Smoke Test

ZENROWS_API_KEY=zenrw_test npx mcp-server-zenrows

You should see:

ZenRows MCP server running on stdio

5. Update mcp.json / user.settings.json Locally

{
	"mcp": {
		"servers": {
			"zenrows-fetch": {
				"command": "npx",
				"args": ["-y", "mcp-server-zenrows"],
				"env": {
					"ZENROWS_API_KEY": "zenrw_…"
				}
			}
		}
	}
}

This will launch your local server via the symlink created by npm link.


🧪 One-click in VS Code

Install via NPX

Install with NPX in VS Code

Install via Docker

Install with Docker in VS Code


🏗️ Building the Docker Image

# Build minimal production image
docker build -t mcp/zenrows .

🪪 License

MIT License – see the LICENSE file for full details.