npm-registry-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@npm-registry-mcp-serverWhat are the latest versions of express?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
npm-registry-mcp-server
A Model Context Protocol (MCP) server that looks up package metadata from the npm registry, powered by package-json by Sindre Sorhus.
Transport: stdio
Validation: zod input/output schemas on every tool
Monitoring: Sentry (
@sentry/node) initialized before the server starts, with automatic MCP instrumentation viawrapMcpServerWithSentryRuntime: Node.js >= 18 (matches the
package-jsonengines requirement)
Repository: https://github.com/yuchen814/npm-registry-mcp-server
Tools
get_package_metadata
Fetch metadata for a package from the npm registry.
Argument | Type | Required | Description |
|
| yes | Package name, scoped packages supported ( |
|
| no | Exact version ( |
|
| no | Return full (non-abbreviated) metadata. Defaults to |
|
| no | Return the registry main entry containing all versions. Defaults to |
|
| no | Omit deprecated versions when resolving ranges (explicit versions/dist-tags still resolve). Defaults to |
Package-not-found and version-not-found conditions are reported as tool errors with clear messages (PackageNotFoundError / VersionNotFoundError from package-json).
get_package_versions
List every published version and all dist-tags of a package.
Argument | Type | Required | Description |
|
| yes | Package name, scoped names supported |
Returns { name, distTags, versions, total } as structured content.
Related MCP server: mcp-server-npm
Install & run
npm install
npm run build
npm start # runs node dist/server.js on stdioDevelopment (no build step):
npm run dev # tsx server.tsTry it with the MCP Inspector:
npm run inspectorClient configuration
Example entry for an MCP client such as Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"npm-registry": {
"command": "node",
"args": ["/absolute/path/to/npm-registry-mcp-server/dist/server.js"],
"env": {
"SENTRY_DSN": "https://examplePublicKey@o0.ingest.sentry.io/0"
}
}
}
}Environment variables
Variable | Default | Description |
| (unset) | Sentry DSN. When unset, Sentry is disabled and the server runs normally. |
|
| Sentry environment tag. |
|
| Sample rate (0.0–1.0) for performance tracing of MCP requests. |
Copy .env.example to get started. Registry selection (including private registries and auth) follows your .npmrc, exactly like npm itself, courtesy of package-json.
Error monitoring
Sentry.init() runs before the MCP server is constructed or connected. Expected lookup failures (unknown package/version) are returned to the client as tool errors and are not sent to Sentry; unexpected failures are captured and flushed before the tool responds. Fatal startup errors are also captured.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuchen814/npm-registry-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server