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.
「メモリとナレッジ」の他のコンテンツ
Anytype MCP Server
anyprotoAn MCP server enabling AI assistants to interact with Anytype - your encrypted, local and collaborative wiki - to organize objects, lists, and more through natural language.
Rust Docs MCP Server
Govcraft🦀 Prevents outdated Rust code suggestions from AI assistants. This MCP server fetches current crate docs, uses embeddings/LLMs, and provides accurate context via a tool call.
minutes
silversteinEvery meeting, every idea, every voice note — searchable by your AI. Open-source, privacy-first conversation memory layer.
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.
Notion MCP Server
suekouA Model Context Protocol server for connecting Notion to MCP-compatible clients
コメント