Npm Package Docs
@meanands
A Model Context Protocol (MCP) server that provides up-to-date documentation for npm packages directly in your IDE. This tool fetches the latest README documentation from either the package's GitHub repository or the README bundled with the npm package itself.
概览
What is Npm Package Docs?
This MCP tool helps your IDE retrieve the most current README documentation for any npm package, fetching it from the package’s GitHub repository or the npm package tarball as a fallback.
How to use Npm Package Docs?
Use the provided tool get_docs_for_npm_package with the packageName parameter (e.g., "react") through any MCP‑compatible client like Cursor.
Key features of Npm Package Docs
- Fetches README from package’s GitHub repository (main branch)
- Falls back to npm package tarball if no GitHub repo
- Delivers real‑time, up‑to‑date documentation
- Integrates directly in your IDE via the MCP protocol
Use cases of Npm Package Docs
- Getting the latest README for a new npm package.
- Verifying current API signatures before using a function.
- Avoiding deprecated methods by checking up‑to‑date docs.
- Understanding package usage patterns directly in your editor.
FAQ from Npm Package Docs
What is Npm Package Docs?
It’s an MCP server that retrieves the latest documentation for any npm package, fetching the README from the package’s GitHub repository or the npm package tarball.
How does it fetch documentation?
It first tries the package’s GitHub repository (checking main, master, or develop branches). If no GitHub repository is found, it downloads the npm package tarball and extracts the README.
Which IDEs does it support?
It works with any IDE that supports the MCP protocol, such as Cursor.
Is the documentation always up‑to‑date?
Yes, the tool fetches the latest documentation in real‑time from the source, ensuring you always have the most current information.
What packages can I use it with?
Any npm package. Provide the package name as the packageName parameter (e.g., "lodash").