Npm Package Docs
About
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.
Details
- Author
- meanands
- Downloads
- 425
- Categories
- Knowledge Base
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Npm Package DocsCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Use the provided tool get_docs_for_npm_package with the packageName parameter (e.g., "react") through any MCP‑compatible client like Cursor.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"npm package docs": {
"npm-package-docs-mcp": {
"command": "npx",
"args": [
"meanands/npm-package-docs-mcp"
]
}
}
}
}
McpServers
{
"npm-package-docs-mcp": {
"command": "npx",
"args": [
"meanands/npm-package-docs-mcp"
]
}
}
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


