Semgrep MCP Server
Enables cloning repositories for code analysis and scanning with Semgrep.
Supports working with Semgrep rules defined in YAML format, allowing for rule creation and management.
Click on "Deploy 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., "@Semgrep MCP Serverscan the current directory for security issues"
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.
Semgrep Server
A Model Context Protocol (MCP) server for integrating Semgrep into the development environment. This server enables static code analysis and the management of Semgrep rules directly via the MCP protocol.
installation
# Repository klonen
git clone [repository-url]
cd semgrep-server
# Abhängigkeiten installieren
npm install
# Server bauen
npm run buildRelated MCP server: ACE-MCP
use
The server can be started in the following way:
# Produktionsmodus
npm start
# Entwicklungsmodus
npm run devAvailable tools
The server provides the following MCP tools:
scan_directory: Runs a Semgrep scan in a directorylist_rules: Lists available Semgrep rulesanalyze_results: Analyzes the scan resultscreate_rule: Creates a new Semgrep rulefilter_results: Filters scan results according to various criteriaexport_results: Exports scan results in various formatscompare_results: Compares two scan results
Development
The project is written in TypeScript and uses the MCP SDK for the server implementation.
Project structure
semgrep-server/
├── src/ # Quellcode
├── build/ # Kompilierte JavaScript-Dateien
├── test.js # Testdateien
└── test-rule.yaml # Beispiel Semgrep-RegelDependencies
Node.js & npm
TypeScript
MCP SDK
Axios for HTTP requests
License
This project is licensed under the ISC License. See the LICENSE file for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
MCP server for Statsig API - interact with Statsig's feature flags, experiments, and analytics
- SupabaseOAuthcom.supabase
MCP server for interacting with the Supabase platform
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Related MCP Servers
AlicenseBqualityFmaintenanceAn MCP server that provides a comprehensive interface to Semgrep, enabling users to scan code for security vulnerabilities, create custom rules, and analyze scan results through the Model Context Protocol.6595 PyPI686MIT- AlicenseNot gradedqualityBmaintenanceEnables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.1Apache 2.0
- AlicenseAqualityDmaintenanceA production-grade security auditing MCP server that wraps semgrep (SAST) and gitleaks (secret detection) to enable one-click code security scanning via MCP stdio protocol.16 npmMIT
- AlicenseAqualityAmaintenanceMCP server that exposes SQLFluff's linting, fixing, and parsing capabilities, enabling MCP-aware clients to lint and fix SQL directly.8MIT