MCP.so
登录

MCP Npm_docs Server

@bsmi021

基本信息

分类

记忆与知识

许可证

MIT

传输方式

stdio

作者

bsmi021

关于 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.

MCP Npm_docs Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-npm_docs-server": {
      "command": "node",
      "args": [
        "dist/server.js"
      ]
    }
  }
}

MCP Npm_docs Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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 getNpmPackageDocs MCP tool.
  • Configurable cache TTL (default 24 hours).
  • Supports forceFresh parameter 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.

常见问题

1

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

2

How can I bypass the cache for a fresh lookup?

Set the `forceFresh` parameter to `true` when calling the tool.

3

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

4

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.

5

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

评论

记忆与知识 分类下的更多 MCP 服务器