MP 

mldsveda/pyscrappy 是一个从 https://github.com/mldsveda/pyscrappy. 导入的 MCP 服务器候选服务器。
概览
mldsveda/pyscrappy 是一个从 https://github.com/mldsveda/pyscrappy. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
自适应Python网页抓取工具包(自愈,隐形)+面向AI代理的MCP服务器
PyScrappy 是一个 AI 原生的网页抓取工具包,将网站转化为结构化、支持大型语言模型(LLM)的数据。你可以将其用作 Python 库,或作为 AI 代理的 MCP 服务器。
📖 文档: pyscrappy.vercel.app
主要特征
- 通用爬虫 — 赋予任意URL,返回结构化文本、链接、图片、表格和元数据
- LLM 准备输出 —
.to_markdown()将任何结果转换为干净的 Markdown;同时 [.to_json()和.to_dataframe() - MCP 服务器 — 将抓取器作为 AI 代理的工具(Claude、光标、本地大型语言模型等)展示出来
- JS 渲染 — 适用于 JavaScript 密集网站的可选 Playwright 后端
- 自定义选择器 — 通过CSS选择器,精确提取所需内容
- 可链式
Selector— 直接使用 CSS/XPath、find_all、find_by_text和find_similar(Scrapy/BeautifulSoup 风格)导航 HTML - 自适应(自愈)选择器 — 当网站更改标记时,记住元素并按相似性重新定位,防止抓取器无声损坏
- 并行刮除 —
scrape_many/scrape_all并行运行刮擦
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Adaptive Python web scraping toolkit (self-healing, stealth)+ MCP server for AI agents
PyScrappy is an AI-native web scraping toolkit that turns websites into structured, LLM-ready data. Use it as a Python library or expose it as an MCP server for AI agents.
📖 Documentation: pyscrappy.vercel.app
Key features
- Generic scraper — give it any URL, get back structured text, links, images, tables, and metadata
- LLM-ready output —
.to_markdown()turns any result into clean Markdown; also.to_json()and.to_dataframe() - MCP server — expose the scrapers as tools for AI agents (Claude, Cursor, local LLMs, …)
- JS rendering — optional Playwright backend for JavaScript-heavy sites
- Custom selectors — pass CSS selectors to extract exactly what you need
- Chainable
Selector— navigate HTML directly with CSS/XPath,find_all,find_by_text, andfind_similar(Scrapy/BeautifulSoup-style) - Adaptive (self-healing) selectors — remember an element and relocate it by similarity when a site changes its markup, so scrapers don’t silently break
- Concurrent scraping —
scrape_many/scrape_allrun scrapes in parallel - Sitemap crawling — enumerate and scrape a whole site from its
sitemap.xml(index + gzip aware) - Proxy & scraping-API support — route through a proxy or ScraperAPI/ScrapeOps for blocked sites
- TLS-fingerprint impersonation —
impersonate="chrome"gets past anti-bot filters that block plain clients (optionalcurl_cffibackend) - Command-line extract —
pyscrappy extract out.mdscrapes a URL straight to a file, no code - Retry & rate-limiting — built-in exponential backoff and per-domain rate limiting
- Type-safe — full type hints,
py.typedmarker - 20+ built-in scrapers — Wikipedia, IMDB, stocks, news, GitHub, Amazon/IKEA, YouTube, and more
Installation
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"pyscrappy": {
"command": "pyscrappy-mcp"
}
}
}