Dep Bouncer
Dep Bouncer is an MCP server that vets npm packages and releases before an AI agent installs or upgrades them, returning ALLOW / REVIEW / BLOCK with evidence and a safe version to use instead.
bouncer_check_package— vet a package/version (orlatest) pre-npm install; verdict, evidence, what npm audit/OSV say, safe alternative.bouncer_check_upgrade— vet a version bump and see what changed (publisher, provenance, install scripts, deps).bouncer_safe_version— newest version in a semver range passing all checks, plus why newer ones were skipped.bouncer_check_manifest— check every dependency in apackage.jsonat the version npm would install today (runs as an MCP Task with live progress).bouncer_review_install_scripts— explain install scripts for up to 15 packages with APPROVE / REVIEW / DENY decisions.bouncer_diff_release— raw human-facing evidence between two versions: files changed, risky new code patterns, deps, provenance.bouncer_replay_incident— replay a real hijack (axios, keyv, chalk, nx, tinycolor) as an agent would have seen it 30 min after publish.Resources —
bouncer://policy(signals, weights, thresholds),bouncer://stats(live latency, errors, verdict totals),incidents://list.safe_installprompt — rules that make an agent call Dep Bouncer before every dependency change and act on the verdict.verdict-cardwidget — visual verdict with evidence panel and one-click "use the safe version".Detects publisher changes, provenance drops, new/changed install scripts, suspicious new deps, malicious code diffs, fresh releases, typosquats/hallucinated names, and OSV advisories.
Also ships an agent guard (Claude Code / Cursor hooks) that intercepts the agent's own
npm i,pnpm add,npx, etc., denying BLOCK and asking on REVIEW.
Vets npm package releases and upgrades before installation by checking registry history, publishers, provenance, install scripts, new or suspicious dependencies, code changes, release timing, name similarity, and known advisories. Returns an ALLOW/REVIEW/BLOCK verdict with evidence and a safe version to install instead.
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., "@Dep Bouncer is axios@1.14.1 safe to install?"
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.
Dep Bouncer
npm install, reimagined for AI agents.
![]()
▶ Watch the demo film (2:32): https://youtu.be/w9Ax5KPUGD8
Try it in 30 seconds
Add this live URL as a remote MCP server in your client:
https://dep-bouncer-6ad22414-giberelin-heapify-global-community.app.nitrocloud.ai/mcp
Then ask: "Use the safe_install prompt, then add axios to this project."
Or replay the axios incident directly (Bash / zsh):
curl -X POST 'https://dep-bouncer-6ad22414-giberelin-heapify-global-community.app.nitrocloud.ai/mcp' \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-H 'mcp-protocol-version: 2025-06-18' \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bouncer_replay_incident","arguments":{"incident":"axios"}}}'Works with (tested on the live server):
NitroChat: verdict card rendered (screenshots below).
Claude Code as an MCP client:
claude mcp add --transport http dep-bouncer <URL>; a real session calledbouncer_check_packageandbouncer_replay_incident, reported BLOCK with the evidence, and recommended a safe axios version.Claude Code guard hook: blocked the agent's own
npm installof a non-existent package (guard; Cursor hook config included).Any Streamable-HTTP MCP client via the URL (e.g. Cursor, NitroStudio, ChatGPT developer mode).
Dep Bouncer is an MCP server an AI coding agent calls before it installs or upgrades an npm package. It compares the release with the package's own history (who published it, whether CI signed it, what runs at install time, which dependencies appeared, what code changed) and returns ALLOW / REVIEW / BLOCK with the evidence, plus the version to install instead.
Live MCP endpoint:
https://dep-bouncer-6ad22414-giberelin-heapify-global-community.app.nitrocloud.ai/mcpDemo video (2:32): https://youtu.be/w9Ax5KPUGD8
Track: Developer Tools · Product reimagined: npm (
npm install/npm audit)Built with NitroStack, deployed on NitroCloud.
Related MCP server: pkgtruth
The problem: agents install in seconds, advisories arrive in hours
AI coding agents now run npm install for us, mid-task, from the terminal. npm installs
whatever was published a minute ago, and npm audit only knows about published advisories.
For real hijacks, the free advisory database (OSV) needed hours to catch up:
Hijack | Weekly downloads (Oct 2026) | First OSV entry after publish | What |
axios 1.14.1 (Mar 2026) | 119 M | 2.9 h (MAL-2026-2307) | found 0 vulnerabilities |
keyv 6.0.0 (Aug 2026) | 167 M | 1.7 h (MAL-2026-11524) | found 0 vulnerabilities |
chalk 5.6.1 (Sep 2025) | 496 M | 4.0 h (MAL-2025-46969) | found 0 vulnerabilities |
@ctrl/tinycolor 4.1.1 (Sep 2025) | 4.7 M | 3.8 h (MAL-2025-47141) | found 0 vulnerabilities |
nx 21.5.0 (Aug 2025) | 10.8 M | 18.2 h (MAL-2025-41443) | found 0 vulnerabilities |
Lags measured from the npm registry's publish times and OSV's published field. Two of these
attacks went straight for AI agents: nx's malware ran the victim's claude, gemini and q
CLIs with permission checks disabled, and the keyv worm planted Claude Code SessionStart hooks.
Before / after
Before: agent + npm | After: agent + Dep Bouncer | |
|
| BLOCK: published by a personal account instead of the project's CI; provenance gone; new dependency |
| installs; | BLOCK: new |
| installs | ALLOW: consistent with its own history |
In a real agent (NitroChat, connected to the live server): "Replay the axios incident with Dep Bouncer and tell me what to install instead."

