saagpatel/MCPAudit

Audit locally configured MCP servers for permission, prompt-injection, SSRF, lethal-trifecta, shadowing, escalation, and provenance risk. Emits SARIF/JSON and can fail the build on a local policy gate.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
versionExact mcp-audits version to install (e.g. "2.0.0"). Defaults to the latest published release.no""
argsExtra arguments appended verbatim to `mcp-audit scan` (e.g. "--inject-check --ssrf-check --trifecta-check").no""
skip-connectRun config-only without spawning or connecting to servers. Strongly recommended in CI. Set to "false" only for trusted, network-isolated runs.notrue
clientsComma-separated client filter (e.g. "claude_code,cursor").no""
configAudit a single explicit MCP config file (implies --config-only). Leave empty to audit all discovered configs.no""
policyPath to a local policy YAML. A failing policy makes this action exit 2 (after reports are written and SARIF is uploaded).no""
sarifSARIF 2.1.0 output path. Set to "" to disable SARIF output.nomcp-audit.sarif
jsonJSON report output path. Empty disables JSON output.no""
upload-sarifUpload the SARIF file to GitHub code scanning (requires `security-events: write`). Ignored when `sarif` is empty.notrue
sarif-categoryOptional GitHub code scanning category for this upload. Use a stable value when multiple SARIF producers report on the same commit.nomcp-audit
working-directoryDirectory to run the scan from (repo-local configs are discovered relative to it).no.
namedescription
sarif-filePath to the written SARIF report (empty if SARIF was disabled).
json-filePath to the written JSON report (empty if JSON was disabled).
exit-codeThe mcp-audit exit code (0 clean, 2 policy gate failed).