原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

npm Registry MCP Server

作者:YawLabs版本 0.17.1i★ –i在你的电脑上运行
注册名称io.github.YawLabs/npmjs-mcp

安装

概览

作者提供的说明(英文原文)

npm registry MCP server — package intelligence, security audits, dependency analysis

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 开发者工具

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

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

在终端中运行这条命令

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

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 YawLabs 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 5575 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 5575 个服务器的 71% 更新
  • 基础检查结果等于或优于此分类中其他 5575 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

npm Registry MCP Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.17.1)于9天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:GitHub, Desktop Commander, Cloudflare MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitHub

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

作者:github广泛使用★ 3.4万6天前更新

电脑或云端

Desktop Commander

MCP server for terminal commands, file operations, and process management

作者:wonderwhy-er广泛使用↓ 71万/周★ 1万18天前更新

在你的电脑上运行

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare广泛使用★ 444614个月前更新

在云端运行✓ mcp.cloudflare.com

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@yawlabs/npmjs-mcp

One click adds this to your local Yaw MCP config so it's available in every Yaw Terminal session. Or install manually below.

Run npm registry operations from Claude Code, Cursor, and any MCP client. 64 tools covering the full registry surface: package intelligence, security audits, dependency analysis, org/team management, and the write ops that normally fight you locally (npm deprecate, npm dist-tag, npm owner, npm unpublish).

Built and maintained by Yaw Labs.

Why this one?

Other npm MCP servers wrap npm search and call it done. This one doesn't.

  • Full registry HTTP surface — 64 tools across reads, writes, orgs, teams, hooks, provenance, trusted publishers, and ops health. Not just npm view.
  • Write ops that actually work in agents — npm_deprecate, npm_undeprecate, npm_dist_tag_set, npm_unpublish_version go directly to the HTTP API with a Granular Access Token that has 2FA bypass. No 2FA prompts, no --otp hunts, no ENEEDAUTH from a session-bound .npmrc. (Since 2026-07-31 npm requires an interactive 2FA challenge for owner, access, team membership and grant, org membership and token changes even with 2FA bypass; for those tools the error names the exact npm command a human runs.)
  • Agent-aware failure surfacing — npm_check_auth and npm_publish_preflight detect a non-interactive context and hand back a human-runnable command, and every write error names what was sent and the npm CLI equivalent, instead of looping on unrecoverable errors.
  • Safety by default — npm_unpublish_* requires confirm: true. npm_owner_remove blocks you from locking yourself out. npm_deprecate rejects a message over the registry's 1024-character limit before sending it.
  • Ops playbook built in — npm_ops_playbook returns the canonical tool-vs-CLI-vs-CI decision matrix so your agent picks the right path on the first try.
  • Tool annotations — every tool declares readOnlyHint, destructiveHint, idempotentHint, and openWorldHint, so MCP clients can skip confirmation on safe ops.
  • No API key required for reads — search, packages, downloads, security, dep tree, licenses all work anonymously. Auth is opt-in via NPM_TOKEN.
  • Instant startup — ships as a single bundled file with zero runtime dependencies. No 5-minute node_modules install.
  • Input hardening — package names, scopes, versions, dist-tags, and team names are all regex-validated against npm's actual constraints. Defends against CRLF and path-traversal in URL construction.

Quick start

1. Create `.mcp.json` in your project root

macOS / Linux / WSL:

