What it does
The server reads generated JavaScript or TypeScript, extracts every npm package the code imports, and checks each name against the npm registry. Imports of names that do not exist on npm return BLOCK, with a suggested closest real package. Packages that exist but were published recently, have no source repository, have very low downloads, or differ by one or two edits from a popular library return REVIEW. Other imports return CLEAN. Node built-ins and local paths are skipped, and subpath imports are resolved to their package name.
The publisher's concern is slopsquatting, where attackers register package names that language models invent. The publisher reports code generators referencing more than 205,000 unique non-existent package names. The check is meant to run on code an agent has just generated, before its install command is executed. The publisher also describes sibling tools for auditing an already chosen package, dependency licences and lockfiles.
The free tools are scan_code_imports, which checks a block of code, check_packages, which checks a list of names, and verify_package, which checks one name in depth. audit_lockfile is a premium tool that resolves the full dependency tree from npm, yarn, pnpm, PyPI or Go lockfiles and checks for dependency confusion, typosquats, maintainer takeover signs and risky install scripts.
Limitations and requirements
audit_lockfile is a premium tool; the other tools are listed as free. The only runtime dependency beyond the code itself is the MCP SDK. Dependency-confusion detection requires a live cross-check against the public registry, as the publisher states.
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
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.Baneado98/import-guardian
Catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install.
v0.3.0As shown on registry.modelcontextprotocol.io when we last read it