Why this needs MCP
A verdict is not one lookup. For each request the agent's tool call makes Dep Bouncer gather
the registry history (publishers, provenance, publish times), download and diff two tarballs,
look up every newly added dependency, check the name against popular packages, and query OSV.
Then the agent acts on the answer: it installs the safe version, asks the human (REVIEW),
or refuses (BLOCK). The safe_install prompt teaches any agent that loop.
Tools, resources, prompt, widget
MCP surface | What it does |
| Vet a release (or |
| Vet a version bump and show what changed between the two versions. |
| Newest version in a semver range that passes every check, and why newer ones were skipped. |
| Vet every dependency of a package.json at the version npm would install today. Runs as an MCP Task with live progress. |
| npm 12 asks you to approve install scripts but only shows the command. This explains each one: APPROVE / REVIEW / DENY. |
| Replay a real hijack (axios, keyv, chalk, nx, tinycolor) as an agent met it, 30 minutes after publication. |
| Signals, weights and thresholds. |
| Live per-tool calls, errors, p50/p95 latency and verdict totals. |
| The replayable incidents and their OSV lag. |
| Rules that make an agent call Dep Bouncer before every dependency change and act on the verdict. |
| Visual verdict with evidence, the "what other checks say" panel and a one-click "use the safe version". |
Agent guard: no install without a check
Agents forget to call tools. guard/ is a hook for Claude Code
(PreToolUse) and Cursor (beforeShellExecution) that intercepts the agent's own terminal
commands (npm i, pnpm add, yarn add, bun add, npx, pnpm dlx, ...), asks Dep Bouncer
about each package, and denies BLOCK, asks the user on REVIEW, and emits no
permission decision for ALLOW so the host keeps its own permission prompts.
Tested with a real headless Claude Code session asked to
npm install react-codeshift-utils-pro chalk: the hook denied the command ("does not exist on
npm"), the agent verified, did not work around the block, and installed only chalk.
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [
{ "type": "command", "command": "node /path/to/dep-bouncer/guard/dep-bouncer-guard.mjs" } ] } ] } }How it decides
Signal | Looks for | Caught |
| A personal account publishing where CI (npm trusted publishing) always did; a never-seen publisher | axios |
| Previous releases were built and signed by CI; this one was not | axios, nx |
| A new or changed | keyv, nx, tinycolor |
| New dependencies that are days old, run install scripts, copy a popular name, or are never imported (phantom) | axios |
| Code new to this release: obfuscation, process execution, credential paths, exfiltration hosts, wallet hooks, AI-agent abuse ( | chalk, keyv, nx, tinycolor |
| Published in the last 24 h; bursts of versions | all (weak alone) |
| Look-alikes of ~2,400 popular names with few downloads or a recent creation date | typosquats, hallucinated names |
| OSV | anything already reported |
Weights: warn 15, high 35, critical 70. Any critical finding blocks; otherwise the sum
decides: < 30 ALLOW, 30–69 REVIEW, ≥ 70 BLOCK. Versions with incomplete checks require
at least REVIEW and are excluded from safe-version suggestions. Packages that don't exist (hallucinated names),
versions npm removed, and npm's -security placeholders are blocked outright.
Benchmark
npm run bench replays the five hijacks and checks the latest release of the 200 most
downloaded npm packages (presumed healthy; list in bench/packages.txt)
to measure false positives. Latest run (bench/RESULTS.md):
Replayed hijacks: 5 / 5 BLOCK, none of which OSV knew about at the replay time.
200 popular releases: 199 ALLOW, 1 REVIEW, 0 BLOCK. The REVIEW is TypeScript 7, a full rewrite published by a new account: exactly the kind of release a human should glance at. REVIEW means "ask the human", not "block". (An earlier 60-package sample also caught fresh webpack/next/vitest releases as REVIEW; results move as npm does.)
Live endpoint smoke test: node scripts/smoke.mjs calls every tool, resource and prompt on
the deployed server, plus 17 hostile inputs (path traversal, __proto__, broken JSON, oversized
bodies, unknown versions). GitHub Actions runs it hourly and after every push; latest live
run passes all must-checks (p50 0.4 s, p95 2.3 s).
How we got here: the first run flagged webpack and vitest as BLOCK (bundlers rename chunk files every release). Two independent security reviews found 16 issues in the first review and 10 in the second (Oct 17); all findings were fixed. The fixes include line-based code diffs, guard decisions limited to deny/ask while preserving host permission prompts, parsing wrapped commands and subshells, checking every package, API-key support, REVIEW for incomplete checks (excluded from safe-version suggestions), resolving npm aliases, flagging git/URL specs, and always checking packages even when publisher names match. Numbers will move as npm does; CI re-runs the replays on every push.
How it compares (honestly)
Tool | When it acts | Gap Dep Bouncer fills |
| After an advisory is published | Advisories arrived 1.7–18 h after these hijacks |
Socket Firewall Free, Aikido Safe Chain | At install, against the vendor's malware feed | Blocklists: they block once the vendor has flagged a package. Dep Bouncer judges the release from its own history, explains why, and names the version to use. Complementary. |
Cooldowns ( | Hold every release for N hours | Would have held all five hijacks, and every urgent security fix too. Dep Bouncer lets clean fresh releases through and shows cooldown status. |
npm 12 script blocking | Skips install scripts until approved | Approval without explanation; does nothing for code that runs on import (chalk). |
Provenance | Proves where a release was built | keyv 6.0.0 had valid provenance. |
Socket GitHub app | On pull requests | Agents install from the terminal, not through PRs. |
Socket MCP | Scores, fake names | Scores without evidence or a safe version; fake names only. |
Replayed incidents are labelled reconstructions
npm removed the malicious versions. Each replay uses the real last-good release (manifests,
files, publish times, fetched from the registry by scripts/build-fixtures.mjs) plus the
documented changes of the bad release, with benign stand-in code that only mimics the
structure of the attack. Every stand-in file starts with
/* Dep Bouncer reconstruction: benign stand-in, not real malware. */, and every replay result
says what is real and what was reconstructed, with sources. No malware was downloaded or stored.
Architecture
flowchart LR
Agent[AI coding agent] -- MCP --> Tools[bouncer tools / resources / prompt / widget]
Tools --> Bouncer[BouncerService]
Bouncer --> Registry[NpmRegistryService\npackuments, downloads]
Bouncer --> Tarball[TarballService\nin-memory tar.gz, size caps]
Bouncer --> OSV[OsvService]
Bouncer --> Analysis[AnalysisService]
Analysis --> Signals[8 signals] --> Verdict[verdict engine]
Bouncer --> Incidents[IncidentsService\nreplay fixtures]src/
modules/registry/ npm registry, downloads, OSV clients; tar.gz parser; semver; TTL cache
modules/analysis/ signal contract, signals/*, code patterns, name similarity, verdict
modules/incidents/ reconstructed incident fixtures + replay service
modules/bouncer/ MCP tools, resources, prompt; orchestration service
health/ system, npm registry and OSV health checks
widgets/app/verdict-card/ the verdict widget
scripts/ build-fixtures, build-popular, benchmark, copy-assets
test/ node:test suites (signals, parser, replays, semver, ...)NitroStack features used: DI modules and @Injectable, @Tool / @Resource / @Prompt,
@Widget, @RateLimit, @Cache, an interceptor (MetricsInterceptor), guards
(ApiKeyModule + @UseGuards), MCP Tasks (taskSupport, progress, cancellation),
@HealthCheck (system, npm registry, OSV), and the bouncer://stats resource for live
per-tool latency, errors and verdict totals.
Safety: Dep Bouncer never executes package code; tarballs come only from
registry.npmjs.org and are parsed in memory (25 MB compressed, 60 MB extracted, 5,000 files,
path-traversal checks), with byte-budgeted caches, a 4-way download semaphore and redirect
checks. No user data stored; metrics hold no request contents or IPs.
Authentication: the public demo is open on purpose (read-only, public data, rate-limited,
so judges and agents can try it). Set DEP_BOUNCER_API_KEYS=key1,key2 to require an API key
(NitroStack ApiKeyModule; clients send it in MCP _meta.apiKey). See .env.example.
Use it
Any MCP client (Claude, ChatGPT, Cursor, NitroChat): add a remote MCP server with the URL
above. Cursor ~/.cursor/mcp.json:
{ "mcpServers": { "dep-bouncer": { "url": "https://dep-bouncer-6ad22414-giberelin-heapify-global-community.app.nitrocloud.ai/mcp" } } }Then ask: "Use the safe_install prompt, then add axios to this project."
Run locally:
npm install
npm run build
npm test # 220 tests, offline (CI on Node 22 and 24)
npm run bench # replays + false-positive scan (needs network)
npm run dev # stdio, for NitroStudioNo environment variables are required. Optional (see .env.example): MCP_TRANSPORT_TYPE
(stdio / http / dual), PORT, NITRO_LOG_LEVEL.
Limitations and roadmap
Heuristics: a determined attacker can write code that avoids the patterns; the publisher, provenance, script and dependency signals still apply. Tarballs over 25 MB (e.g.
next) skip the code diff and require REVIEW for incomplete coverage.npm only. Next: PyPI, lockfile/CI mode, org policies (e.g. "always REVIEW new publishers").
Team
Harsha B S (team Giberelin, Heapify Global Community) · MIT License · Architecture walkthrough
Available Tools
7 toolsbouncer_check_manifestARead-only
Checks every dependency in a package.json at the version npm would install for its range today (the newest match), e.g. before running npm install in a cloned repo. Runs as an MCP Task with live progress; returns BLOCK/REVIEW first, each with the reason and a safe version.
Inputs: packageJson (required), includeDev.
bouncer_check_packageARead-only
Call this BEFORE npm install <pkg> or adding a dependency. Compares the release with the package's own history (publisher, provenance, install scripts, new dependencies, code diff, name) and returns ALLOW, REVIEW or BLOCK with evidence, what npm audit/OSV say, and a safe version to install instead when blocked.
Inputs: name (required), version.
bouncer_check_upgradeARead-only
Call this before bumping a dependency from one version to another. Returns the verdict on the new version plus what changed between the two (publisher, provenance, install scripts, dependencies).
Inputs: to (required), from (required), name (required).
bouncer_diff_releaseARead-only
Raw evidence for humans: what changed between two versions of a package (publisher, provenance, install scripts, dependencies, files added/removed/changed, and risky code patterns new in this release). Use it to explain a REVIEW or BLOCK.
Inputs: to (required), from (required), name (required).
bouncer_replay_incidentARead-only
Replays a real npm hijack through Dep Bouncer, as an agent would have met it 30 minutes after publication, before any advisory existed. Incidents: axios (2026), keyv (2026), chalk (2025), nx (2025), tinycolor (2025). The malicious versions were removed from npm, so the bad release is a clearly labelled reconstruction with benign stand-in code.
Inputs: incident (required).
bouncer_review_install_scriptsARead-only
npm 12 skips dependency install scripts until they are approved (npm approve-scripts), but only shows the command. Pass the packages it lists; for each one this returns the scripts, why, and APPROVE / REVIEW / DENY. Also useful on npm 11 to see which dependencies run code at install time.
Inputs: packages (required).
bouncer_safe_versionARead-only
Returns the newest version of a package (optionally within a semver range such as "^1.14.0") that passes every Dep Bouncer check, and which newer versions were skipped and why. Use it to pick what to install instead of a blocked release.
Inputs: name (required), range.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The three check tools (check_package, check_upgrade, check_manifest) target related but distinct contexts (single install, version bump, full manifest), and the descriptions explicitly state when to call each. review_install_scripts, safe_version, diff_release, and replay_incident are clearly separate purposes, though the check trio could still be confused at a glance.
All tools use a consistent bouncer_ prefix with snake_case and mostly verb_noun form (check_package, diff_release, replay_incident, review_install_scripts). safe_version is a minor deviation lacking a verb, but the overall pattern is predictable.
Seven tools is well-scoped for a dependency-security verdict server, with each tool earning its place across pre-install checks, version selection, evidence, and install-script review.
The surface covers the core lifecycle: checking packages, upgrades, and manifests, plus safe-version selection, raw diffs, and install-script review. It lacks obvious config/allowlist management or bulk/CI scan operations, but the primary agent workflows are covered with no hard dead ends.
Maintenance
Related MCP Connectors
Package verdicts for AI coding agents: check npm, PyPI, Go and NuGet installs before they run.
Verify npm packages before your AI agent installs them: hallucinations, advisories, API drift.
Check an npm/PyPI package before an AI agent installs it: 5 focused supply-chain tools.
Check exact npm/PyPI upgrades for evidence-backed breaking changes; query APIs and components.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to automatically verify npm packages against the live registry before installation, flagging hallucinated, slopsquatted, or otherwise suspicious packages with risk verdicts.MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents and CI to vet npm dependencies before they reach the lockfile, flagging hallucinated, slopsquatted, or otherwise risky packages with evidence-backed verdicts.373 npm4MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to verify, compare, and safely upgrade npm packages by scoring packages from public signals and sandboxed co-installation, detecting breaking API surface changes, and rewriting code that upgrades break.31 npm8MIT
- AlicenseNot gradedqualityBmaintenanceEnables developers and AI coding agents to vet npm packages before installation by checking existence, lookalike names, package age, install scripts, maintainers, downloads, and advisories, returning GO, RISKY, FAKE, or MISSING. It also scans a project's package.json for worst-first dependency verdicts and can run as a CLI or stdio MCP server.MIT