depaudit-mcp
Audits npm projects via package-lock.json v2/v3, including nested node_modules, workspaces, and aliases; queries the npm registry for latest versions and suggests upgrades or overrides for vulnerable packages.
Supports dependency auditing for pnpm projects by parsing pnpm-lock.yaml v6 through v9, including transitive dependency paths and fix suggestions.
Audits Poetry projects by parsing poetry.lock and using the adjacent pyproject.toml to distinguish direct dependencies.
Queries PyPI for latest Python package releases and supports vulnerability and outdated-dependency checks for Python packages.
Audits Yarn v1 projects by parsing yarn.lock; Yarn Berry lockfiles are explicitly rejected with a clear message.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@depaudit-mcp Scan this project for vulnerable dependencies and tell me the most urgent fixes."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
depaudit-mcp
Let your AI agent audit your project's dependencies, transitive ones included, straight from the lockfiles.
depaudit-mcp is an MCP server that reads lockfiles, asks OSV.dev which locked versions have known vulnerabilities, and tells the agent what to upgrade, how risky the upgrade is, and which direct dependency drags the problem in. It is read-only: it never edits your lockfiles or manifests. No API key is needed.
Lockfile | Notes |
| dev groups and workspace members count as direct |
| direct deps come from the |
|
|
| v2 and v3; nested |
| v6 to v9 |
| Yarn v1 (Berry is rejected with a clear message) |
| workspace members are the roots; git/path sources are skipped |
| direct modules come from |
What it looks like
Real output (OSV data of 2026-11-06) for an npm project that depends on lodash 4.17.15 and mkdirp 0.5.1:
> scan_project .
depaudit scan of C:\work\demo
package-lock.json: 35 packages, 3 direct, 32 transitive [C:\work\demo\package-lock.json]
9 advisories across 4 vulnerable package versions: 1 CRITICAL, 4 HIGH, 3 MODERATE, 1 LOW
== package-lock.json (C:\work\demo\package-lock.json)
CRITICAL minimist 0.0.8 [transitive] fix: upgrade to >= 0.2.4
- GHSA-xvch-5gv4-984h (CVE-2021-44906) CRITICAL CVSS 9.8, fixed in 0.2.4: Prototype Pollution in minimist
- GHSA-vh95-rmgr-6w4m (CVE-2020-7598) MODERATE CVSS 5.6, fixed in 0.2.1: Prototype Pollution in minimist
via: mkdirp 0.5.1 > minimist 0.0.8
HIGH lodash 4.17.15 [direct] fix: upgrade to >= 4.18.0
- GHSA-35jh-r3h4-6jhm (CVE-2021-23337) HIGH CVSS 7.2, fixed in 4.17.21: Command Injection in lodash
...
> suggest_fixes .
1. minimist 0.0.8 -> 0.2.4 [transitive, minor] fixes 2 advisory/ies, worst CRITICAL BREAKING: major/0.x bump, read the changelog and run tests
do: upgrade the parent, or add "overrides": {"minimist": "0.2.4"} to package.json
pulled in by: mkdirp 0.5.1 > minimist 0.0.8
3. lodash 4.17.15 -> 4.18.1 [direct, minor] fixes 5 advisory/ies, worst HIGH
do: npm install lodash@4.18.1Note the lodash target: 4.18.0 is listed as the fix for one advisory, but OSV says 4.18.0
is itself affected by another, so the plan moves on to 4.18.1. Every proposed target is re-checked.
Related MCP server: @4da/mcp-server
Install
Needs Python 3.10+ and internet access to api.osv.dev and the package registries.
Claude Code
claude mcp add depaudit -- uvx depaudit-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"depaudit": { "command": "uvx", "args": ["depaudit-mcp"] }
}
}Without uv: pip install depaudit-mcp, then use depaudit-mcp as the command.
Tools
Tool | What it does |
| Finds lockfiles under |
| Minimal upgrade plan: the smallest version fixing every advisory (verified clean against OSV), a BREAKING flag for major and 0.x-minor bumps, the parent that pulls the package in, and the command or override to apply. Prints only; changes nothing. |
| Packages behind the latest release on PyPI, npm, crates.io or the Go proxy, labelled MAJOR / MINOR / PATCH. |
| One name and version, no lockfile needed. Also shows the latest release. |
| An advisory in detail: summary, severity and vector, affected ranges, fix, references. Accepts GHSA, CVE, PYSEC, RUSTSEC, GO ids. |
Try asking
"Scan this project for vulnerable dependencies and tell me the three most urgent fixes."
"Which of my vulnerable packages are transitive, and what pulls them in?"
"What is the smallest set of upgrades that gets rid of every critical and high advisory? Which ones are breaking?"
"Is requests 2.19.1 safe to ship? What does GHSA-x84v-xcm2-53pg actually let an attacker do?"
"Which direct dependencies are a major version behind?"
"Audit every lockfile in this monorepo and group the findings by service."
How it works, and what it cannot tell you
Lockfiles are parsed locally into packages, direct roots and dependency edges.
All distinct
(ecosystem, name, version)triples go to OSV's/v1/querybatchin chunks, followingnext_page_tokenuntil every page is read; each advisory record is then fetched once from/v1/vulns/{id}.Records that alias each other (GHSA, PYSEC, CVE, RUSTSEC) are merged into one issue. Severity is the advisory's own rating, or a CVSS v3 base score computed from its vector. Records with only a CVSS v4 vector and no rating show as UNKNOWN.
Latest versions come from the registries, concurrently, cached for an hour.
Limits to know about:
It reports published advisories for the exact locked versions. It does not know whether your code calls the vulnerable function, and it finds nothing about unpublished bugs.
Dev dependencies are included (they run in your CI). Optional and platform-specific dependencies are included when the lockfile lists them.
Fixed-in versions come from OSV
ECOSYSTEM/SEMVERranges. Advisories that only list affected versions (no ranges) show "no fix known".A fix for a transitive package may be blocked by the parent's version range. The plan names the parent; upgrading it is usually the right move.
requirements.txthas no graph (every pin shows as direct) andgo.sumcan list modules that are not in the build.Not supported: npm lockfile v1, pnpm before v6, Yarn Berry, pip
-rincludes (scan the included file).
Security and privacy
Read-only on disk. The server only opens lockfiles and the
package.json/pyproject.toml/go.modbeside them. It never writes.suggest_fixesprints commands; it does not run them.What leaves your machine: package names and exact versions (to
api.osv.devand the registriespypi.org,registry.npmjs.org,crates.io,proxy.golang.org), and advisory ids. File paths and contents do not leave. Private package names in a lockfile are sent too, so do not point it at a lockfile whose package names are confidential.pathis any path the agent passes. Like any tool that reads files, give an agent that can call it only the access you are comfortable with. It only parses files with the supported lockfile names.Requests have timeouts (20 s); 429 and 5xx responses are retried at most 3 times, honouring
Retry-After, then fail with an explicit error. Lookup failures are shown, never turned into "no vulnerabilities".For tests or mirrors, the endpoints can be redirected with
DEPAUDIT_OSV_URL,DEPAUDIT_PYPI_URL,DEPAUDIT_NPM_URL,DEPAUDIT_CRATES_URLandDEPAUDIT_GOPROXY_URL.
Tests
pip install ".[test]" "ruff==0.16.0" "mypy==2.3.0"
ruff check src tests && mypy --strict src
pytest tests # offline: real lockfiles, a real stdio MCP session, recorded API responses
pytest tests -m live # real OSV.dev / PyPI / npm / crates.io / Go proxyThe offline tests run the real HTTP client against a local server that replays responses recorded from the live
APIs (tests/fixtures/recorded/, produced by tests/record_fixtures.py), including pagination, 429 retries, timeouts
and error mapping. Lockfile fixtures for uv, poetry, npm, pnpm (v6 and v9) and Yarn v1 were generated by the real
tools; Cargo.lock, go.sum and requirements.txt fixtures are written by hand. The live tests check that
requests 2.19.1 and lodash 4.17.15 are reported by the real API and that proposed fix targets are clean.
Companion
The tutorial depaudit-mcp-the-hard-way builds a minimal version of this server from scratch.
License
MIT
Available Tools
5 toolscheck_packageA
Check one exact package version for known vulnerabilities, without a lockfile.
ecosystem: PyPI, npm, crates.io or Go. Also reports the latest release and how far behind this version is. Example: check_package("PyPI", "requests", "2.19.1").
Inputs: name (required), version (required), ecosystem (required). Returns: result
explain_vulnerabilityA
Explain one advisory: summary, severity, affected version ranges, fix, references.
id: an OSV-known id such as GHSA-x84v-xcm2-53pg, CVE-2018-18074, PYSEC-2018-28 or RUSTSEC-2020-0071.
Inputs: id (required). Returns: result
list_outdatedA
List packages in a project's lockfiles that are behind their latest release.
Compares each locked version with the latest stable version on PyPI, the npm registry, crates.io or the Go module proxy, and labels the gap MAJOR, MINOR or PATCH (biggest first). By default only direct dependencies are checked; set include_transitive=True for everything (more requests; transitive packages may be held back by their parents' version ranges). Lookups are concurrent and cached; packages whose lookup fails are listed, not hidden.
Inputs: path (required), limit, include_transitive. Returns: result
scan_projectA
Scan a project's lockfiles for known vulnerabilities (OSV.dev).
path: a project directory (lockfiles are found up to 3 levels deep, skipping node_modules and virtualenvs) or one lockfile. Supports uv.lock, poetry.lock, requirements.txt (== pins only), package-lock.json (v2/v3), pnpm-lock.yaml (v6-v9), yarn.lock (v1), Cargo.lock and go.sum.
Reports package counts (direct vs transitive) and, worst first, each vulnerable package version with its advisories (GHSA/PYSEC/CVE merged), severity, CVSS score, fixed-in version and, for transitive ones, the dependency path from a direct dependency. limit caps how many vulnerable packages are listed per lockfile. Read-only.
Inputs: path (required), limit. Returns: result
suggest_fixesA
Propose a minimal upgrade plan for the vulnerabilities in a project's lockfiles.
For each vulnerable package: the smallest version that fixes every advisory (re-checked against OSV so the target is not itself vulnerable), whether the bump is breaking (major, or minor on 0.x), the dependency path for transitive packages, and the command or manifest change to apply it. This tool NEVER modifies files; it only prints the plan.
Inputs: path (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly distinct action+resource: scan_project (lockfile vuln scan), check_package (single-version vuln check), list_outdated (version gap listing), explain_vulnerability (advisory detail), and suggest_fixes (remediation plan). The potential overlap between suggest_fixes and list_outdated is resolved by descriptions (fixes for vulnerabilities vs. behind-latest labels). An agent can unambiguously pick the right tool.
All five tools follow a strict verb_noun snake_case pattern: suggest_fixes, scan_project, list_outdated, check_package, explain_vulnerability. No stylistic deviations or mixed conventions.
Five tools is a tight, well-scoped set for a read-only dependency auditor, with no redundant or filler tools. Each operation (scan, check, list, explain, plan) earns its place.
The surface covers the audit lifecycle well: discover vulnerabilities, check individual packages, identify outdated deps, explain advisories, and plan fixes. The main intentional gap is any apply/upgrade operation (explicitly read-only), and there's no batch or export/report tool, but core workflows are complete.
Related MCP Connectors
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Scan npm, PyPI, Go, Maven, and Cargo dependencies against OSV.dev CVEs in real time.
Supply-chain security & CVE audit for npm, PyPI, and Cargo packages via OSV.dev.
Related MCP Servers
- AlicenseAqualityDmaintenanceAI-powered dependency vulnerability and breaking change analyzer that scans dependencies, identifies vulnerabilities via OSV.dev, and uses AI to assess real impact and suggest fixes.3Apache 2.0

@4da/mcp-serverofficial
AlicenseAqualityBmaintenanceEnables AI coding agents to learn, from locally read lockfiles, what changes between the dependency version installed and a target version, which of the user's files that upgrade touches, and which vulnerabilities it resolves. It also performs OSV-matched vulnerability scans, ranks upgrade plans, and stores decision memory, running entirely on the user's machine with no account or API keys.16933 npmApache 2.0- AlicenseAqualityAmaintenanceEnables AI agents to submit npm, PyPI, Go, or Maven packages and manifests to the free OSV.dev database and receive per-package and per-advisory results with CVE mappings, CVSS scores, severities, and the versions that fix each issue. It also supports filtering by minimum severity, de-duplicating alias advisories, and machine-readable error/warning rows for CI gates and upgrade recommendations.3MIT
- AlicenseAqualityCmaintenanceEnables Claude to look up known vulnerabilities in a project's dependencies across OSV.dev, CVE.org, NVD, CISA KEV and EPSS, then rank the findings by real-world exploitation so the most urgent fixes surface first. It supports single-package checks, keyword CVE searches, and whole-lockfile scans, with upgrade-path reasoning.4MIT