Mcp Npm_docs Server
@bsmi021
About Mcp Npm_docs Server
An MCP server that provides a tool to fetch metadata and documentation (including README content) for NPM packages, using a local cache to improve performance.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-npm_docs-server": {
"command": "node",
"args": [
"dist/server.js"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Mcp Npm_docs Server?
An MCP server that provides a tool to fetch metadata and documentation (including README content) for NPM packages. It uses the npms.io API and caches results locally with SQLite to improve performance. It is intended for developers using MCP clients (like Cline) who need programmatic access to package documentation.
How to use Mcp Npm_docs Server?
Install dependencies with npm install, build with npm run build, then run the compiled server with node dist/server.js. Configure caching via environment variables NPM_CACHE_TTL and NPM_CACHE_DB_PATH. Integrate with an MCP client by adding the server entry (using the absolute path to dist/server.js) to the client’s MCP settings file. The server exposes a single tool getNpmPackageDocs.
Key features of Mcp Npm_docs Server
- Fetches package metadata and README via npms.io API.
- Caches results locally using SQLite (better-sqlite3).
- Provides the
getNpmPackageDocsMCP tool. - Configurable cache TTL (default 24 hours).
- Supports
forceFreshparameter to bypass cache. - Follows standard MCP server structure.
Use cases of Mcp Npm_docs Server
- Retrieve documentation and metadata for a specific NPM package.
- Integrate package information into developer tools or workflows.
- Reduce API calls and speed up repeated lookups using local caching.
- Programmatically check package version, dependencies, license, and README.
FAQ from Mcp Npm_docs Server
What does the getNpmPackageDocs tool return?
It returns a JSON object with the package name, version, description, homepage, repository URL, author, license, keywords, dependencies, devDependencies, and README markdown content (when available via npms.io).
How can I bypass the cache for a fresh lookup?
Set the forceFresh parameter to true when calling the tool.
How do I configure the cache TTL?
Set the environment variable NPM_CACHE_TTL to a number of seconds. The default is 86400 (24 hours).
What API does the server use?
It uses the npms.io API to fetch package data. The NPM_REGISTRY_URL config variable exists but is currently ignored.
What are the runtime dependencies?
The server requires Node.js. It uses better-sqlite3 for caching and is built with TypeScript. All dependencies are installed via npm install.
Frequently asked questions
What does the `getNpmPackageDocs` tool return?
It returns a JSON object with the package name, version, description, homepage, repository URL, author, license, keywords, dependencies, devDependencies, and README markdown content (when available via npms.io).
How can I bypass the cache for a fresh lookup?
Set the `forceFresh` parameter to `true` when calling the tool.
How do I configure the cache TTL?
Set the environment variable `NPM_CACHE_TTL` to a number of seconds. The default is 86400 (24 hours).
What API does the server use?
It uses the [npms.io API](https://api.npms.io/) to fetch package data. The `NPM_REGISTRY_URL` config variable exists but is currently ignored.
What are the runtime dependencies?
The server requires Node.js. It uses `better-sqlite3` for caching and is built with TypeScript. All dependencies are installed via `npm install`.
Basic information
More Memory & Knowledge MCP servers
MemoryMesh
CheMiguel23A knowledge graph server that uses the Model Context Protocol (MCP) to provide structured memory persistence for AI models.
Groundwork
Rarefied-EarthGroundwork: company memory for your AI tools. Docs public. Source closed. Public proof needs no account.
Docs MCP Server
araboldGrounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools

The Cloud
TekaThe Cloud is the AI-native workspace that gives every AI — Claude, ChatGPT, Gemini, and other Frontier & Free or Local models — shared memory and real agents. Not cloud computing: thecloud.so is one workspace where your

PLUR
plur-aiAI agents start every session with amnesia — you re-explain the project, repeat your preferences, and correct the same mistakes over and over. PLUR gives them a memory that persists. Your agent's corrections, preference
Comments