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. This MCP tool helps your IDE (like Cursor) get the most current documentation for any npm package instead of relying on outdated or incomplet
Add this skill
npx mdskills install meanands/npm-package-docs-mcpWell-documented MCP server providing fresh npm package documentation with clear setup and fallback strategy
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.
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:
master, main, or develop branches)get_docs_for_npm_packageDescription: 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:
// In your IDE, you can now ask for documentation like:
// "Show me the docs for express"
// "What's the latest API for react-router-dom?"
// "Get documentation for axios"
Edit your Cursor MCP configuration file (usually located at ~/.cursor/mcp.json):
{
"mcpServers": {
"npm-package-docs-mcp": {
"command": "npx",
"args": [
"meanands/npm-package-docs-mcp"
]
}
}
}
Once installed, you can use the tool in Cursor by:
The tool will fetch and display the current documentation for the requested package.
npm run dev
npm run build
npm-docs-mcp/
├── src/
│ ├── server.ts # Main MCP server implementation
│ └── types/
│ └── index.ts # TypeScript type definitions
├── package.json
├── tsconfig.json
└── README.md
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please open an issue on the GitHub repository.
Install via CLI
npx mdskills install meanands/npm-package-docs-mcpNPM Package Docs MCP is a free, open-source AI agent skill. 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. This MCP tool helps your IDE (like Cursor) get the most current documentation for any npm package instead of relying on outdated or incomplet
Install NPM Package Docs MCP with a single command:
npx mdskills install meanands/npm-package-docs-mcpThis downloads the skill files into your project and your AI agent picks them up automatically.
NPM Package Docs MCP works with Claude Code, Claude Desktop, Cursor, Vscode Copilot, Windsurf, Continue Dev, Gemini Cli, Amp, Roo Code, Goose. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.