Agent scan
MCP server by snyk Verified · gh:snyk
Discovers and scans agent components on your machine for prompt injections and vulnerabilities. It covers agents, MCP servers and skills, and can be run with uvx or as a standalone binary.
Install Agent scan
Built from the published package, never by AI.
claude mcp add agent-scan -- uvx snyk-agent-scanRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"agent-scan": {
"args": [
"snyk-agent-scan"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"agent-scan": {
"args": [
"snyk-agent-scan"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"agent-scan": {
"args": [
"snyk-agent-scan"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add agent-scan -- uvx snyk-agent-scan{
"mcpServers": {
"agent-scan": {
"args": [
"snyk-agent-scan"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add agent-scan uvx snyk-agent-scanGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the agent-scan block.
About
Snyk Agent Scan discovers installed agent components, including harnesses, MCP servers and skills, and scans them for threats such as prompt injections, sensitive data handling and malware payloads hidden in natural language. It auto-discovers supported agents such as Claude Code and Desktop, Cursor, Gemini CLI and Windsurf. It can also scan a specific MCP configuration file or a single skill file, and skill analysis can be turned off with a flag.
To get tool descriptions, the scanner starts stdio MCP servers using the commands in the config and connects to remote MCP URLs. The source warns that this can run commands or make outbound requests, so it recommends sandboxed scans of untrusted configs. Interactive scans ask for consent before contacting each server. It is aimed at developers who want to check their agent setup for these risks.
Written from the project's README and checked against it.
What you need
- Snyk API token set as SNYK_TOKEN
- uv installed to run the uvx version, or a standalone binary
- Windows 10, macOS 15 or a supported Linux distribution for standalone binaries
Try asking
- Scan my whole machine for prompt injections in agent components
- Scan my Cursor MCP configuration file for risks
- Scan all of my Claude skills for security issues
Good to know
- Free-tier users with a SNYK_TOKEN have a daily usage limit
- CLI output is experimental and may change between releases
- Scanning stdio MCP configs can execute commands from the config
- No npm package is published; install via uvx or a standalone binary
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Check MCP servers for prompt injection risks
- Audit installed agent skills for malware
- Scan Cursor or Claude Code MCP configs
Alternatives to Agent scan
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Agent scan: common questions
Does Agent Scan need a Snyk account?
Yes. The source says you must sign up at Snyk and set an API token as the SNYK_TOKEN environment variable before running any scan.
Is it safe to scan untrusted MCP configs?
The source warns that scans can execute stdio server commands and make network requests, so it recommends a sandbox such as a Docker container or VM. The --dangerously-run-mcp-servers flag should be used only in trusted environments.
Which AI agents does Agent Scan support?
The source lists support for Claude Code and Desktop, Cursor, GitHub Copilot, Windsurf, Gemini CLI, Amp, Amazon Q and other agents, with a per-OS coverage table.
How do I install Agent scan?
In Claude Code run claude mcp add agent-scan -- uvx snyk-agent-scan. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Agent scan the official server?
Agent scan is published by gh:snyk from its verified domain in the official MCP Registry.
Is Agent scan free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Agent scan safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Agent scan?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Agent scan work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
