# npm Registry MCP Server

> npm Registry MCP Server is an open-source MCP server for developer tools. npm registry intelligence, security audits and publish-side writes without the 2FA prompt. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Website:** https://yaw.sh/mcp-servers/npmjs-mcp/
- **Repository:** https://github.com/yawlabs/npmjs-mcp
- **MCP Registry name:** io.github.YawLabs/npmjs-mcp
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "npmjs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "npmjs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "npmjs-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "npmjs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "npmjs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@yawlabs/npmjs-mcp"
      ]
    }
  }
}
```

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/npm-registry-mcp-server
