
I built a plugin-based web metadata scraper with MCP server support
TL;DR I built web-meta-scraper — a lightweight TypeScript library that extracts metadata from web pages. 14 built-in plugins, 1 dependency, ~5KB. It also ships as an MCP server so AI assistants like Claude can use it as a tool. Why I built this I needed to extract Open Graph, Twitter Cards, and JSON-LD from URLs for a link preview feature. Existing solutions like metascraper (10+ dependencies, ~50KB) and open-graph-scraper (no plugin system, no customization) felt like overkill for what should be a simple task. So I built one with a few goals: Minimal dependencies — only cheerio for HTML parsing, native fetch() for HTTP Composable — pick only the plugins you need Type-safe — full TypeScript definitions for everything Extensible — custom plugins are just functions Quick Start npm install web-meta-scraper import { scrape } from ' web-meta-scraper ' ; const result = await scrape ( ' https://github.com ' ); console . log ( result . metadata ); // { // title: "\"GitHub\"," // description: "
Continue reading on Dev.to Webdev
Opens in a new tab

