Mcp Npm_docs Server
@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 客户端。
{
"mcpServers": {
"mcp-npm_docs-server": {
"command": "node",
"args": [
"dist/server.js"
]
}
}
}工具
未检测到工具
工具是从 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
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.
记忆与知识 分类下的更多 MCP 服务器
Semantic Scholar MCP Server
YUZongminA FastMCP server implementation for the Semantic Scholar API, providing comprehensive access to academic paper data, author information, and citation networks.
Obsidian MCP Server
cyanheadsRead, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP. STDIO or Streamable HTTP.

Memory
modelcontextprotocolModel Context Protocol Servers
JupyterMCP - Jupyter Notebook Model Context Protocol Integration
jjsantos01A Model Context Protocol (MCP) for Jupyter Notebook
Notion MCP Integration
danhilseA simple MCP integration that allows Claude to read and manage a personal Notion todo list
评论