Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Snyk Agent Scan

$ snyk-agent-scan Official Med Risk
Snyk · Agent Bridges & Meta · Apache-2.0 · macos / linux / windows

Snyk 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>.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install snyk-agent-scan
CLI vs MCP Decision CLI Preferred vs MCP

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

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports --json, --ci, inspect, and --storage-file, though deep stdio server probing requires --dangerously-run-mcp-servers.

  • scan / inspect subcommands with --json, --ci, and --storage-file
Trust & Safety 21 / 25

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-servers gate and read-only inspect
Setup & Portability 14 / 15

Installable via uvx snyk-agent-scan@latest, pip install snyk-agent-scan, and brew install snyk-agent-scan.

  • Available on PyPI, uvx, and Homebrew
Utility & Efficiency 13 / 15

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.md agent skills
Maintenance & Lineage 9 / 10

Maintained by Snyk (snyk/agent-scan, evolved from Invariant Labs mcp-scan) under Apache-2.0.

  • Official Snyk repository under Apache-2.0
Docs & Verifiability 8 / 10

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

Auth Modes
No Auth Env API Key
Credential Storage

Reads SNYK_TOKEN from environment for remote Snyk analysis; stores local scan cache/baselines at --storage-file (default ~/.mcp-scan).

Side Effects
Read-Only Local Write
Cost & Quotas

Apache-2.0 open-source CLI; remote security analysis requires a Snyk account (SNYK_TOKEN).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect discovered MCP tools and skills locally without remote scan
snyk-agent-scan inspect --json

Enumerates configured MCP tools, prompts, resources, and skills locally in JSON without uploading to Snyk analysis.

Audit MCP configs and skills in CI mode
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

Run deep scan spawning stdio MCP servers with custom state file
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 inspect from active --dangerously-run-mcp-servers probing.
  • + Audits both MCP server definitions and local agent SKILL.md files for prompt injection.
  • + --ci --json makes security gating in CI straightforward.

Caveats & Pitfalls

  • ! Full remote vulnerability analysis requires SNYK_TOKEN and sends tool metadata to Snyk.
  • ! Deep MCP inspection executes local stdio server commands when --dangerously-run-mcp-servers is enabled.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI