Skip to main content
MCP server CX Codex

npm Registry MCP Server — Claude Code 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.

MIT ★ 6 updated 2026-11-16

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcp
Open on GitHub

What npm Registry MCP Server 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.

What it helps with

  • 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 for the agent

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

How to install npm Registry MCP Server

Platform CLI

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about npm Registry MCP Server

How do I install npm Registry MCP Server in Claude Code?

Run claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcp, then restart Claude Code and approve the MCP server connection.

What does npm Registry MCP Server do?

It gives an agent tools for npm package data, security audits, dependency inspection, and registry write operations.

What does npm Registry MCP Server need to work?

Read operations use npx -y @yawlabs/npmjs-mcp. Write operations need NPM_TOKEN with a Granular Access Token and 2FA bypass.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open