Connect Cline to Snyk
How to set up Snyk Studio and the Snyk MCP server in Cline
Connect Cline to the local Snyk MCP server to scan code and dependencies from your coding assistant.
Prerequisites
Install Cline
Consult the official Cline documentation for Cline installation instructions.
Install the Snyk MCP server in Cline using npx
This installation instruction assumes you have a Node.js local development environment setup with the npx executable.
Open the Cline MCP configuration from MCP Servers in the top toolbar. Select Configure, then Configure MCP Servers. Visit the Cline MCP documentation.

Click the Configure MCP Servers button from the MCP Servers tab:

To install the Snyk MCP server, add the following mcpServers configuration block to the Cline MCP Servers configuration file:
Install the Snyk MCP server in Cline using Snyk CLI
Ensure that the Snyk CLI is installed and that the snyk executable is available in your system path.
To install the Snyk MCP server with the Snyk CLI, follow these instructions:
Add the following
mcpServersconfiguration block to the Cline MCP Servers configuration file:
After saving the MCP Servers configuration, confirm the Snyk MCP server is successfully installed and listed in the Cline UI.

Set up the Snyk MCP server
Authenticate with Snyk and complete the client's trust request for the repository directory when prompted.
The assistant invokes the authentication and trust workflows. Complete any browser confirmation request.

You can explicitly prompt to authenticate your account as follows:

After enabling Act mode and approving the request, the agent opens a browser for you to authenticate to the Snyk Web UI, then continues the session.

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.
The following is a suggested instruction for Cline rules. Open the Rules and Workflows menu using the bottom chat navigation from Cline.

Add the generic rule text as a global rule.
Examples
In the chat, you can tag specific files or functions and ask the agent to scan your code and third-party dependencies of the Project.
Cline invokes Snyk scanning tools and summarizes the results:

If the connection fails, visit Troubleshooting.
Last updated
Was this helpful?

