
Snyk's local MCP server: your agent scans code, dependencies, containers and IaC for security issues, then fixes and rescans.
by Snyk· SecurityUnclaimed · Yours? Claim it
4 images
About
Snyk's MCP server is built into the Snyk CLI. It lets your agent run Snyk security scans on the project you're working in and read the findings in the chat, so it can fix issues in the code it writes and rescan to check the fix. It's the scanning layer of Snyk Studio, Snyk's security setup for AI coding agents. What you can do with it - Scan your own code for vulnerabilities with Snyk Code (SAST) - Scan dependencies for open-source vulnerabilities and license issues with Snyk Open Source - Check Terraform, Kubernetes, CloudFormation, ARM and Serverless Framework files for misconfigurations - Scan container images and SBOM files for known vulnerabilities - Check a package's health (vulnerabilities, maintenance, community and popularity) before adding it, for npm, PyPI, NuGet, Maven and Go How it connects It runs on your machine through the Snyk CLI: npx -y snyk@latest mcp -t stdio, or snyk mcp -t stdio if you already have the CLI. Snyk doesn't offer a hosted server, because scans need your local files. The first time, sign in to Snyk and trust the project folder; you can also pass a Snyk token in the SNYK_TOKEN environment variable. Snyk has setup guides for Claude Code, Cursor, Codex CLI, Gemini CLI and more, and it works in any agent that runs local MCP servers. Good to know - You need a Snyk account. - Profiles choose which tools it offers: Lite keeps the essential scans, Full (the default) has every stable tool, and Experimental adds tools still being evaluated. Set one with --profile or SNYK_MCP_PROFILE. - Open-source scans may run your build tools, such as Gradle or Maven, to read the dependency tree. - For coding agents with hooks, Snyk also offers a Snyk Studio installer that makes the agent scan new code automatically.
Plugins people install alongside Snyk MCP.
Once it’s added
“Scan my directory for security issues.”
“Run a Snyk Code scan on the code you just wrote, fix what it finds and rescan.”
“Find and fix CVE-2021-44228 in this project.”
“Fix all the XSS vulnerabilities in server.ts.”
“Compare these date libraries and recommend the healthiest one to add.”
“Check our Terraform and Kubernetes files for misconfigurations.”
Before you add it
Reads only
Your project's code, dependency manifests and IaC files · Container images and SBOM files · Snyk's vulnerability data and package health ratings
Makes changes · your agent can ask first
Marks a project folder as trusted so Snyk can scan it · Stores or clears your Snyk sign-in on this machine
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
Runs on your machine.
claude_desktop_config.json{
"mcpServers": {
"snyk-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]",
"mcp",
"-t",
"stdio"
]
}
}
}Runs on your machine.
Add to VS Codecode --add-mcp '{"name":"snyk-mcp","command":"npx","args":["-y","[email protected]","mcp","-t","stdio"]}'copilot mcp add snyk-mcp -- npx -y [email protected] mcp -t stdio
Runs on your machine.
Add to Cursor.cursor/mcp.json{
"mcpServers": {
"snyk-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]",
"mcp",
"-t",
"stdio"
]
}
}
}Runs on your machine.
claude mcp add snyk-mcp -- npx -y [email protected] mcp -t stdio
Runs on your machine.
codex mcp add snyk-mcp -- npx -y [email protected] mcp -t stdio
Runs on your machine.
~/.gemini/config/mcp_config.json{
"mcpServers": {
"snyk-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]",
"mcp",
"-t",
"stdio"
]
}
}
}Runs on your machine.
gemini mcp add snyk-mcp npx -y [email protected] mcp -t stdio
Runs on your machine.
Runs on your machine.
opencode mcp add snyk-mcp -- npx -y [email protected] mcp -t stdio
Runs on your machine.
~/.hermes/config.yaml{
"mcp_servers": {
"snyk-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]",
"mcp",
"-t",
"stdio"
]
}
}
}Scanned and passed · checked 6 h ago
No reviews yet. Used Snyk MCP? Say how it went.
Write a reviewPlugins people install alongside Snyk MCP.
Anthropic's security review for Claude Code: flags injection, XSS, secrets and more as Claude edits, finishes a turn and commits.
Equips your coding agent with SAST, dependency scanning, a phased hardening workflow and STRIDE threat-modeling skills.
Alireza Rezvani's Claude Code hook that stops Claude before it writes common security anti-patterns, such as eval, pickle or SQL f-strings.
Microsoft's skills for Azure Data Explorer: build Kusto graphs, compose IRQL threat hunts and turn results into visual graphs.
Nobody has shared how they use Snyk MCP yet.
Security scan
Passed
Safe to install in every agent it supports. Runs on your machine.