Connect JetBrains AI Assistant to Snyk
How to set up Snyk Studio and the Snyk MCP server in JetBrains AI Assistant
Connect JetBrains AI Assistant to the local Snyk MCP server to scan code and dependencies from your coding assistant.
Prerequisites
Install the code assistant extension
Add the JetBrains AI Assistant plugin to your JetBrains IDE (IntelliJ IDEA, WebStorm, PyCharm, and so on). Visit the official JetBrains AI Assistant getting started page.
JetBrains AI Assistant tends to work more stably with the Snyk MCP service when using the pre-installed CLI option.
Install the Snyk MCP server in JetBrains AI Assistant
Install the Snyk MCP server using the method that best suits your operating system and local development environment.
If you have the Snyk CLI installed, open Settings/Preferences > Tools > AI Assistant > Model Context Protocol (MCP). Edit the MCP configuration and add the following instructions:
If you have the Snyk CLI installed and accessible on your system path add the following command.

If the snyk command is not available, add it by following the instructions on the Install the Snyk CLI page.
Reload the IDE window for the changes to apply.
Navigate to Settings/Preferences > Tools > AI Assistant > Model Context Protocol (MCP).
If you have the Node.js npx executable installed in your environment, add the following command:

Reload the IDE window for the changes to apply.
Set up the Snyk MCP server
Verify that the Snyk MCP server is available by checking the Status column in the MCP configuration and requesting it to list the tools it has available.

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.
Examples
In the chat, you can tag specific files or functions and ask JetBrains AI Assistant to scan your code for safe deployment to production.
The AI Assistant indicates that this request is related to security vulnerability scanning and calls the Snyk MCP server for various scans.
Last updated
Was this helpful?

