Pialuo 爬罗剔抉 MCP Server
Lightweight web scraping MCP: fetch, prune to LLM-friendly markdown, extract via CSS schema.
Pialuo 爬罗剔抉 scores 63 (Good), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Web scraping, AI and memory. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: short README, no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "tanbopiao-pialuo": { "command": "uvx", "args": [ "pialuo" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
pialuo —— 爬罗剔抉,刮垢磨光
轻量化网页抓取与内容提炼算子。抓取网页、按文本密度剪枝去噪,输出 LLM 友好的 Markdown 或按 CSS 选择器 schema 提取结构化 JSON。
名字取自韩愈《进学解》:"爬罗剔抉,刮垢磨光"——爬罗(搜集)剔抉(挑选), 正是"抓取→清洗→提炼"这件事。
纯 Python 标准库实现,零第三方依赖,单文件 666 行。
用法
# 抓取并输出清洗后的 Markdown
python pialuo.py https://www.python.org/
# 输出到文件,显示耗时与内存
python pialuo.py https://www.python.org/ --out page.md --profile
# 按 schema 提取结构化 JSON(无需 LLM)
python pialuo.py https://www.python.org/ --schema schema.json
schema 格式(JsonCss 风格):
{
"baseSelector": "ul.menu li",
"fields": [
{"name": "title", "selector": "a", "type": "text"},
{"name": "url", "selector": "a", "type": "attribute", "attribute": "href"}
]
}
选择器支持子集:tag、.class、#id、后代空格组合。
MCP 服务
仓库内 mcp_server.py 提供 JSON-RPC 2.0 over stdio 的 MCP 服务(零依赖),
任何支持 MCP 的客户端可直接接入:
python mcp_server.py
工具:
fetch_page(url, timeout?, retries?, word_threshold?)—— 抓取网页并清洗为 LLM 友好 Markdown;extract_structured(url, schema)—— 按 JsonCss 风格 schema 做结构化提取,无需 LLM。
与 Crawl4AI 的取舍对比
| 维度 | Crawl4AI(上游) | pialuo(本算子) |
|---|---|---|
| 定位 | 全功能 Agent 爬取框架 | 单一算子:抓取→清洗→提取 |
| 代码形态 | 543 个 py 文件、约 15.6 万行 | 单文件 666 行 |
| 依赖 | 25+(Playwright、numpy、litellm 等) | 0(纯标准库) |
| 部署形态 | Docker 镜像 8.2GB,要求 4GB RAM | 一个 py 文件直接跑 |
| 空闲内存 | 538MB(实测) | 进程 RSS 峰值约 25MB(含解释器基线),解析 51KB 页面 tracemalloc 峰值 0.78MB |
| 51KB 页面处理耗时 | — | 解析+剪枝+渲染 78ms |
| 抓取调度 | asyncio 并发/重试/robots/缓存 | 同步抓取/重试/robots(缓存砍掉) |
| 文本密度剪枝 | PruningContentFilter | 同思路自研:分词噪音匹配 + 词数阈值 + 链接密度 |
| 结构化提取 | JsonCss/JsonXPath + LLM 策略 | JsonCss 子集(LLM 策略砍掉) |
| 浏览器/JS 执行 | Playwright/patchright 双栈 | 无——动态渲染页面拿不到正文 |
| Docker API 服务层 | 1211 行 server.py(上游漏洞聚集地) | 无此层,攻击面不存在 |
| CLI/Web UI/MCP/PDF/代理/深爬取 | 有 | 全部砍掉 |
功能对齐的核心场景:静态页抓取 → 去导航/页脚/广告 → LLM 友好 Markdown; CSS 选择器 schema → 结构化 JSON。实测 python.org 首页:新闻列表、成功故事、 PSF 介绍等正文完整保留,导航/横幅/脚本剔除。
如实边界:需要 JS 渲染的页面(如 Bing 首页搜索结果)拿不到正文; 无浏览器、无 JS 执行、无并发调度、无缓存、无代理轮换。
理念致谢
本项目功能、架构与逻辑思路致谢 Crawl4AI (Apache-2.0)。本仓库为独立重写,无任何上游代码血缘;依 Crawl4AI 许可证之 Attribution Requirement,公开分发时注明出处如上。
复刻哲学
外来佳作功能、架构、逻辑皆可复刻,算子代码必自研完善;收编先深扫,复刻必致谢,轻量一个量级。
许可证
MIT(见 LICENSE)。
安装(PyPI)
pip install pialuo # 算子本体 + MCP 入口 pialuo-mcp(stdio JSON-RPC 2.0)
命令行:pialuo <url>(--schema 结构化提取、--json、--no-robots 等);MCP 服务:pialuo-mcp。
边界:无浏览器无 JS,动态渲染页拿不到正文。
Frequently asked questions
What is Pialuo 爬罗剔抉 MCP Server?
Lightweight web scraping MCP: fetch, prune to LLM-friendly markdown, extract via CSS schema.
How do I install Pialuo 爬罗剔抉 MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Pialuo 爬罗剔抉 MCP Server runs locally from the PyPI package pialuo with the command uvx pialuo.
Is Pialuo 爬罗剔抉 MCP Server free and open source?
Yes. Pialuo 爬罗剔抉 MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Pialuo 爬罗剔抉 MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Pialuo 爬罗剔抉 MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Pialuo 爬罗剔抉 MCP Server's trust score calculated?
Pialuo 爬罗剔抉 MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.