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

web-meta-scraper-mcp

v1.3.0

Published

MCP server for web-meta-scraper — extract metadata from URLs and HTML via Claude Code

Readme

web-meta-scraper-mcp

npm version license

English | 한국어

An MCP (Model Context Protocol) server that wraps web-meta-scraper. Use URL metadata extraction tools directly from MCP clients like Claude Code, Claude Desktop, and Cursor.

Setup & Run

Run directly with npx — no installation required.

npx web-meta-scraper-mcp

MCP Client Configuration

Claude Code

claude mcp add web-meta-scraper -- npx -y web-meta-scraper-mcp

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "web-meta-scraper": {
      "command": "npx",
      "args": ["-y", "web-meta-scraper-mcp"]
    }
  }
}

Cursor

Add to Cursor Settings > MCP:

{
  "mcpServers": {
    "web-meta-scraper": {
      "command": "npx",
      "args": ["-y", "web-meta-scraper-mcp"]
    }
  }
}

Available Tools

scrape_url

Extract metadata from a URL.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | Yes | The URL to scrape metadata from |

Example request:

{
  "name": "scrape_url",
  "arguments": {
    "url": "https://github.com"
  }
}

Example response:

{
  "metadata": {
    "title": "GitHub: Let's build from here",
    "description": "GitHub is where over 100 million developers shape the future of software.",
    "image": "https://github.githubassets.com/assets/social-card.png",
    "url": "https://github.com",
    "type": "website",
    "siteName": "GitHub"
  },
  "sources": {
    "meta-tags": { "title": "GitHub: Let's build from here", "..." : "..." },
    "open-graph": { "title": "GitHub: Let's build from here", "..." : "..." },
    "twitter": { "..." : "..." },
    "json-ld": { "..." : "..." }
  }
}

scrape_html

Extract metadata from a raw HTML string.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | html | string | Yes | The raw HTML string to extract metadata from | | url | string | No | Base URL for resolving relative paths |

batch_scrape

Scrape metadata from multiple URLs concurrently.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | urls | string[] | Yes | List of URLs to scrape | | concurrency | number | No | Number of concurrent requests (default: 5, max: 20) |

detect_feeds

Detect RSS and Atom feed links from a web page.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | No | URL to detect feeds from | | html | string | No | Raw HTML string to detect feeds from |

check_robots

Check robots meta tag directives and indexing status.

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | No | URL to check robots directives from | | html | string | No | Raw HTML string to check robots directives from |

validate_metadata

Validate metadata quality and generate an SEO score report (100-point scale).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | No | URL to validate metadata from | | html | string | No | Raw HTML string to validate metadata from |

extract_content

Extract main text content from a web page (removes navigation, ads, sidebars).

| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | url | string | No | URL to extract content from | | html | string | No | Raw HTML string to extract content from |

Extracted Metadata

The server automatically extracts and merges metadata from all built-in plugins using priority-based rules:

| Plugin | Fields | |--------|--------| | Meta Tags | title, description, keywords, author, favicon, canonicalUrl | | Open Graph | og:title, og:description, og:image, og:url, og:type, og:site_name, og:locale | | Twitter Cards | twitter:title, twitter:description, twitter:image, twitter:card, twitter:site, twitter:creator | | JSON-LD | Structured data (Article, Product, Organization, etc.) | | Favicons | All icon links with sizes and type | | Feeds | RSS and Atom feed links with title | | Robots | Robots meta directives and indexability flags |

Local Development

# Install dependencies
pnpm install

# Build
pnpm --filter web-meta-scraper-mcp build

# List tools
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}
{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | node mcp/dist/index.js

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node mcp/dist/index.js

License

MIT