claude mcp add npm-package-docs-mcp -- npx -y npm-package-docs-mcp
A pasteable skeleton generated from the repository name. Check the project README for the exact package and arguments.
Star count
11 ★ · meanands/npm-package-docs-mcp · read from the GitHub search API · (checked 2026-10-16 20:00:20)
Source
collected from the punkpeye/awesome-mcp-servers list · type: MCP server
Harvest history
first seen 2026-10-09 · last seen 2026-10-16 · seen 32× · listed by 7 sources
Score
score 703 · 11 ★ · 7 sources · mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository meanands/npm-package-docs-mcp;first catalogued 2026-10-09;last seen 2026-10-16。There is no official certification or quality rating here — we record sources and dates only.
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: 1. **GitHub Repository First**: If the package has a GitHub repository, it fetches the README directly from the repository's main branch (trying master, main, or develop branches) 2. **NPM Package Fallback**: If no GitHub repository is available, it downloads the package tarball and extracts the README file from the bundled package 3. **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 Tools Provided get_docs_for_npm_package **Description**: Retrieves the latest documentation for any npm package **Parameters**: - packageName (string): The name of the npm package (e.g., "react", "lodash", "express") **Returns**: The README content as text, either from the GitHub repository or the package tarball **Example Usage**: How it Works 1. **Package Lookup**: Queries the npm registry to get package metadata 2. **Repository Detection**: Checks if the package has a GitHub repository URL 3. **GitHub Fetch**: If available, fetches README.md from the repository's main branch 4. **Tarball Extraction**: If no GitHub repo, downloads and extracts the package tarball to find the README 5. **Content Return**: Returns the documentation content to your IDE Installation Prerequisites - Node.js (v16 or higher) - Cursor IDE (or any MCP-compatible IDE) Installation Add to Cursor Add manually to Cursor Edit your Cursor MCP configuration file (usually located at ~/.cursor/mcp.json): 5. **Restart Cursor**: Restart Cursor IDE to load the new MCP server Usage Once installed, you can use the tool in Cursor by: