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
claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcpWhat 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
expressfor known vulnerabilities and list the available fix. - Show the dependency tree for
fastifyto depth3. - Unpublish version
1.2.3ofmy-old-pkgfrom the npm Registry.
How to install npm Registry MCP Server
Platform CLI
claude mcp add npmjs-mcp -- npx -y @yawlabs/npmjs-mcpPlatform CLI
codex mcp add npm-registry-mcp-server -- npx -y @yawlabs/npmjs-mcpConfig file
{
"mcpServers": {
"npm-registry-mcp-server": {
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Config file
{
"servers": {
"npm-registry-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@yawlabs/npmjs-mcp"
]
}
}
}Platform CLI
gemini mcp add npm-registry-mcp-server npx -y @yawlabs/npmjs-mcpStep 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.