Trivy Security Scanner MCP Server
Supports scanning and fixing vulnerable dependencies in Node.js projects.
Supports scanning and fixing vulnerable dependencies in Python projects.
Supports scanning and fixing vulnerable dependencies in Ruby projects.
Provides security scanning capabilities for projects, automatically scanning directories for vulnerabilities and offering automated fixes to update vulnerable dependencies to secure versions across multiple package managers.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Trivy Security Scanner MCP Serverscan my project for vulnerabilities and fix any found"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Trivy Security Scanner MCP Server
A Model Context Protocol (MCP) server that provides Trivy security scanning capabilities through a standardized interface.
ā ļø Note: This is a proof of concept project to demonstrate the integration capabilities between MCP, Cursor IDE, and Trivy. It's intended for experimentation and learning purposes only and is not production-ready. Use at your own risk.
Features
š Project Scanning: Automatically scan your project directory for security vulnerabilities using Trivy
š ļø Automated Fixes: Automatically update vulnerable dependencies to secure versions
š¦ Multi-Package Support: Handles multiple package managers (Python, Node.js, Ruby, Go)
Demo

Related MCP server: MCP SBOM Server
Architecture
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāā
ā Cursor IDE ā --> ā MCP Server ā --> ā Trivy ā
ā (Composer) ā ā ā ā ā
āāāāāāāāāāāāāāā āāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāPrerequisites
Python 3.12 or higher
Trivy installed on your system:
# macOS brew install trivy
Installation
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txtUsage
Start the server using SSE transport:
# Using SSE transport (default)
python server.py --transport sse --port 54321The server exposes two tools:
scan_project: Scans a directory for security vulnerabilitiesRequired argument:
workspace- The directory path to scan
fix_vulnerability: Updates a vulnerable package to a secure versionRequired arguments:
workspace- The directory to modifypkg_name- Name of the package to updatetarget_version- Version to update to
Using with Cursor IDE
Start the server with SSE transport:
python server.py --transport sse --port 54321Configure in Cursor:
Open Settings
Go to Features > MCP Servers
Add:
http://127.0.0.1:54321/sse
Add the following to your .cursorrules file, create it if you don't have one yet:
After making changes in any of the package dependency/manifest files, scan the project for security vulnerabilities. Fixes should only be according to the desired version reported by the scanner. If the scanner reports a fix unrelated to our change, ignore it. After performing the fix, scan the project for security vulnerabilities again.This configuration will:
Automatically trigger a security scan when any dependency file is modified
Help identify vulnerabilities as soon as new dependencies are added
Ensure your project stays secure throughout development
if you want to use the tool manually, you can use prompt the agent to use the tool with the following prompt through the composer interface:
Please scan my project for security vulnerabilities
Why MCP?
MCP (Model Context Protocol) exists to solve a fundamental problem in working with large language models (LLMs): how to efficiently and consistently connect these models to external data sources and tools.
Learn more at modelcontextprotocol.io.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License
Acknowledgments
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceAutomatically scans project dependencies (npm, Composer) for security vulnerabilities using the OSV.dev database, providing real-time alerts and detailed remediation guidance directly in your IDE.181MIT
- FlicenseAquality-maintenancePerforms vulnerability scans using Trivy to generate Software Bill of Materials (SBOM) in CycloneDX format. It enables automated security auditing and dependency tracking through the Model Context Protocol.1
- AlicenseAqualityDmaintenanceEnables AI assistants to scan project dependencies and Infrastructure as Code files for security vulnerabilities and misconfigurations. It also provides automated fixing capabilities to remediate identified security issues.183MIT

Git-Fabric CVEofficial
Alicense-quality-maintenanceProvides tools for autonomous CVE detection, enrichment, and remediation across managed repositories using GHSA and NVD data. It enables automated triage and pull request creation for dependency fixes based on configurable severity policies.
Related MCP Connectors
Multi-CI security scanner with a live threat-intel feed of compromised CI components
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/norbinsh/cursor-mcp-trivy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server