Snyk

Snyk

Official

Scan code, dependencies, containers and IaC for vulnerabilities from an AI coding assistant, through the MCP server built into the Snyk CLI.

Score 75(?)SnykApache-2.059Verified Top MCPs for Security →

Quick answer

What it does

Runs Snyk Open Source, Snyk Code, Snyk Container, and Snyk IaC scans against the current project and returns ranked findings with fix suggestions.

Best for

  • Pre-commit dependency scans
  • Snyk Code (SAST) findings during development
  • Container image vulnerability triage
  • IaC misconfiguration review

Not for

  • Production runtime security
  • Compliance-grade audit trails (use Snyk in CI for that)

Source: top-mcps.com/mcp/snyk — verified Nov 2026

Setup recipe

Pick your client, then follow the three steps.

  1. 1

    Install

    claude_desktop_config.json
    {
      "mcpServers": {
        "snyk": {
          "command": "npx",
          "args": [
            "-y",
            "snyk@latest",
            "mcp",
            "-t",
            "stdio"
          ],
          "env": {
            "SNYK_TOKEN": "${SNYK_TOKEN}"
          }
        }
      }
    }

    Paste under mcpServers. Fully quit and reopen Claude after editing.

    CLI or .mcp.json
    # export SNYK_TOKEN=your-snyk-api-token
    claude mcp add snyk -- npx -y snyk@latest mcp -t stdio

    Run from your repo. Commit .mcp.json to share with your team.

    .cursor/mcp.json
    {
      "mcpServers": {
        "snyk": {
          "command": "npx",
          "args": [
            "-y",
            "snyk@latest",
            "mcp",
            "-t",
            "stdio"
          ],
          "env": {
            "SNYK_TOKEN": "${SNYK_TOKEN}"
          }
        }
      }
    }

    Global path: ~/.cursor/mcp.json. Reload window after editing.

    .vscode/mcp.json
    {
      "servers": {
        "snyk": {
          "command": "npx",
          "args": [
            "-y",
            "snyk@latest",
            "mcp",
            "-t",
            "stdio"
          ],
          "env": {
            "SNYK_TOKEN": "${SNYK_TOKEN}"
          }
        }
      }
    }

    VS Code uses the "servers" key (not "mcpServers").

    ~/.codeium/windsurf/mcp_config.json
    {
      "mcpServers": {
        "snyk": {
          "command": "npx",
          "args": [
            "-y",
            "snyk@latest",
            "mcp",
            "-t",
            "stdio"
          ],
          "env": {
            "SNYK_TOKEN": "${SNYK_TOKEN}"
          }
        }
      }
    }

    Open via Cascade → hammer icon → Configure.

    cline_mcp_settings.json
    {
      "mcpServers": {
        "snyk": {
          "command": "npx",
          "args": [
            "-y",
            "snyk@latest",
            "mcp",
            "-t",
            "stdio"
          ],
          "env": {
            "SNYK_TOKEN": "${SNYK_TOKEN}"
          }
        }
      }
    }

    Open via the Cline sidebar → MCP Servers → Edit.

    ~/.continue/config.json
    {
      "experimental": {
        "modelContextProtocolServers": [
          {
            "transport": {
              "type": "stdio",
              "command": "npx",
              "args": [
                "-y",
                "snyk@latest",
                "mcp",
                "-t",
                "stdio"
              ],
              "env": {
                "SNYK_TOKEN": "${SNYK_TOKEN}"
              }
            }
          }
        ]
      }
    }

    Continue uses modelContextProtocolServers with a transport block.

    ~/.codex/config.toml
    # ~/.codex/config.toml
    [mcp_servers.snyk]
    command = "npx"
    args = [
      "-y",
      "snyk@latest",
      "mcp",
      "-t",
      "stdio",
    ]
    env = { SNYK_TOKEN = "${SNYK_TOKEN}" }

    Codex uses TOML. Each server is a [mcp_servers.<name>] subtable.

    ~/.config/zed/settings.json
    {
      "context_servers": {
        "snyk": {
          "command": {
            "path": "npx",
            "args": [
              "-y",
              "snyk@latest",
              "mcp",
              "-t",
              "stdio"
            ]
          },
          "env": {
            "SNYK_TOKEN": "${SNYK_TOKEN}"
          }
        }
      }
    }

    Zed calls them "context_servers". Settings live-reload on save.

    ChatGPT → Plugins

    Snyk doesn't ship a hosted HTTPS endpoint today. ChatGPT supports remote MCP servers only — to use this server in ChatGPT you'll need to deploy it to a public HTTPS URL first (e.g. via Cloudflare Workers or Vercel) or wait for an official remote build.

  2. 2

    Set required secrets

    Set SNYK_TOKEN in your shell environment before launching your MCP client.

  3. 3

    Try a minimum working prompt

    Minimum working prompt pending verification. Try any prompt from the MCP’s README once installed.

Tools & permissions

ToolDescriptionArgsSide effects
snyk_sca_scanOpen Source scan: dependency vulnerabilities and license issues from the project manifests.—Read
snyk_code_scanSnyk Code static analysis of the source tree.—Read
snyk_iac_scanInfrastructure-as-code misconfiguration scan.—Read
snyk_container_scanContainer image vulnerability scan.—Read
snyk_sbom_scanScan an SBOM file for known vulnerabilities.—Read
snyk_secret_scanSecret detection scan (experimental).—Read
snyk_package_health_checkPackage health and security assessment for a dependency.—Read
snyk_trustMark a folder as trusted before scanning it.—Write
snyk_authAuthenticate the CLI with Snyk.—Write

Security & scope

Access scope
Exec
Sandbox
Runs the Snyk CLI locally as a stdio process with your Snyk login. Source code for Snyk Code scans is uploaded to the Snyk service. OSS scans use the local manifest only. Use the lowest-privilege token your plan supports.
Gotchas
  • `snyk_sca_scan` can run your build tools (Gradle, Maven and similar) to resolve the dependency tree, so only scan projects you trust; the server asks you to trust a folder (`snyk_trust`) before scanning it.
  • Source upload happens for Code scans — review data-residency policy before enabling on sensitive repos.
  • Snyk tokens are long-lived; rotate per the credential-rotation playbook.
  • Free-tier rate limits apply per token; coordinate across the team to avoid surprise throttling.

Agent prompt pack

— copy into Claude, Cursor, or ChatGPT.
Paste into Claude, Cursor, or ChatGPT. Edit the [brackets] before sending.
Recommend the best MCP servers for [task: e.g. security work] in [client: Claude].

Constraints:
- Prefer tools that are [official | open-source | read-only] — pick what matters for my use case.
- Exclude MCPs that require [e.g. a paid plan, OAuth-only flows, remote-only transport].
- Return at most 3 picks, ranked.

For each pick include:
1. One-sentence rationale.
2. The ready-to-paste install snippet for my client.
3. Any required secrets I need to create before installing.

Cross-check the top-mcps.com listing: https://top-mcps.com/top-mcps-for-security
Compare Snyk against a real alternative. Swap the second MCP in [brackets] if you want a different match.
Compare Snyk MCP vs [Semgrep MCP] for the following job: [describe the job, e.g. "let an agent create GitHub issues on bug triage"].

Judge them on:
- Setup time and complexity (what a new user hits first).
- Auth model (none / API key / OAuth 2.1) and credential risk.
- Transport (stdio / Streamable HTTP / SSE) and where the server runs.
- Required secrets and the blast radius if they leak.
- Operational risk in an unattended agent loop.
- Which one is "good enough" for a weekend prototype vs. production.

End with one sentence: which should I pick for my scenario, which is: [my scenario].

References:
- https://top-mcps.com/mcp/snyk
- top-mcps.com listing for Semgrep
Asks the agent to install and verify. Works inside Claude Code, Cursor Agent, Codex CLI.
Install the Snyk MCP server for my [client: Claude] at the default config path for that client.

Use the exact install snippet published at https://top-mcps.com/mcp/snyk (fetch https://top-mcps.com/mcp/snyk.json for the canonical server.json if you can read URLs).

Before finishing:
1. Create the required secrets (SNYK_TOKEN) and put them in the appropriate env block — do not hard-code them.
2. Restart or reload the client so it picks up the new server.
3. Verify the server is connected (green / running state) and at least one tool is listed.
4. If anything fails, read the client's MCP logs and report the exact error — do not silently retry.

Confirm when done and list the tools the server now exposes.

Frequently asked questions

What changed

— 1 update tracked.
  1. Repointed from the removed @snyk/mcp-server npm package to the MCP server built into the Snyk CLI (`npx -y snyk@latest mcp -t stdio`); Archived label removed and the tool list taken from snyk/studio-mcp.

More Security MCPs

Other tools in the same category worth evaluating.

Sentry
Official

Triage errors, inspect traces, and query events from Sentry.

sentry, errors, monitoring, observability
3 minLow
Cloudflare
Official

Reach the whole Cloudflare API from an agent — DNS records, Workers, R2, and the Registrar beta — through one hosted Code Mode server.

cloudflare, edge, workers, dns
5 minMedium
1Password
Official

Inject 1Password secrets into an AI agent's tool calls without exposing them in chat.

security, secrets, 1password, vault
8 minLow

Compared with Snyk

Side-by-side breakdowns for the choices people most often weigh against this MCP.

Exploring Top MCPs for Security? See all Security MCPs →