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

@123pzy/web-scraper

v1.0.0

Published

网页爬取MCP服务器 - 获取和解析网页内容

Readme

@123pzy/web-scraper

一个基于 Model Context Protocol (MCP) 的网页爬取服务器,提供获取和解析网页内容的工具。

功能特性

  • 🔍 获取和解析网页内容
  • 📝 提取结构化数据(标题、段落、链接、图片)
  • 🛡️ 内置安全限制(超时控制、大小限制)
  • 🚀 支持作为 MCP 服务器使用
  • 📦 提供 CLI 命令

安装

npm install @123pzy/web-scraper

使用方法

作为 MCP 服务器

在 MCP 客户端配置文件中添加:

{
  "mcpServers": {
    "web-scraper": {
      "command": "npx",
      "args": ["-y", "@123pzy/web-scraper"]
    }
  }
}

或使用全局安装:

npm install -g @123pzy/web-scraper

配置文件中使用:

{
  "mcpServers": {
    "web-scraper": {
      "command": "web-scraper-server"
    }
  }
}

提供的工具

fetch_webpage

获取网页并返回结构化内容。

输入参数:

  • url (string): 要获取的网页 URL

返回内容:

  • 页面标题
  • 所有段落文本
  • 所有链接(包括 href 和文本)
  • 所有图片(包括 src 和 alt)

示例:

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

fetch_webpage_raw

获取网页的纯文本内容(移除脚本和样式)。

输入参数:

  • url (string): 要获取的网页 URL

返回内容:

  • 页面的纯文本内容(最多 2000 字符)

安全限制

  • ✅ 仅支持 HTTP/HTTPS 协议
  • ⏱️ 请求超时:5 秒
  • 📏 响应大小限制:10MB
  • 🤖 使用标准浏览器 User-Agent

提供的资源

docs://guide

通过 MCP 访问的使用指南文档。

技术栈

许可证

MIT

作者

123pzy

相关链接