Depguard logo

Depguard

by mopanc

Audits npm packages and projects for supply-chain risks, vulnerabilities, AI-generated code debris, and SBOM output through MCP.

Install Depguard

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mopanc-depguard": {
      "command": "npx",
      "args": [
        "-y",
        "depguard-cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

mopanc/depguard MCP server exposes npm dependency security and project-audit functions to AI coding agents through 14 MCP tools over stdio. It checks package existence, typosquatting risk, vulnerabilities, install scripts, static code patterns, dependency usage, and project configuration without executing install scripts. Reach for it before installing an unfamiliar package, after cloning a repository, or when you need remediation data, SARIF findings, or a CycloneDX SBOM.

Use cases

  • Verify an npm package before installing it
  • Audit a cloned workspace before opening it in an IDE
  • Prioritize fixes for transitive vulnerabilities
  • Find unused dependencies in a project
  • Generate a CycloneDX SBOM with VEX data

Key features

  • Pre-install package verification and typosquat detection
  • Static install-script and code-pattern analysis
  • Workspace, project, bulk, and transitive dependency audits
  • AI code debris and unused-dependency detection
  • CycloneDX 1.6 SBOM and VEX generation
  • SARIF v2.1.0 output for GitHub Code Scanning

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

15/19 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · depguard-cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars15Stargazers on the source repository.
npm downloads434Package downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Depguard works

What mopanc/depguard MCP server does

mopanc/depguard MCP server gives MCP-compatible coding agents a set of checks for npm packages, JavaScript projects, and freshly cloned workspaces. Its primary use is to make dependency decisions before installation, but it also reviews existing dependencies, identifies unused packages, and produces security-oriented project artifacts.

The package checks whether an npm name exists, compares names against more than 100 popular packages to identify possible typosquats, and audits package metadata and code-related indicators. Scoring combines security, maintenance, popularity, license compatibility, and dependency factors. Static findings can cap the security score even when a package is popular.

How it works

The MCP server communicates over stdio, so an MCP client launches the CLI as a local process. The standard configuration runs npx -y depguard-cli --mcp. Each response includes a tokenSavings object with estimated manual research steps and token counts; this is intended to show the difference between using the tool and researching dependency information through multiple web requests.

Install-script analysis is static. The server examines preinstall, install, and postinstall scripts for patterns such as remote code execution, reverse shells, and credential-file access, but it does not execute those scripts.

Workspace auditing is designed for the period immediately after cloning and before opening a repository in an IDE. It checks for auto-executing workspace mechanisms including VS Code folder-open tasks, devcontainer lifecycle configuration, .envrc, JetBrains run configurations, Makefiles, .gitattributes, and committed Git hooks.

Setup and configuration

Install the CLI globally with npm install -g depguard-cli, or run it without a global installation through npx. For MCP clients, use this stdio configuration:

config.json
{
  "mcpServers": {
    "depguard": {
      "command": "npx",
      "args": ["-y", "depguard-cli", "--mcp"]
    }
  }
}

Tools and capabilities

The 14 documented tools cover distinct workflows:

  • depguard_guard checks a package before installation and returns an allow, warn, or block decision.
  • depguard_should_use compares installing a package with using native functionality or writing code from scratch.
  • depguard_audit_workspace finds workspace-open execution paths.
  • depguard_audit_project reviews direct and lockfile-resolved dependencies and the declared package manager.
  • depguard_remediate groups vulnerable transitives by parent dependency to help prioritize upgrades.
  • depguard_audit, depguard_audit_bulk, and depguard_audit_deep provide package-level, comparison, and transitive-tree audits.
  • depguard_review looks for AI-generated code debris such as console logging, empty catches, broken imports, and orphan files.
  • depguard_sweep searches for unused dependencies.
  • depguard_search, depguard_score, and depguard_verify support package discovery, scoring, and existence or typosquat checks.
  • depguard_sbom generates a CycloneDX 1.6 SBOM and can include VEX data.

The CLI also supports SARIF v2.1.0 output for selected audits, including stable GHSA-based rule identifiers and fingerprints intended for GitHub Code Scanning.

Limitations and notes

Risk scores are decision aids based on the documented dimensions, not proof that a package is safe. Static analysis identifies patterns and does not run package installation code.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Depguard

Run `npx -y depguard-cli --mcp` through an MCP client's stdio configuration, or install the CLI globally with `npm install -g depguard-cli`.

Yes. The README provides a generic MCP configuration for Claude Desktop using the `npx` command and `depguard-cli --mcp`.

Yes. Its pre-install guardian checks package existence and compares names with more than 100 top packages using Levenshtein distance.

No. Install scripts are analyzed by static pattern matching; the documented checks do not execute them.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDepguard AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mopanc-depguard?style=directory)](https://allmcps.com/mcp/mopanc-depguard)
HTML Embed
<a href="https://allmcps.com/mcp/mopanc-depguard"><img src="https://allmcps.com/api/badge/mopanc-depguard?style=directory" alt="Depguard on AllMCPs" /></a>