Menu

Stop LLMs from Hallucinating Old APIs: Fetch Exact-Version PyPI, npm & Rust Docs via MCP
πŸ“°

Stop LLMs from Hallucinating Old APIs: Fetch Exact-Version PyPI, npm & Rust Docs via MCP

DEV Community: apiΒ·theRMNΒ·1 day ago
#L3sGRDQV
#devtoapi#devto#dev#docs#package
Long article (507 words) β€” no AI summary yet.
Reading 0:00
15s threshold

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 ), and docs.rs β€” either don't expose inner pages in sitemap.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 for…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.