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

html-extractor-mcp

v1.0.0

Published

HTML Extractor MCP server — fetch URLs, extract text/links, call JSON APIs

Readme

html-extractor-mcp

HTML Extractor MCP server. Fetch URLs, extract text/links, call JSON APIs.

No external dependencies for basic fetching. Optional playwright-cli for SPA/anti-scraping sites.

Install

npm install -g html-extractor-mcp

Usage

Claude Desktop / Cursor / OpenCode

Add to your MCP config:

{
  "mcpServers": {
    "html-extractor": {
      "command": "npx",
      "args": ["-y", "html-extractor-mcp"]
    }
  }
}

Tools

fetch_url — Fetch URL

Fetch a webpage and return its HTML content.

Input:

{
  "url": "https://example.com",
  "timeout": 30000,
  "use_browser": false
}

Output:

{
  "url": "https://example.com",
  "status": 200,
  "content_length": 1256,
  "html": "<!doctype html><html>..."
}

extract_text — Extract Text

Fetch a webpage and extract plain text content (strips HTML tags, scripts, styles).

Input:

{
  "url": "https://example.com"
}

Output:

{
  "url": "https://example.com",
  "status": 200,
  "text_length": 280,
  "text": "Example Domain This domain is for use in illustrative examples..."
}

extract_links — Extract Links

Fetch a webpage and extract all links (href + text).

Input:

{
  "url": "https://example.com"
}

Output:

{
  "url": "https://example.com",
  "status": 200,
  "link_count": 1,
  "links": [
    { "text": "More information...", "href": "https://www.iana.org/domains/example" }
  ]
}

fetch_json — Fetch JSON API

Fetch a URL and parse the response as JSON.

Input:

{
  "url": "https://httpbin.org/get"
}

Output:

{
  "url": "https://httpbin.org/get",
  "status": 200,
  "data": {
    "args": {},
    "headers": { "Host": "httpbin.org" },
    "url": "https://httpbin.org/get"
  }
}

Browser Engine (Playwright CLI)

For SPA sites or anti-scraping protection, set use_browser: true:

{
  "url": "https://medium.com",
  "use_browser": true
}

This uses @playwright/cli (installed as a dependency) to render the page in a real browser environment.

Design

| Feature | Why | |---------|-----| | Zero core deps | Only @modelcontextprotocol/sdk and zod | | Native fetch | Node 18+ built-in, no external HTTP library | | Browser fallback | @playwright/cli for SPA/anti-scraping sites | | Text extraction | Strips scripts, styles, HTML tags | | Link extraction | Extracts href + text from anchor tags |

License

MIT