NPM Package Docs MCP
A Model Context Protocol (MCP) tool 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 it does
This MCP tool helps your IDE (like Cursor) get the most current documentation for any npm package instead of relying on outdated or incomplete information. It works by:
- GitHub Repository First: If the package has a GitHub repository, it fetches the README directly from the repository's main branch (trying
master,main, ordevelopbranches) - NPM Package Fallback: If no GitHub repository is available, it downloads the package tarball and extracts the README file from the bundled package
- Real-time Updates: Always gets the latest documentation, ensuring you have the most current information
Why this matters
- No more guesswork: Get accurate, up-to-date documentation instead of relying on potentially outdated IDE suggestions
- Better development experience: Understand package APIs and usage patterns with current documentation
- Reduced errors: Avoid issues caused by using outdated API references or deprecated methods
- Seamless integration: Works directly in your IDE through the MCP protocol






