🏠 📇 🍎 🪟 🐧 - Search and get up-to-date information about npm, Cargo, PyPI and NuGet packages
Package Registry MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Model Context Protocol (MCP) server that enables AI assistants and agents
(Claude, Cursor, Copilot, etc.) to search package registries and retrieve
up-to-date package information.
Getting Started
Cursor
Alternatively, in Cursor, you can configure MCP servers in your settings:
1. Open Cursor Settings (Cmd/Ctrl + ,)
2. Search for "MCP" or go to Extensions > MCP
3. Add a new server with:
- **Name**: package-registry
- **Command**: npx
- **Args**: ["package-registry-mcp"]
Claude Code
For Claude Code, run the following command in your terminal:
After configuration, you'll have access to package search and information tools.
Claude Desktop
Add this server to your Claude Desktop by adding the following to your
claude_desktop_config.json:
The config file is typically located at:
- **macOS**: ~/Library/Application Support/Claude/claude_desktop_config.json
- **Windows**: %APPDATA%\Claude\claude_desktop_config.json
After adding the configuration, restart Claude Desktop.
Features
- Search NPM packages
- Get detailed NPM package information
- Search crates.io (Rust package registry)
- Get detailed crate information
- Search NuGet packages (.NET package registry)
- Get detailed NuGet package information
- Get detailed PyPI package information (Python package registry)
- Get detailed Go module information (Go package registry)
- Search GitHub Security Advisories for vulnerabilities
- Real-time data directly from package registries
Available Tools
NPM Tools
search-npm-packages
Search the NPM registry for packages matching a query.
**Parameters:**
- query (string): Search term for packages
- limit (number, optional): Maximum number of results (1-100, default: 10)
**Example:**
get-npm-package-details
Get detailed information about a specific NPM package.
**Parameters:**
- name (string): Exact crate name
**Example:**
**Returns detailed information including:**
- Package metadata (name, description, version, license)
- Dependencies (runtime, dev, peer)
- Maintainer information
- Repository and homepage links
- Last 50 versions (newest first)
list-npm-package-versions
List all versions of a specific NPM package.
**Parameters:**
- name (string): Exact crate name
- limit (number, optional): Maximum number of versions to return (1-1000,
default: 100)
**Example:**
**Returns:**
- Package name and total version count
- All versions sorted by release date (newest first)
- Latest version information
crates.io Tools
search-cargo-packages
Search crates.io for Rust crates matching a query.
**Parameters:**
- query (string): Search term for crates
- limit (number, optional): Maximum number of results (1-100, default: 10)
**Example:**
get-cargo-package-details
Get detailed information about a specific crate from crates.io.
**Parameters:**
- name (string): Exact crate name
**Example:**
**Returns detailed information including:**
- Crate metadata (name, description, version, license)
- Keywords and categories
- Download statistics (total and recent)
- Features and crate size
- Repository, homepage, and documentation links
- Last 50 versions (newest first)
list-cargo-package-versions
List all versions of a specific crate from crates.io.
**Parameters:**
- name (string): Exact crate name
- limit (number, optional): Maximum number of versions to return (1-1000,
default: 100)
**Example:**
**Returns:**
- Crate name and total version count
- All versions sorted by release date (newest first)
- Latest and max stable version information
NuGet Tools
search-nuget-packages
Search the NuGet registry for .NET packages matching a query.
**Parameters:**
- query (string): Search term for packages
- limit (number, optional): Maximum number of results (1-100, default: 10)