Skip to main content
Glama
Semgrep MCP Server

Semgrep MCP Server

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 build

Related MCP server: ACE-MCP

use

The server can be started in the following way:

# Produktionsmodus
npm start

# Entwicklungsmodus
npm run dev

Available tools

The server provides the following MCP tools:

  • scan_directory : Runs a Semgrep scan in a directory

  • list_rules : Lists available Semgrep rules

  • analyze_results : Analyzes the scan results

  • create_rule : Creates a new Semgrep rule

  • filter_results : Filters scan results according to various criteria

  • export_results : Exports scan results in various formats

  • compare_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-Regel

Dependencies

  • 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.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      F
      maintenance
      An 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.
      6
      3,485 PyPI
      687
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.
      1
      Apache 2.0