semgrep-mcp MCP Server

A Model Context Protocol (MCP) server for using Semgrep to scan code for security vulnerabilities. Secure your vibe coding! πŸ˜…

Local serverstdio

What is the semgrep-mcp Server?

semgrep-mcp is an MCP project maintained in the semgrep/mcp repository. The maintainer describes its purpose as β€œA Model Context Protocol (MCP) server for using Semgrep to scan code for security vulnerabilities. Secure your vibe coding! πŸ˜…β€. Read the project documentation for the complete scope.

Installation

The documented pypi package is semgrep-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares SEMGREP_APP_TOKEN. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation Β· Repository Β· Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
security_checkScan code for security vulnerabilities
semgrep_scanScan code files for security vulnerabilities with a given config string
semgrep_scan_with_custom_ruleScan code files using a custom Semgrep rule
get_abstract_syntax_treeOutput the Abstract Syntax Tree (AST) of code
semgrep_findingsFetch Semgrep findings from the Semgrep AppSec Platform API
supported_languagesReturn the list of languages Semgrep supports
semgrep_rule_schemaFetches the latest semgrep rule JSON Schema

How to install the semgrep-mcp Server

{
  "mcpServers": {
    "semgrep": {
      "command": "uvx",
      "args": [
        "semgrep-mcp"
      ],
      "env": {
        "SEMGREP_APP_TOKEN": "YOUR_SEMGREP_APP_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
SEMGREP_APP_TOKENDeclared in the maintainer’s client configuration.Check documentation