Choose a path.
Use MCP mode for always-on gating before installs, or run CLI audits for one-off dependency checks. Both paths use binaries from the same release build.
MCP integration
CLI audit mode
Windows + macOS/Linux
Subscription and API keys
- No subscription is required to run built-in checks.
- No API key is required for default data providers.
safe-pkgsqueries public package/advisory endpoints (npm, crates.io, pypi, OSV), so outbound network access is required unless results are already cached.
Use this when an editor or agent should call safe-pkgs before installs.
1. Build release binary
2. Run MCP server
3. Add MCP client config
{
"servers": {
"safe-pkgs": {
"type": "stdio",
"command": "/path/to/safe-pkgs",
"args": ["serve"]
}
},
"inputs": []
}
Windows MCP config (no console window):
Use this when you only want local dependency checks without running MCP transport.
1. Build release binary
2. Run audit
Install once (recommended)
Use a stable install path instead of target/...:
Installed binaries:
safe-pkgsfor CLI usage andservesafe-pkgs-mcpfor Windows MCP hosts (no console window)
Default install directory:
- macOS/Linux:
~/.cargo/bin - Windows:
%USERPROFILE%\.cargo\bin