CommandPartly tested (needs an account)
Check add-ons before you trust them
Snyk Agent Scan
A command line scanner from Snyk. It reads your installed agent skills and MCP servers and warns about prompt injection, secret leaks and unsafe tools.
- Works with
- Claude Code, Codex CLI, Gemini CLI
- Good for
- Security testing, Everyone
What it does
Snyk Agent Scan is a command line tool from the security company Snyk. It looks in the settings of the AI assistants on your computer. It finds the agents, skills and MCP servers that you installed. Then it checks them for threats. An MCP server is a connector that gives your assistant extra tools.
The README names these threats. Prompt injection means hidden text that tries to steer your assistant. Other threats are exposure to private data, destructive abilities, suspicious downloads, malicious code in skills, and secrets that sit in plain text. The output is experimental. The README says it can change between releases.
A scan must read the tool lists of your MCP servers. To do that, the scanner starts the server command, or it connects to the server address. This can run commands on your computer. By default, the scanner asks yes or no before it contacts each server. It shows the command or address first. For add-ons you do not trust, the README says to scan inside a sandbox. A sandbox is a closed space, such as a Docker container or a virtual machine.
The analysis runs on Snyk's online service. The tool sends the details it needs. These include server settings, tool names and descriptions, and skill text. The README says it redacts secrets first. You need a Snyk account and an API token. There is no npm package. You run it with uvx (a Python tool runner from the uv project) or you download a standalone program.
Who it is for
You installed several skills or MCP servers. You want a check before you trust a new one from an unknown author. You are fine with a terminal and a Snyk account.
Example prompts
Type these after you run a scan, and paste the report in the chat.
- "Explain this Snyk Agent Scan report in plain words and tell me what to remove."
- "Which of my MCP servers did the scan flag, and why?"
- "Show me how to set SNYK_TOKEN for this terminal session only."
- "Which command scans only my Claude skills folder?"
How to install
uvx snyk-agent-scan@latestuvx snyk-agent-scan@latest ~/.claude/skillsHow to use it
Run the scan on a skills folder or a config file before you trust it, for example uvx snyk-agent-scan@latest ~/.claude/skills. Set the SNYK_TOKEN variable first. Read the warnings and remove what you do not trust.
Other assistants
The scanner finds Claude Code, Codex and Gemini CLI setups by itself. You do not need a separate install. The README table lists Codex on macOS and Linux only, not on Windows. Run the same command for all assistants:
export SNYK_TOKEN=your-api-token-here
uvx snyk-agent-scan@latestCheck it works
Run uvx snyk-agent-scan@latest --help. The tool must start and print its usage text. For a first look without the security analysis, run:
uvx snyk-agent-scan@latest inspectThis lists the components it found, without analysis. A full scan needs SNYK_TOKEN. It shows a report at the end.
Common problems
- A server shows an error after you said no: The scanner records a declined server with the error
user_declined. It never contacts that server. This is expected. - The command
uvxis not found: Install uv first. The README links todocs.astral.sh/uv/getting-started/installation/. Or download the standalone program from the GitHub releases page. - The scan does not run without a token: Create an API token at
app.snyk.io/account. Set it withexport SNYK_TOKEN=your-api-token-here. Then run the scan again. - The output looks different from older guides: The README describes two lines. Version 0.5.x uses issue codes and will be retired. Version 0.6 and later uses risk scores.
@latestgives the newer line.
What to watch out for
- A full scan needs a Snyk account and an API token (SNYK_TOKEN).
- The scan sends details about the components it finds, such as server settings and tool descriptions, to Snyk's analysis service. Do not scan folders that hold secrets.
- A clean result does not prove that a skill is safe.
Licence and author
- Licence
- Apache-2.0
- Author
- Snyk
- Source code
- github.com/snyk/agent-scan
How we tested it
We installed it on an empty test computer on 12 Oct 2026. Partly tested: installed in a clean test system, but its main features need an account or key we did not use.
A real scan was not run. We did not test what the service sends. Check the README privacy notes before the first scan.
Technical details of the test
- Date
- 12 Oct 2026
- Method
- Ran uvx snyk-agent-scan@latest --help in a clean container with no account. The tool downloaded, started and printed its usage text. We did not run a scan, because a scan needs a Snyk token.
Checked again on 12 Oct 2026
Alternatives
- geiger: Lists what you installed. It does not contact servers or any online service. It needs no token, but it does not look for attacks.
- CC Safety Net: Blocks dangerous commands while you work. It does not audit what you installed.
FAQ
Does it cost money? The tool itself uses the Apache-2.0 licence. You need a Snyk account and token. The README does not state plan limits.
What does it send out? It sends component details for analysis. The README says it redacts secrets in settings and text first. Do not scan folders that hold secrets.
Is it safe to scan an unknown MCP server? A scan can start that server. Use a sandbox for untrusted setups. Decline servers with commands you do not know.
Does a clean report mean an add-on is safe? No. The scan finds known risk patterns only. Read what you install.
Sources
- github.com/snyk/agent-scan