MCP Npm Docs Server MCP 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

Local serverstdioTypeScript

What is the MCP Npm Docs Server MCP 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.

What it actually does

  • Fetches package metadata and README content using the npms.io API
  • Caches results locally using SQLite (better-sqlite3)
  • Provides the getNpmPackageDocs MCP tool
  • Follows the standard MCP server structure

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
createServer.tsServer instance creation and tool registration.
server.tsMain application entry point.
package.jsonProject metadata and dependencies.
tsconfig.jsonTypeScript compiler options.
nameversion
descriptionhomepage (if available)
dependenciesdevDependencies
getNpmPackageDocsRetrieves documentation and metadata for a specified NPM package.

Configuration

VariableDescriptionRequired
NPM_CACHE_TTLConfiguration value read at startup.Optional
NPM_CACHE_DB_PATHFilesystem location the server is allowed to use.Optional
LOG_LEVELConfiguration value read at startup.Optional
NPM_REGISTRY_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use MCP Npm Docs Server to createServer.ts.”
  • “Use MCP Npm Docs Server to server.ts.”
  • “Use MCP Npm Docs Server to package.json.”

Frequently asked questions

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).