Skip to content
MCP server

npm Registry MCP Server

npm registry intelligence, security audits and publish-side writes without the 2FA prompt

Runs locallyStatus and history
Install
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-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "npmjs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "npmjs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

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

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools