Every developer using AI coding assistants (Cursor, Claude Desktop, Windsurf) or building RAG pipelines hits the same wall: LLMs hallucinate deprecated methods or mix up major library versions (like Pydantic v1 vs v2, NumPy 1.x vs 2.x, or fast-moving Rust crates).
And if you try pointing a generic "URL-to-Markdown" scraper at library documentation, two things usually break:
- You first have to manually find the real docs URL for every package.
- Huge parts of the ecosystem — Read the Docs, Sphinx / PyData sites (
numpy,pandas,scipy,openpyxl,scikit-learn), anddocs.rs— either don't expose inner pages insitemap.xml, hide behind<meta http-equiv="refresh">/ version-hub splash pages, or dump noisy HTML navigation into your context window.
To solve this cleanly, I built Package Docs Finder on Apify.
What It Does
Instead of passing URLs, you pass a package name, ecosystem (pypi, npm, or crates), and optionally an exact version and topic:
- Fast-path
llms.txt: Automatically checks forllms-full.txt/llms.txtfirst (used by modern libraries likezod,express, etc.). - Deep Sphinx & Read the Docs support: Parses
sitemap.xml,robots.txt, and Sphinxsearchindex.js— prioritizing tutorials and user guides ahead of thousands of auto-generated API stubs. - Version hubs &
docs.rs: Follows version landing pages (e.g.numpy2.4->/doc/2.4/) and extracts clean module/trait documentation fromdocs.rsfor Rust crates (tokio,serde,clap,reqwest). - LLM-ready Markdown: Strips navbars/footers/copy-buttons while preserving fenced code block language tags (
python,typescript,rust). - Dual Output: Structured JSON items in the Apify Dataset (for AI agents & RAG) + a single merged
DOCUMENTATION.mdfile in Key-Value Store.
Add It to Cursor or Claude Desktop in 30 Seconds (via MCP)
Because it runs on Apify with Limited permissions, you can expose it directly as an MCP tool using Apify's hosted MCP server (OAuth handles sign-in automatically — Apify's free tier includes $5/month of credits, which covers ~1,600 extracted doc pages for free):
{ "mcpServers": { "package-docs": { "url": "https://mcp.apify.com/?tools=thermn/package-docs-finder" } } } Or via npx if you prefer stdio with an APIFY_TOKEN:
{ "mcpServers": { "package-docs": { "command": "npx", "args": [ "-y", "@apify/actors-mcp-server", "--tools", "thermn/package-docs-finder" ], "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" } } } } Once connected, you can prompt your agent directly:
"Use package-docs-finder to fetch the
openpyxldocs filtered by topicchartand build me a bar chart generator."
"Fetchnumpyversion2.4quickstart docs before refactoring this module."
Try It Out / Break It
You can test it directly in the browser or plug it into n8n / Make / Python workflows here:
👉 Package Docs Finder on Apify Store
If you know any tricky packages or custom documentation engines that usually break scrapers, drop them in the comments — I'd love to test them and add support!