Snyk MCP installation, configuration, and startup
To use the Snyk MCP server, download and install the Snyk CLI v1.1296.2 or later following the steps on the installation page. No other dependencies are needed. Snyk recommends always using the latest version of the CLI.
Environment variables for MCP
You can set CLI environment variables for the MCP server in the following ways:
In the MCP server configuration file, whether in your IDE or on the MCP host
Directly on your system
For a full list of supported CLI environment variables, see Environment variables for Snyk CLI.
Starting the Snyk MCP server
To start the Snyk MCP server, use the snyk mcp
command for a supported transport type, stdio
or sse
as follows:
snyk mcp -t sse --experimental
- Start the Snyk MCP server using sse
, HTTP Server-Sent Events Transport. The available endpoint is /sse
.
snyk mcp -t stdio --experimental
- Start the Snyk MCP server using stdio
, Stdio (Standard IO) Transport.
Last updated
Was this helpful?