{

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

Windows:

{

"mcpServers": { "npm": { "command": "cmd", "args": ["/c", "npx", "-y", "@yawlabs/npmjs-mcp@latest"] } } }

Why the extra step on Windows? Since Node 20, child_process.spawn cannot directly execute .cmd files (that's what npx is on Windows). Wrapping with cmd /c is the standard workaround.

2. Restart and approve

Restart Claude Code (or your MCP client) and approve the npm MCP server when prompted.

3. (Optional) Add your npm token for write operations

Read-only tools work without any setup. For write tools (deprecate, dist-tag, owner, team_*, org_member_*, unpublish, hook_*, access_set*, token_revoke), add NPM_TOKEN to the env block:

{

"mcpServers": { "npm": { "command": "npx", "args": ["-y", "@yawlabs/npmjs-mcp@latest"], "env": { "NPM_TOKEN": "npm_xxxxxxxxxxxx" } } } }

Use a Granular Access Token scoped to just the packages and orgs you want your agent to manage.

That's it. Now ask your AI assistant:

"Deprecate my-old-pkg 1.x with a pointer to v2"

"What's the dep tree for fastify look like three levels deep?"

"Audit express for known CVEs and tell me the fix"

"Who are the maintainers of next.js and when did each one last publish?"

Configuration

Environment variableDefaultDescription
NPM_TOKEN(none)npm access token. Required only for write/auth/org/access/hooks tools. Use a Granular Access Token (with 2FA bypass for headless writes); classic tokens, including Automation tokens, were revoked in December 2025.
NPM_REGISTRYhttps://registry.npmjs.orgAlternate registry (enterprise/private). Must support the npm HTTP API shape.
NPM_REQUEST_TIMEOUT_MS30000Timeout for each attempt of a registry request, in milliseconds, including reading the body. A read retries a timeout, a network error, or HTTP 429/502/503/504, up to 3 attempts in all, so a stalled read can take about three times this value. A write is never re-sent after a timeout or network error, because the registry may already have applied it; it retries only on 429/503. A value that is not a positive, finite number (Infinity included) falls back to the default, so the timeout cannot be turned off.
NPM_RETRY_BACKOFF_MS500Base wait before a retry, doubled each time: 500 ms, then 1000 ms by default. When the retried response carries a Retry-After header, that wait (capped at 30 s) is used instead, whatever this is set to. 0, an empty value, or whitespace removes the backoff wait. Any other negative or non-numeric value falls back to the default.
DEBUG(none)Logs one line per attempt of every npm API call to stderr, prefixed [npmjs-mcp]: method, URL, then the status and milliseconds to response headers, or the wait before a retry and the attempt number, or the network error. The token is never logged. Enabled only by the exact values npmjs-mcp or *; anything else, such as 1 or npmjs-mcp:*, is ignored. A DEBUG=* set for another tool turns it on too.
NPMJS_MCP_RUNTIMEautoauto: serve on the oam the launcher is already running under if that is 0.19.1 or newer; otherwise run on the newest oam binary it can find at 0.19.1 or newer (see OAM_BIN); otherwise on Node. An oam host older than 0.19.1 never serves the server itself — it hands off to the newest usable oam, or to Node on PATH, or exits with an error when there is neither. An unusable OAM_BIN is always named on stderr; the other oam binaries found are named, with the reason, only when none of them is usable — an older copy losing to a newer one says nothing. oam: the same, but exit with an error instead of falling back to Node. node: always Node — in-process under npx, and handed off to Node on PATH when a client launches the command with oam run. Case-insensitive, and surrounding whitespace is ignored; any other value behaves like auto.
NPMJS_MCP_SANDBOX(none)1 or true (any case, surrounding whitespace ignored) runs the server in a freshly spawned oam (0.19.1+) under --permission, granting only the npm registry hosts (plus NPM_REGISTRY's host) and the variables the server reads; filesystem and subprocess access stay denied. Forces a spawn even when already running on oam. Under auto, when no usable oam is found, or the one found fails to launch, the server runs without the sandbox and says so on stderr; pair it with NPMJS_MCP_RUNTIME=oam to make that fatal. Ignored under NPMJS_MCP_RUNTIME=node. Any other non-empty value leaves the sandbox off and says so on stderr.
OAM_BIN(none)Path to an oam binary to use in preference to discovery, when it is 0.19.1 or newer. If it does not exist, is older, or will not run, the launcher says so on stderr and carries on with discovery. Discovery looks in OAM_INSTALL_DIR when it is set, then the installed location (%LOCALAPPDATA%\oam\bin then ~/.oam/bin on Windows, ~/.oam/bin elsewhere), then on PATH, asks every oam it finds for its version, and uses the newest; on a tie the earlier location wins. On Windows only oam.exe counts; an oam.cmd / oam.bat shim is never run, and is named on stderr when no usable oam is found. Ignored under NPMJS_MCP_RUNTIME=node, and when already running on oam 0.19.1+ without the sandbox.
Runtime

The server ships a launcher that prefers the oam runtime and falls back to Node. The server itself is a pre-bundled ESM file using only node: builtins, so both paths behave identically — verified against the full MCP surface (handshake, all 64 tools, live registry calls) on each.

oam 0.19.1, the latest release, is the minimum. The launcher asks every oam binary it can find for its version and runs the newest one at or above it, never serves on an older oam, and falls back to Node when there is none (NPMJS_MCP_RUNTIME=oam turns that into a hard error). See Configuration for the details.

Falling back costs nothing: npm has already started Node to run the launcher, so the fallback is an in-process import() — no extra spawn, no extra startup.

oam is faster, but the launcher is not. Measured on windows-arm64, n=12 medians, spawn to first MCP initialize response:

invocationtimevs node
oam run dist/index.js116 ms0.67x
node dist/index.js172 ms1.00x
this launcher (node spawns oam)243 ms1.41x

npm bin entries are Node scripts, so reaching oam through one costs Node's startup *plus* oam's — more than oam saves. The launcher exists so npx users get oam automatically; it is not the fast path.

If you want oam's speed, point your MCP host straight at it and skip the launcher:

{ "mcpServers": { "npmjs": { "command": "oam", "args": ["run", "/abs/path/to/dist/index.js"] } } }

Benchmarking note: measure an installed oam (~/.oam/bin), never one out of a cargo target/ directory — a concurrent cargo build replaces the binary mid-run, and fresh bytes are cold where the node.exe you are comparing against is warm. oam is pre-alpha; re-measure on your own hardware.

oam's `--permission` sandbox is opt-in. Set NPMJS_MCP_SANDBOX=1 and the launcher spawns the server on oam (0.19.1 or newer) with:

  • network granted to registry.npmjs.org:443, api.npmjs.org:443 and replicate.npmjs.com:443, plus the host and port of NPM_REGISTRY when it is set (its own port, or 443 / 80 for https / http). oam compares each request as host:port exactly, so every grant is scoped to the one port the server uses;
  • environment granted to exactly the variables the server reads: NPM_TOKEN, NPM_REGISTRY, NPM_REQUEST_TIMEOUT_MS, NPM_RETRY_BACKOFF_MS and DEBUG;
  • filesystem and subprocess access denied outright. The server reads no files at runtime and spawns nothing, so a dependency that suddenly wants either is stopped by the runtime instead of trusted — which matters for a process holding an NPM_TOKEN.

Under the default NPMJS_MCP_RUNTIME=auto, if no usable oam is found, or the one chosen fails to start, the server runs without the sandbox and says so on stderr. Set NPMJS_MCP_RUNTIME=oam as well to make that an error.

It is not the default because an incomplete grant fails silently rather than loudly. Measure

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx