Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect Augment Code to Snyk

How to set up Snyk Studio and the Snyk MCP server in Augment Code

Connect Augment Code to the local Snyk MCP server to scan code and dependencies from your coding assistant.

This setup provides MCP access. It does not install Studio Secure at inception hooks. Rules instruct the agent when to scan and depend on the model following those instructions.

For clients supported by the Studio CLI installer, use Getting started with Snyk Studio. For enterprise deployment, use the Agentic Development Security (ADS) installer.

Prerequisites

Visit the Augment Code website to download the correct version of the IDE plugin.

Install the Snyk MCP server in Augment Code

Install the Snyk MCP server using the method that best suits your operating system and local development environment.

  • Name: Snyk

  • Command: npx -y snyk@latest mcp -t stdio

  • Name: Snyk

  • Command: /absolute/path/to/snyk mcp -t stdio

If the snyk command is not available, add it by following the instructions on the Install the Snyk CLI page.

Set up the Snyk MCP server

The MCP server starts automatically. The following example shows a Snyk MCP server that was successfully configured and started.

Snyk MCP server configured and started in Augment Code

Authenticate with Snyk and complete the client's trust request for the repository directory when prompted.

If you are already authenticated with the Snyk CLI installed on your system path, or through a prior interaction, then proceed to work with the Snyk MCP server.

Secure at inception rules

Add rules to guide the assistant when invoking Snyk scans. Rules do not guarantee that the model runs a scan. For the generic rule text, visit Rules for manual MCP integrations.

Add the generic rule text to your Augment Code user guidelines.

Secure at inception rules added to the Augment Code configuration

Examples

In the chat, you can tag specific files or functions and ask Augment Code to scan your code for safe deployment to production.

Augment Code indicates that this request is related to security vulnerability scanning and calls the Snyk MCP server for various scans.

Augment Code calling the Snyk MCP server for a vulnerability scan

Last updated

Was this helpful?