# npm Registry MCP Server

npm Registry MCP Server is a Claude Code MCP server for package intelligence, security checks, and dependency analysis. It responds to requests about npm packages and registry actions.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: YawLabs
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/YawLabs/npmjs-mcp
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/npm-registry-mcp-server

## What it does

npm Registry MCP Server gives an AI agent access to 64 npm Registry tools. It can inspect packages, run security audits, trace dependency trees, and handle registry writes such as deprecation, dist-tags, ownership, and unpublishing.

Read operations work without a token. Write operations, organization and team controls, hooks, and access changes require `NPM_TOKEN`; headless writes use a Granular Access Token with 2FA bypass. The server is launched with `npx -y @yawlabs/npmjs-mcp` through MCP configuration.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add npm-registry-mcp-server -- npx -y @yawlabs/npmjs-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "npm-registry-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "@yawlabs/npmjs-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "npm-registry-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@yawlabs/npmjs-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add npm-registry-mcp-server npx -y @yawlabs/npmjs-mcp
```

## When to use it
- inspect npm package details and maintainers
- run a security audit for known package vulnerabilities
- trace a dependency tree to a chosen depth
- deprecate a package or change its dist-tag
- check package licenses and download data

## Example prompts
- Audit `express` for known vulnerabilities and list the available fix.
- Show the dependency tree for `fastify` to depth `3`.
- Unpublish version `1.2.3` of `my-old-pkg` from the npm Registry.

## Similar
- [Nekzus-npm-sentinel-mcp](https://affpapa.org/en/nevibecode/mcp/nekzus-npm-sentinel-mcp.md) — MCP server · ★ 19 repo stars
- [npm-check-updates](https://affpapa.org/en/nevibecode/skills/npm-check-updates.md) — skill · 515 installs
- [updating-npm-package](https://affpapa.org/en/nevibecode/skills/updating-npm-package.md) — skill · 438 installs
- [mcp-registry-navigator](https://affpapa.org/en/nevibecode/agents/mcp-registry-navigator.md) — subagent · 628 installs
- [check-npm](https://affpapa.org/en/nevibecode/skills/check-npm.md) — skill · 3200 installs
- [registry](https://affpapa.org/en/nevibecode/mcp/registry.md) — MCP server · ★ 2 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
