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 服务器
Docs MCP Server
araboldGrounded Docs MCP Server: Open-Source Alternative to Context7, Nia, and Ref.Tools
Context7 MCP - Up-to-date Docs For Any Cursor Prompt
upstashContext7 Platform -- Up-to-date code documentation for LLMs and AI code editors
Solomd
zhitongblogA markdown editor — and the bridge to your LLM. Local-first, MIT, ~15 MB. Bundled MCP server lets Claude Code / Codex / Cursor drive your vault directly. 14 AI providers BYOK.
Context Portal MCP (ConPort)
GreatScottyMacContext Portal (ConPort): A memory bank MCP server building a project-specific knowledge graph to supercharge AI assistants. Enables powerful Retrieval Augmented Generation (RAG) for context-aware development in your IDE.
Basic Memory
basicmachines-coAI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN
评论