1. Conduid
  2. Science
  3. Npmjs
MCP server · Science

Npmjs

npm registry MCP server — package intelligence, security audits, and dependency analysis for AI assistants

53Fair

Scored just now · breakdown

About Npmjs

Npmjs is an MCP server published by YawLabs in the Science category: npm registry MCP server — package intelligence, security audits, and dependency analysis for AI assistants. Conduid read 64 tools from its source: npm_access_set, npm_access_set_mfa, npm_audit, npm_audit_deep, npm_check_auth, npm_collaborators and 58 more. It is published to npm as @yawlabs/npmjs-mcp and starts with npx.

The repository has 6 stars and 1 forks, and its last commit was on 30 Nov 2026. Conduid has no tagged release on record for it. It passes all 1 static checks Conduid ran on the repository. Its topics include npm, npmjs, registry, packages, security and audit.

Install

Claude Code
claude mcp add npmjs -- npx -y @yawlabs/npmjs-mcp
npx
npx -y @yawlabs/npmjs-mcp
From source
git clone https://github.com/YawLabs/npmjs-mcp

Tools (64)

npm_access_setSet package access level: 'public' or 'restricted' (private). 'private' is accepted as an alias for 'restricted' for ergonomics -- both map to the registry wire value 'restricted'. Unscoped packages are always public. Restricted access requires a paid npm account.
ParameterTypeDescription
access *stringAccess level ('private' maps to 'restricted' on the wire)
name *stringPackage name
npm_access_set_mfaConfigure 2FA requirement for publishing: 'none' (off), 'publish' (2FA required), 'automation' (2FA required but automation tokens can bypass).
ParameterTypeDescription
level *stringMFA level for publish
name *stringPackage name
npm_auditQuick vulnerability check for specific packages and versions using the bulk advisory API. Returns matching advisories with severity, CVEs, and patched versions. For richer detail (CVSS scores, CWEs, fix recommendations), use npm_audit_deep instead.
ParameterTypeDescription
packages *objectObject mapping package names to arrays of version strings, e.g. {"lodash": ["4.17.20"]}
npm_audit_deepFull security audit on a dependency set — returns detailed advisories with CVSS scores, CWEs, affected version ranges, fix recommendations, and full vulnerability metadata. Uses the npm audit v1 endpoint which provides richer detail than the bulk advisory API (npm_audit). Requires you to provide the dependency map (use npm_dependencies to get it first).
ParameterTypeDescription
dependencies *objectDependencies to audit as { "package": "version" }, e.g. { "express": "4.17.1" }
name *stringProject name
versionstringProject version (default: '1.0.0')
npm_check_authQuick auth health check — returns structured data about npm auth status, token capability, and whether headless (CI/agent) publishing is possible. Run this BEFORE attempting any publish operation. Returns canPublishHeadless boolean and a clear recommendation. MCP servers are called by AI agents which CANNOT open browsers or enter OTP codes. This tool detects that and provides the exact terminal command for the human to run instead of suggesting unworkable retries.
npm_collaboratorsGet all users who have access to a package and their permission levels (read-only, read-write). Useful for verifying who can publish to a package before setting up CI/CD.
ParameterTypeDescription
name *stringPackage name (e.g. 'express' or '@yawlabs/npmjs-mcp')
npm_compareCompare 2-5 packages side-by-side — downloads, version, license, maintainers, size, last publish, and security status. Great for 'should I use X or Y?' decisions.
ParameterTypeDescription
packages *arrayPackage names to compare
npm_dep_treeResolve the production dependency tree for a package version (up to a configurable depth). Shows the full transitive dependency graph with versions. Issues one registry request per discovered package (10 in flight), so a wide tree at depth 4-5 can take a while; the walk is capped at 60s and returns `truncated: true` with a warning if it runs out of budget.
ParameterTypeDescription
depthnumberMax tree depth where the root counts as level 1 (default 3 = root + 2 transitive levels, max 5)
name *stringPackage name
versionstringSemver version or dist-tag (default: 'latest')
npm_dependenciesGet the dependency lists for a specific package version — production deps, devDeps, peerDeps, and optionalDeps.
ParameterTypeDescription
name *stringPackage name
versionstringSemver version or dist-tag (default: 'latest')
npm_deprecateDeprecate a package or specific versions. Shows a warning message on install. Uses the HTTP API with NPM_TOKEN, so no CLI login or OTP prompt is involved; a token without 2FA bypass is refused with 401 or 403. Registry hard limit: deprecation messages must be <= 1024 characters. A message over the limit, or a versionRange matching no published version, is rejected locally as HTTP 400 before any write; a 422 from the registry describes the packument that was sent. Message punctuation is never checked.
ParameterTypeDescription
message *stringDeprecation message. Use npm_undeprecate to clear.
name *stringPackage name (e.g. '@yawlabs/spend')
versionRangestringSemver range. Omit to deprecate ALL versions. Example: '<1.0.0' or '0.3.x'. Standard semver applies — bare integers are x-ranges (e.g. '0' means '0.x.x', not exact version 0). For a single version use '=1.2.3'.
npm_dist_tag_removeRemove a dist-tag from a package. The 'latest' tag cannot be removed, only reassigned.
ParameterTypeDescription
name *stringPackage name
tag *stringDist-tag name to remove
npm_dist_tag_setPoint a dist-tag (e.g. 'latest', 'beta', 'next') at a specific version. Common uses: promote a beta to latest, roll back latest to a prior version, maintain separate channels.
ParameterTypeDescription
name *stringPackage name
tag *stringDist-tag name (e.g. 'latest', 'beta', 'next')
version *stringVersion the tag should point to
npm_dist_tagsGet dist-tags for a package (latest, next, beta, etc).
ParameterTypeDescription
name *stringPackage name
npm_downloadsGet total download count for a package over a period (last-day, last-week, last-month, last-year, or a custom date range like 2025-01-01:2025-12-31).
ParameterTypeDescription
name *stringPackage name
periodstringPeriod: 'last-day', 'last-week', 'last-month', 'last-year', or 'YYYY-MM-DD:YYYY-MM-DD' (default: 'last-week')
npm_downloads_bulkCompare download counts for multiple packages over a period. Up to 128 packages. Scoped packages (@scope/name) are NOT supported by the bulk endpoint — call npm_downloads separately for each scoped package.
ParameterTypeDescription
packages *arrayArray of package names to compare (unscoped only)
periodstringPeriod (default: 'last-week')
npm_downloads_rangeGet daily download counts for a package over a period. Returns per-day breakdown.
ParameterTypeDescription
name *stringPackage name
periodstringPeriod: 'last-week', 'last-month', 'last-year', or 'YYYY-MM-DD:YYYY-MM-DD' (default: 'last-month')
npm_healthAssess the health of a package — maintenance activity, download trend, security status, deprecation, and documentation quality.
ParameterTypeDescription
name *stringPackage name
npm_hook_addCreate a registry webhook. Target is 'pkg' or '@scope/pkg' for a package, '@scope' for a scope, or '~user' for a user's packages. Endpoint is the HTTPS URL to POST events to; secret is used to HMAC-sign payloads. The secret is never echoed back in tool responses.
ParameterTypeDescription
secret *stringSecret used to HMAC-sign webhook payloads
target *stringHook target: 'pkg', '@scope/pkg', '@scope', or '~user'
npm_hook_getGet a single webhook by its ID. The stored secret is redacted from the response.${HOOKS_SUNSET_NOTE}
ParameterTypeDescription
id *stringHook ID (UUID from npm_hook_list)
npm_hook_listList webhooks. Optionally filter by package name. Secrets are redacted from responses.${HOOKS_SUNSET_NOTE}
ParameterTypeDescription
limitnumberMax results
offsetnumberPagination offset
packagestringFilter by package name
npm_hook_removeDelete a webhook by ID.${HOOKS_SUNSET_NOTE}
ParameterTypeDescription
id *stringHook ID
npm_hook_updateReplace a webhook's endpoint AND signing secret. Both are required: the registry PUT overwrites the hook config, so this call always rotates the secret to whatever you pass — supply the current secret if you only mean to change the endpoint. The returned hook object has the secret redacted.
ParameterTypeDescription
id *stringHook ID
secret *stringSigning secret to store. Always written; pass the existing secret to leave it effectively unchanged.
npm_license_checkCheck the license of a package and its direct production dependencies. Flags missing or non-standard licenses. Matches single SPDX license identifiers case-insensitively (so 'mit' and 'MIT' both match). SPDX expressions like '(MIT OR Apache-2.0)' are NOT decomposed — they are flagged unless added to `allowed` verbatim. Issues 2 requests per direct dependency (10 in flight), capped at 60s; deps not reached in time come back as `NOT_CHECKED` (and are flagged, never treated as allowed).
ParameterTypeDescription
allowedarraySPDX license identifiers to treat as allowed (default: MIT, ISC, BSD-2-Clause, BSD-3-Clause, Apache-2.0, 0BSD, Unlicense)
name *stringPackage name
versionstringSemver version or dist-tag (default: 'latest')
npm_maintainersGet current maintainers and their publish history for a package.
ParameterTypeDescription
name *stringPackage name
npm_ops_playbookReturn canonical recipes for common npm operations — which MCP tool to call for which op, CLI fallbacks when the MCP server can't handle something, and message format guidance. Call this FIRST when you're not sure how to do an npm operation. Prevents reinventing approaches that don't work.
npm_org_member_removeRemove a user from an org. Their team memberships in that org are also removed. Requires confirm: true — team memberships cascade and cannot be selectively preserved.
ParameterTypeDescription
confirm *stringMust be literally true. Guards against accidental member removal.
org *stringOrganization name
user *stringnpm username
npm_org_member_setAdd a user to an org or change their role. Roles: 'developer', 'admin', 'owner'. If the user is already in the org, updates the role. Omitting `role` keeps the member's current role: this tool reads the roster first and re-sends the existing role explicitly, because the registry DEFAULTS an omitted role to 'developer' rather than preserving it (which would silently demote an admin or owner). For a user who is not yet a member, omitting `role` adds them as 'developer'.
ParameterTypeDescription
confirm *stringMust be literally true. Guards against accidental org membership changes.
org *stringOrganization name (with or without leading @)
rolestringRole to assign
user *stringnpm username
npm_org_membersList all members of an npm organization with their roles (owner, admin, developer). Requires authentication as an org member.
ParameterTypeDescription
org *stringOrganization name (without @ prefix)
npm_org_packagesList all packages accessible to an npm organization with their access levels. Shows what the org owns or has been granted access to.
ParameterTypeDescription
org *stringOrganization name (without @ prefix)
npm_org_teamsList all teams within an npm organization. Requires authentication as an org member.
ParameterTypeDescription
org *stringOrganization name (without @ prefix)
npm_owner_addAdd a user as a maintainer of a package. They will have publish and write permissions. Resolves the user's email via /-/user/ (no need to supply it). Use npm_collaborators to verify before adding.
ParameterTypeDescription
name *stringPackage name
username *stringnpm username to add as maintainer
npm_owner_removeRemove a user from a package's maintainer list. Refuses if it would leave the package with zero maintainers (lockout prevention).
ParameterTypeDescription
name *stringPackage name
username *stringnpm username to remove
npm_packageGet package metadata — description, dist-tags, latest version, maintainers, license, repository, keywords. Does not include per-version details (use npm_version for that).
ParameterTypeDescription
name *stringPackage name (e.g. 'express' or '@anthropic-ai/sdk')
npm_package_accessGet package access settings — visibility (public/private), whether publish requires 2FA, and whether automation tokens can bypass 2FA. Critical for understanding why CI publishing fails: if publish_requires_tfa is true but automation_token_overrides_tfa is false, automation tokens cannot publish.
ParameterTypeDescription
name *stringPackage name (e.g. 'express' or '@yawlabs/npmjs-mcp')
npm_profileGet the authenticated user's npm profile — name, email, 2FA status, creation date. Useful for checking whether 2FA is enabled (which affects token requirements for publishing).
npm_provenanceRetrieve Sigstore attestations for a specific package version. Shows SLSA provenance (which CI built it, from which repo/commit) and publish attestations. NOTE: this tool RETRIEVES attestations from the registry -- it does NOT perform cryptographic signature, certificate-chain, or Rekor transparency-log verification. Use a dedicated Sigstore client to cryptographically verify the bundles.
ParameterTypeDescription
name *stringPackage name (e.g. '@anthropic-ai/sdk')
version *stringExact semver version (e.g. '1.0.0')
npm_publish_preflightComprehensive pre-publish validation — run before publishing ANY npm package. Returns an actionable checklist with pass/fail/warn for each item. ASSUMES NON-INTERACTIVE CONTEXT BY DEFAULT because MCP servers are called by AI agents that: - CANNOT open browsers (so --auth-type=web is useless) - CANNOT enter OTP codes - CANNOT retry with 2FA — this is a hand-off to the human Checks: auth token validity, 2FA requirements, token type inference, org-level token reuse, package name availability, maintainer access, scoped package settings. When issues are found, returns structured actions with exact commands for the HUMAN to run in their terminal — never suggests actions an agent cannot perform.
ParameterTypeDescription
name *stringPackage name to publish (e.g. '@yawlabs/npmjs-mcp')
npm_readmeGet the README content of a package.
ParameterTypeDescription
name *stringPackage name
npm_recent_changesGet the most recent package publishes/updates from the npm registry via the CouchDB changes feed. Note: uses replicate.npmjs.com which may have intermittent availability.
ParameterTypeDescription
limitnumberNumber of recent changes (default 25, max 100)
npm_registry_statsGet total npm-wide download counts for a period. Shows overall registry activity.
ParameterTypeDescription
periodstringPeriod: 'last-day', 'last-week', 'last-month' (default: 'last-week')
npm_release_frequencyAnalyze the release cadence of a package — publish timeline, gaps, and whether the project is actively maintained.
ParameterTypeDescription
limitnumberNumber of recent releases to analyze (default 20)
name *stringPackage name
npm_searchSearch the npm registry for packages. Supports text search and qualifiers like 'keywords:mcp', 'author:user', 'maintainer:user', 'scope:org', 'not:insecure', 'is:unstable'.
ParameterTypeDescription
fromnumberOffset for pagination
maintenancenumberWeight for maintenance score (0-1)
popularitynumberWeight for popularity score (0-1)
qualitynumberWeight for quality score (0-1)
query *stringSearch text. Supports qualifiers: keywords:x, author:x, maintainer:x, scope:x
sizenumberNumber of results (default 20, max 250)
npm_signing_keysGet the npm registry's ECDSA signing keys used to verify package signatures.
npm_team_createCreate a team inside an organization. Team is passed as '@scope:team'.
ParameterTypeDescription
descriptionstringOptional team description
team *stringTeam in the form '@scope:team'
npm_team_deleteDelete a team. Team is passed as '@scope:team'. Revokes all package permissions that team held, and team memberships are also removed. Requires confirm: true — this removes the team and all its package grants in one call. List the team's current grants with npm_team_packages first if you need to preserve them.
ParameterTypeDescription
confirm *stringMust be literally true. Guards against accidental team deletion.
team *stringTeam in the form '@scope:team'
npm_team_grantGrant a team read-only or read-write permission on a package. Scope and team are passed as @scope:team (e.g. '@yawlabs:devs'). Requires org admin or team admin.
ParameterTypeDescription
package *stringPackage name. Field is named 'package' to match the npm CLI (diverges from 'name' used elsewhere in this server).
permissions *stringPermission level
team *stringTeam in the form '@scope:team' (e.g. '@yawlabs:devs')
npm_team_member_addAdd a user to a team. Team is '@scope:team'. User must already be in the org.
ParameterTypeDescription
team *stringTeam in the form '@scope:team'
user *stringnpm username
npm_team_member_removeRemove a user from a team. Team is '@scope:team'. User remains in the org.
ParameterTypeDescription
team *stringTeam in the form '@scope:team'
user *stringnpm username
npm_team_membersList all members of a team with their roles (e.g. 'developer'). Complements npm_team_member_add and npm_team_member_remove — use this to audit who is currently on the team before adding or removing members.
ParameterTypeDescription
org *stringOrganization name (without @ prefix)
team *stringTeam name
npm_team_packagesList all packages a specific team has access to and their permission levels (read-only or read-write). Useful for auditing team permissions.
ParameterTypeDescription
org *stringOrganization name (without @ prefix)
team *stringTeam name
npm_team_revokeRevoke a team's access to a package. Team is passed as '@scope:team'. Does not delete the team itself — use npm_team_delete for that.
ParameterTypeDescription
package *stringPackage name. Field is named 'package' to match the npm CLI (diverges from 'name' used elsewhere in this server).
team *stringTeam in the form '@scope:team'
npm_token_revokeRevoke an access token by its key (UUID from npm_tokens). Requires confirm: true. Revoking the token currently in use by NPM_TOKEN will break the next call. Creating tokens is NOT exposed because the endpoint requires the user password — create via https://www.npmjs.com/settings/~/tokens instead.
ParameterTypeDescription
confirm *stringMust be literally true. Guards against revoking the token you're authenticating with.
tokenKey *stringToken key (UUID shown by npm_tokens)
npm_tokensList all access tokens for the authenticated npm user. Shows token type, creation date, CIDR restrictions, and read-only status. Critical for finding reusable automation/granular tokens that cover your org scope — avoids the common mistake of creating duplicate tokens or using publish tokens in CI (which still require OTP).
ParameterTypeDescription
pagenumberPage number for pagination (default: 0)
perPagenumberResults per page (default: 25)
npm_trusted_publishersList trusted publishing configurations for a package. Shows OIDC trust relationships with CI/CD providers (GitHub Actions, GitLab CI, CircleCI) that allow tokenless publishing. Requires authentication with write access to the package.
ParameterTypeDescription
name *stringPackage name (e.g. 'express' or '@yawlabs/npmjs-mcp')
npm_typesCheck TypeScript type support for a package — whether it ships built-in types (types/typings field) or has a DefinitelyTyped companion (@types/* package).
ParameterTypeDescription
name *stringPackage name (e.g. 'express' or '@anthropic-ai/sdk')
versionstringSemver version or dist-tag (default: 'latest')
npm_undeprecateClear the deprecation message from a package or specific versions. Equivalent to npm_deprecate with an empty message but more explicit about intent.
ParameterTypeDescription
name *stringPackage name
versionRangestringSemver range. Omit to undeprecate ALL versions.
npm_unpublish_packageUnpublish an ENTIRE package (all versions). DELETE /{pkg}/-rev/{rev}. IRREVERSIBLE: the name is blocked for 72 hours and cannot be re-published. For single-version unpublish prefer npm_unpublish_version. Requires confirm: true.
ParameterTypeDescription
confirm *stringMust be literally true. Guards against accidental full unpublish.
name *stringPackage name
npm_unpublish_versionUnpublish a specific version of a package. IRREVERSIBLE: once unpublished, the version cannot be re-published and will be blocked for 72 hours. Only works within 72 hours of the original publish for most packages. Requires explicit confirm: true to prevent accidents. Follows the npm CLI flow (mutate packument + delete tarball). For full-package unpublish use npm_unpublish_package. Dist-tag handling: any dist-tag that pointed at the unpublished version is removed. Only `latest` is auto-reassigned (to the highest remaining stable version). Other tags like `next`/`beta` are left unset — reassign them explicitly with npm_dist_tag_set if needed.
ParameterTypeDescription
confirm *stringMust be literally true. Guards against accidental unpublish.
name *stringPackage name
version *stringSpecific version to unpublish (e.g. '1.2.3')
npm_user_packagesList all packages published by a specific npm user. Shows package names and the user's access level for each. Requires authentication.
ParameterTypeDescription
username *stringnpm username
npm_verify_tokenVerify the NPM_TOKEN and surface its capabilities — username, 2FA status, and whether writes are likely to succeed. Call this FIRST when debugging any write failure to rule out auth issues before trying other fixes. Faster than running writes and interpreting 401/403 errors.
npm_versionGet detailed metadata for a specific version — dependencies, dist info, file count, size, deprecation status.
ParameterTypeDescription
name *stringPackage name
versionstringSemver version or dist-tag (default: 'latest')
npm_version_downloadsGet download counts broken down by version for the last week. Shows version adoption.
ParameterTypeDescription
name *stringPackage name
periodstringPeriod: 'last-day', 'last-week', 'last-month' (default: 'last-week')
npm_versionsList published versions of a package with their publish dates, ordered newest first. Returns up to `limit` versions (default 50). Set limit=0 to return all.
ParameterTypeDescription
limitnumberMax versions to return, newest first (default 50, 0 = all)
name *stringPackage name
npm_whoamiCheck the currently authenticated npm user. Verifies the NPM_TOKEN is valid and returns the associated username. Essential for debugging auth issues before publishing.

Security checks

  • ✓README presentThe repository's README runs to about 1.7K words.

5 checks have not been run yet.

README

The repository's README runs to about 1.7K words. The original in the repository is authoritative.

Read full README
Questions

About Npmjs

How do I install Npmjs?

In Claude Code, run claude mcp add npmjs -- npx -y @yawlabs/npmjs-mcp. Other MCP clients take the command after "--" in their server configuration.

Is Npmjs safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). It passes all 1 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Npmjs still maintained?

Yes — the last commit was 2 days ago. The repository has 6 stars and 1 forks.

What tools does Npmjs provide?

Conduid read 64 tools from the source: npm_access_set, npm_access_set_mfa, npm_audit, npm_audit_deep, npm_check_auth, npm_collaborators, npm_compare, npm_dep_tree and 56 more. 58 of them publish their parameters, listed under Tools above.