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

html2text-mcp-server

v1.0.1

Published

A web scraping and content extraction service built with Model Context Protocol (MCP). This server provides various tools for fetching, scraping, and extracting data from web pages, supporting both static and dynamic content.

Readme

HTML2Text MCP Server

A web scraping and content extraction service built with Model Context Protocol (MCP). This server provides various tools for fetching, scraping, and extracting data from web pages, supporting both static and dynamic content.

Features

  • Fetch raw HTML content from URLs
  • Scrape static web pages with CSS selectors
  • Scrape dynamic SPAs using Puppeteer
  • Extract structured data from HTML
  • Batch scraping multiple pages
  • API endpoint scraping
  • Web page change monitoring

Installation

npm install

Configuration

The server supports the following configuration options:

  • headless: Whether to run browser in headless mode (default: true)
  • timeout: Request timeout in milliseconds (default: 30000)
  • userAgent: Custom User-Agent string
  • chromeExecutablePath: Path to Chrome executable (optional, defaults to standard location)

Tools

fetchHtml

Fetches raw HTML content from a URL.

Input schema:

  • url (string, required): The webpage URL
  • method (string): HTTP method (GET, POST), default: GET
  • headers (object): Custom request headers
  • timeout (number): Timeout in milliseconds, default: 10000

scrapeStatic

Scrapes content from static web pages.

Input schema:

  • url (string, required): The webpage URL
  • selector (string): CSS selector for content extraction
  • attribute (string): Attribute to extract (e.g., href, src)
  • extract (string): Extraction type (text, html, all), default: text

scrapeDynamic

Scrapes content from dynamically rendered web pages (SPAs).

Input schema:

  • url (string, required): The webpage URL
  • waitForSelector (string): Element selector to wait for
  • waitForXPath (string): XPath to wait for
  • waitForFunction (string): JavaScript function to wait for
  • waitTimeout (number): Wait timeout in milliseconds, default: 10000
  • executeScript (string): JavaScript to execute after page load
  • scroll (boolean): Whether to scroll to bottom, default: false
  • screenshot (boolean): Whether to capture screenshot, default: false
  • chromeExecutablePath (string): Path to Chrome executable

extractData

Extracts structured data from HTML content.

Input schema:

  • html (string, required): HTML content to extract from
  • selectors (object): Selector mapping like {title: 'h1', content: '.article'}
  • xpaths (object): XPath mapping
  • jsonLd (boolean): Whether to extract JSON-LD data, default: true
  • metadata (boolean): Whether to extract metadata, default: true

scrapeMultiple

Batch scrapes multiple pages at once.

Input schema:

  • urls (array, required): List of URLs to scrape
  • concurrency (number): Number of concurrent requests (1-10), default: 3
  • strategy (string): Scraping strategy (static, dynamic), default: static

scrapeApi

Scrapes data from API endpoints.

Input schema:

  • url (string, required): API endpoint URL
  • method (string): HTTP method (GET, POST, PUT, DELETE), default: GET
  • headers (object): Request headers
  • body (object): Request body (JSON)
  • params (object): Query parameters

monitorChanges

Monitors changes on web pages.

Input schema:

  • url (string, required): URL to monitor
  • selector (string): Selector to monitor for changes
  • interval (number): Check interval in minutes, default: 5
  • previousContent (string): Previously captured content for comparison

Usage

The server implements the Model Context Protocol and can be integrated with compatible clients.

License

MIT