PkgGuard
Scans Composer composer.lock dependency files against OSV.dev for known vulnerabilities and confirmed-malicious packages.
Scans npm package.json and package-lock.json dependency manifests against OSV.dev for known vulnerabilities and confirmed-malicious packages.
Scans Poetry poetry.lock dependency files against OSV.dev for known vulnerabilities and confirmed-malicious packages.
Supports paid x402 scans with USDC payments on Polygon.
Scans Rust Cargo.lock dependency files against OSV.dev for known vulnerabilities and confirmed-malicious packages.
Supports paid x402 scans with USDC payments on Solana.
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., "@PkgGuardscan my package.json for known vulnerabilities and malicious packages"
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.
PkgGuard
Dependency vulnerability and malicious-package scanner for AI coding agents (MCP server + x402 API). Safety check only.
PkgGuard checks a package.json, package-lock.json, requirements.txt, Pipfile.lock, poetry.lock, go.mod, Cargo.lock or composer.lock (or a plain package list) against OSV.dev for known vulnerabilities (CVE / GHSA / PYSEC / GO / RUSTSEC ids, severity, CVSS, fixed-in versions) and confirmed-malicious packages. Manifests are parsed locally; only {ecosystem, name, version} triples leave your machine.
Hosted remote MCP:
https://api.youraitools.co/pkgguard/mcp(Streamable HTTP)Free tier: 30 full-result calls/day per IP (up to 100 packages per scan) on the remote MCP endpoint, then $0.003 USDC per scan (up to 500 packages) or $0.001 per single package over x402, in USDC on Base, Polygon, Arbitrum One or Solana. No account or API key.
Hosted API: https://api.youraitools.co/pkgguard (
POST /v1/scan($0.003, up to 500 packages),GET|POST /v1/package($0.001), freeGET|POST /v1/preview(verdict + counts, up to 25 packages, 10/min per IP))Local stdio MCP server: this repo. Starts with no key, no account and no npm registry package.
MCP Registry:
co.youraitools/pkgguardLicense: MIT
Use the hosted server (no install)
Claude Code:
claude mcp add --transport http pkgguard https://api.youraitools.co/pkgguard/mcpClaude Desktop: Settings > Connectors > Add custom connector with the URL above, or in claude_desktop_config.json:
{ "mcpServers": { "pkgguard": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.youraitools.co/pkgguard/mcp"] } } }Cursor (~/.cursor/mcp.json), or one click: Add to Cursor
{ "mcpServers": { "pkgguard": { "url": "https://api.youraitools.co/pkgguard/mcp" } } }Each free result includes an upgrade field with the calls left today. Past the daily limit the tool returns a payment_required (402) result with the paid x402 URL.
Related MCP server: dep-guard-mcp
Self-host: run from source (no npm registry)
Requires Node.js 20+ (or Docker). The server has no runtime dependencies.
git clone https://github.com/Duffey234/pkgguard.git
cd pkgguard
npm ci --omit=dev
node src/mcp-stdio.js # stdio MCP server (newline-delimited JSON-RPC 2.0)No git? Download the source tarball from the mirror instead: curl -sL https://agentgate-source.pages.dev/x402-pkgguard/x402-pkgguard.tar.gz | tar xz.
MCP client config (use the absolute path of your checkout):
{ "mcpServers": { "pkgguard": { "command": "node", "args": ["/absolute/path/to/pkgguard/src/mcp-stdio.js"] } } }Claude Code: claude mcp add pkgguard -- node /absolute/path/to/pkgguard/src/mcp-stdio.js
Tools scan_dependencies (manifest contents, a local file path, or a package list) and check_package (one package version). With no key the server returns the free hosted preview (verdict and counts, up to 25 packages, 10 calls/min per IP). It needs outbound HTTPS to api.youraitools.co.
Docker
docker build -t pkgguard-mcp .
docker run -i --rm pkgguard-mcp{ "mcpServers": { "pkgguard": { "command": "docker", "args": ["run", "-i", "--rm", "pkgguard-mcp"] } } }Paid mode (optional)
For full results in the local server, set PKGGUARD_X402_PRIVATE_KEY (or X402_PRIVATE_KEY) to the private key of a dedicated, low-balance Base wallet holding a few cents of USDC, and install the x402 client packages in your checkout:
npm install @x402/fetch @x402/evm viem{ "mcpServers": { "pkgguard": { "command": "node", "args": ["/absolute/path/to/pkgguard/src/mcp-stdio.js"],
"env": { "PKGGUARD_X402_PRIVATE_KEY": "0x<key of a wallet with a few cents of USDC on Base>" } } } }The server then pays the hosted API per call over x402 (Base USDC only, capped per payment, only to the published pay-to address). The key stays in your MCP client config and is only used to sign x402 payments. Without a key, nothing is paid.
Test
npm test # full test suite (node:test, Node 20 and 22, no network, no key)Full source
The complete hosted service (Cloudflare Worker, x402 v2 + v1, remote MCP) is on the source mirror: https://agentgate-source.pages.dev/x402-pkgguard/
Built by YourAITools. Informational tooling, safety check only; no warranty.
This server cannot be deployed
Maintenance
Related MCP Connectors
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Scan packages and lockfiles (npm, PyPI, Go, Maven, Cargo, NuGet) for vulnerabilities and malware.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that scans your lockfiles (npm, PyPI, Go, Rust, Ruby, PHP) for known vulnerabilities, enriches with EPSS exploit probability scores, and recommends fix versions. $14/mo — not per-seat.91MIT
- FlicenseNot gradedqualityCmaintenanceScans Python, Node.js, Java/Spring, and PHP dependency manifests for known vulnerabilities using OSV and GitHub Advisory APIs.-
- AlicenseNot gradedqualityAmaintenanceVet a package before your AI coding agent uses it — authoritative facts (CVEs, license, maintenance) via an MCP server + CLI. Local, no account.58 npm11Business Source 1.1
- AlicenseAqualityCmaintenanceMCP server for checking packages against an AI-aware vulnerability database, including CVEs, slopsquatting, CISA KEV, and MCP-server trust profiles.1075 PyPIElastic 2.0