mcp-npm_docs-server
If you are the rightful owner of mcp-npm_docs-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
An MCP server that provides a tool to fetch metadata and documentation for NPM packages, using a local cache to improve performance.
The NPM Documentation MCP Server is designed to efficiently fetch and serve metadata and README content for NPM packages. It leverages the npms.io API to gather package information and utilizes a local SQLite cache to enhance performance by reducing redundant API calls. The server is structured following the standard MCP server architecture, ensuring compatibility and ease of integration with MCP clients. The project is organized into various directories for configuration, services, tools, types, and utilities, facilitating maintainability and scalability. The server can be configured using environment variables to customize cache settings and logging levels. It supports both production and development modes, with the latter offering auto-reloading for a smoother development experience. The server provides a single MCP tool, `getNpmPackageDocs`, which retrieves comprehensive documentation and metadata for specified NPM packages.
Features
- 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.
Tools
getNpmPackageDocs
Retrieves documentation and metadata for a specified NPM package.