Enables scanning of GitHub repositories for vulnerabilities and security issues by connecting to repositories like 'github.com/aquasecurity/trivy-ci-test'.
Provides vulnerability scanning capabilities for various sources including filesystems, container images, and code repositories, allowing users to identify vulnerabilities and misconfigurations through an MCP server interface.
Trivy MCP Server Plugin - EXPERIMENTAL WIP
This plugin starts an MCP Server that can be used as a gateway to Trivy
Important
This is early stage development of the MCP Server, so you should assume things won't work great for now
Installing the plugin
To install the plugin you can use Trivy's plugin management system
The will install the latest version of the plugin
Starting the plugin
You're now ready to start the plugin, this will launch an MCP server that Cursor or VSCode can interact with. For now, the instructions will focus on VSCode
Options
Along with the usual global flags supported by Trivy, the following flags are available for the MCP server. For now, you don't need to specify any of them
Argument | Options | Default | Description |
---|---|---|---|
--transport / -t | sse , stdio | stdio | The transport of MCP Server to run |
--port / -p | 23456 | The port to launch the MCP server on | |
--trivy-binary | Optionally provide a binary to use instead of core code |
Configuring the MCP Server in VSCode
Now, we need to configure the server in VSCode to start using as an agent
Prereqs
- >= version 1.99.0 of VS Code
Configuring the plugin
You can configure the Trivy mcp to start itself or use the sse http endpoint
Configuring for stdio
- In VS Code, press
F1
- Search for
"Preferences: Open User Settings (JSON)"
- Find or create the
"mcp"
block and add a server as below - When you save, an annotation will appear to
Start
the server
Configuring for SSE HTTP
- Start the MCP Server
- In VS Code, press
F1
- Search for
"Preferences: Open User Settings (JSON)"
- Find or create the
"mcp"
block and add a server as below - When you save, an annotation will appear to
Start
the server
Some sample prompts
Important
Ensure that the chat window is in Agent
mode not Ask
Filesystem scanning
With an open project, why not try;
Image scanning
You can ask about images to get information
Repository scanning
Find out about a remote repository
Related MCP Servers
- -securityAlicense-qualityProvides Trivy security scanning capabilities through a standardized interface, allowing users to scan projects for vulnerabilities and automatically fix them by updating dependencies.Last updated -2PythonMIT License
- -securityFlicense-qualityAn interface that enables Claude to interact with Spline 3D design tool, allowing operations like exporting scenes, importing models, and creating animations through natural language commands.Last updated -JavaScript
- AsecurityFlicenseAqualityA model context protocol server that allows interaction with TriliumNext Notes, providing tools to create, search, retrieve, update, and delete notes through natural language commands.Last updated -51JavaScript
- JavaScript