Snyk Agent Scan
$ snyk-agent-scan Official Med RiskSnyk Agent Scan (formerly mcp-scan) discovers and audits local AI agent setups, MCP server tool descriptions, and SKILL.md files for prompt injection, tool poisoning, and toxic flows. Supports scan and inspect subcommands, --json, --ci, --skills, and --storage-file <path>.
brew install snyk-agent-scan snyk-agent-scan is a security auditing CLI that inspects MCP servers and skills from outside; it should run as a standalone CLI/CI check rather than inside the scanned MCP host.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --json, --ci, inspect, and --storage-file, though deep stdio server probing requires --dangerously-run-mcp-servers.
scan/inspectsubcommands with--json,--ci, and--storage-file
Separates passive inspect from active server execution (--dangerously-run-mcp-servers), and explicitly warns before executing untrusted MCP servers.
- Explicit opt-in
--dangerously-run-mcp-serversgate and read-onlyinspect
Installable via uvx snyk-agent-scan@latest, pip install snyk-agent-scan, and brew install snyk-agent-scan.
- Available on PyPI,
uvx, and Homebrew
Detects tool poisoning, prompt injection, and toxic cross-server flows across MCP configs and skills in one pass.
- Audits both MCP tool schemas and
SKILL.mdagent skills
Maintained by Snyk (snyk/agent-scan, evolved from Invariant Labs mcp-scan) under Apache-2.0.
- Official Snyk repository under Apache-2.0
Clear GitHub README and Snyk docs covering scan, inspect, CI flags, and failure codes.
- Official README documents CI mode, flags, and error codes
Security, Auth & Guardrails
Reads SNYK_TOKEN from environment for remote Snyk analysis; stores local scan cache/baselines at --storage-file (default ~/.mcp-scan).
Apache-2.0 open-source CLI; remote security analysis requires a Snyk account (SNYK_TOKEN).
# Snyk Agent Scan Rules - Prefer `snyk-agent-scan inspect --json` first before running `--dangerously-run-mcp-servers` on untrusted configs. - Use `--ci --json` in automation and keep `SNYK_TOKEN` in CI secrets.
Agent-Ready Command Recipes
Safe Read-Only Queries
snyk-agent-scan inspect --json
Enumerates configured MCP tools, prompts, resources, and skills locally in JSON without uploading to Snyk analysis.
snyk-agent-scan scan --skills --ci --json
Scans local agent configs and skill files non-interactively and returns structured JSON security findings.
Controlled Writes & Previews
snyk-agent-scan scan --ci --dangerously-run-mcp-servers --storage-file .mcp-scan-cache --json
Executes configured stdio MCP servers to inspect live schemas and saves baseline hashes to --storage-file.
Strengths for Agents
- + Separates passive
inspectfrom active--dangerously-run-mcp-serversprobing. - + Audits both MCP server definitions and local agent
SKILL.mdfiles for prompt injection. - +
--ci --jsonmakes security gating in CI straightforward.
Caveats & Pitfalls
- ! Full remote vulnerability analysis requires
SNYK_TOKENand sends tool metadata to Snyk. - ! Deep MCP inspection executes local stdio server commands when
--dangerously-run-mcp-serversis enabled.