v1.8.2 · Advisory Database · 11 Tools · Zero Dependencies ·

Your AI agent's
security guardrail

An MCP server that guards your codebase from three threats: compromised npm packages, insecure dependencies, and debris left by AI coding agents. Backed by a curated advisory database of known attacks. Every package is verified before install, every coding session is reviewed, every unused dependency is flagged.

// Add depguard to any MCP-compatible AI agent
$ claude mcp add depguard -- npx -y depguard-cli --mcp

// 1. AI agent wants to install a package
Agent    "I need RTSP streaming support"
depguard guard — go2rtc (score 72/100, allow)

// 2. AI agent finishes coding
depguard review — Found 3 console.logs, 1 empty catch, 1 TODO
Agent    Fixing 5 issues before committing...

// 3. Cleanup unused packages
depguard sweep — lodash unused (~1.4 MB savings)

Your AI agent installs blindly and leaves debris

AI coding agents create two problems: they install packages without checking security, and they leave garbage in your code (console.logs, empty catch blocks, broken imports, orphan files). Without depguard, every npm install is a blind trust decision and every coding session adds invisible debt.

2,200+
Malicious packages detected on npm in 2025
8M+
Weekly downloads compromised by event-stream attack
100x
Faster package installs with AI agents vs manual review
18+
Malware patterns depguard detects in package source code
99%
AI tokens saved per audit vs manual web search and reasoning

How MCP integration works

One command connects depguard to your AI agent. From that moment, every install is verified and every coding session is reviewed.

Guard

Before every npm install — whether the user asked or the AI decided on its own — depguard verifies the package exists, checks for typosquatting, and runs a security audit.

depguard_guard("express")

Review

After coding, depguard scans the source files for debris the AI left behind: console.logs, empty catch blocks, broken imports, orphan files. The AI agent fixes them before reporting done.

depguard_review(".", "quick")

Clean Up

At the end of a session, depguard finds unused packages that were installed but never imported. The AI agent removes them, keeping the project lean.

depguard_sweep(".")

See depguard in action

This is a limited demo with pre-loaded data for 6 popular packages. For live audits on any package, install depguard-cli locally.

AVAILABLE PACKAGES: express, lodash, react, axios, chalk, moment
// Select a package above or type one to see the audit report
$ depguard-cli audit ___

One command. Infinite peace of mind.

No API keys. No accounts. No configuration. Your AI agent gets security superpowers in 10 seconds.

$ claude mcp add depguard -- npx -y depguard-cli --mcp