npm Registry MCP Server
npm registry intelligence, security audits and publish-side writes without the 2FA prompt
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.17.4
- Listing updated
- 3 days ago
About npm Registry MCP Server
npm Registry MCP Server is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Most npm MCP servers stop at search. This one covers the registry's HTTP surface, including writes that fail in non-interactive sessions with the CLI: deprecate, dist-tag, owner changes and unpublishing a version. It uses your token against the HTTP API rather than an interactive 2FA prompt.
On the read side it answers dependency-tree questions to a chosen depth, audits a package for CVEs with CVSS scores, CWEs and fix recommendations, lists maintainers with publish history, and compares packages for maintenance health. The page also mentions orgs, teams, hooks, provenance and trusted publishers.
MIT, from Yaw Labs, installed from npm.
Install
Run in a terminal
claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"npmjs-mcp": {
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"npmjs-mcp": {
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"npmjs-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"npmjs-mcp": {
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"npmjs-mcp": {
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Tools this server provides (9)
Taken from the project documentation; the running server may differ.
- npm_deprecate
- Deprecate a package version range.
- npm_undeprecate
- Remove a deprecation.
- npm_dist_tag_set
- Set a dist-tag.
- npm_owner_add
- Add an owner.
- npm_owner_remove
- Remove an owner.
- npm_unpublish_version
- Unpublish a version.
- npm_check_auth
- Check authentication.
- npm_publish_preflight
- Preflight checks before publishing.
- npm_ops_playbook
- Operations playbook for the registry.
What it does
- Write operations
- Deprecate, tag, own and unpublish.
- Dependency trees
- Transitive trees at set depth.
- CVE audits
- CVSS, CWE and fix advice.
- Maintainer history
- Maintainers and publish dates.
- Package comparison
- Side-by-side health.
- Preflight
- Checks before publishing.
Good for
- Deprecate old releases
- Audit a dependency
- Judge maintenance
- Check publish readiness
Pricing
Open source
MIT licence
Prices change. Check yaw.sh before you buy.
npm Registry MCP Server FAQ
Can it write?
Yes, with your token.
Why not the CLI?
The CLI's interactive 2FA breaks non-interactive sessions.
Licence?
MIT.
Is npm Registry MCP Server free?
Yes. npm Registry MCP Server is open source, so you can use and self-host it for free.
How do I add npm Registry MCP Server to Claude Code?
Run this command in your terminal: claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcp
What are the best alternatives to npm Registry MCP Server?
The closest alternatives to npm Registry MCP Server are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to npm Registry MCP Server

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools