What it does
depguard diffs package.json and lockfiles between a repository and a base (a git ref or a second manifest set) and grades each added, removed or changed dependency with evidence lines. Its checks cover new install scripts, typosquat-shaped package names, version anomalies such as silent downgrades and widened ranges, lockfile drift, and, in history mode, a single package's registry publish history for the staged pattern used by the Shai-Hulud / ChainDrop worm family. Verdicts are CLEAR, REVIEW or HIGH-RISK for each dependency and overall.
It suits pull request review for npm projects, where a reviewer wants to see install-time code and supply-chain signals before a dependency change lands. The base verdict runs offline and is deterministic. Registry checks (version age, publisher change, provenance, deprecation) are optional and run only when enabled. An opt-in content mode compares the install-time surface of two tarballs statically, and history mode reads npm or PyPI publish metadata for one package.
The CLI provides check, package and history commands, and the same functions are exposed as MCP tools (guard_path, check_package, check_history) over stdio. The CLI exits 0 for CLEAR and 1 for REVIEW or HIGH-RISK. JSON reports contain no timestamps, so identical inputs give identical output.
Limitations and requirements
Registry checks need the online flag or matching MCP parameter and network access to the registry; a failed lookup does not change the local verdict. Content mode downloads both versions' tarballs from the npm registry. Only root manifests and root lockfiles are analysed; nested workspace package.json files and nested lockfiles are not. package-lock.json is parsed fully, while yarn.lock and pnpm-lock.yaml are parsed on a best-effort basis. PyPI histories carry no publisher, maintainer, repository or provenance data, so those npm checks do not apply to them.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour, as every resource of this type does. This is not a finding about this one.
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.CloudCorpRecords/depguard
PR dependency early warning: install scripts, typosquats, downgrades, and lockfile drift.
v0.4.0As shown on registry.modelcontextprotocol.io when we last read it