Semgrep MCP

Semgrep MCP

semgrep
GitHubnpm

About

A Model Context Protocol server for using Semgrep to scan code for security vulnerabilities. Semgrep is a fast, deterministic static analysis tool that semantically understands many languages and comes with over 5,000 rules.

Note: This repository has been deprecated. Further updates are now in the main semgrep repository.

Features

Security Scanning

  • Scan code for security vulnerabilities using Semgrep's extensive rule library
  • Create and use custom Semgrep rules
  • Get Abstract Syntax Tree (AST) output for code analysis

Cloud Platform Integration

Optionally connect to Semgrep AppSec Platform to:

  • Fetch findings from the Semgrep AppSec Platform API
  • Leverage cloud-based scanning capabilities

Language Support

  • Supports many programming languages
  • Query supported languages via the supported_languages tool

Tools

  • security_check - Scan code for security vulnerabilities
  • semgrep_scan - Scan code files with a given config string
  • semgrep_scan_with_custom_rule - Scan using custom Semgrep rules
  • get_abstract_syntax_tree - Output the AST of code
  • semgrep_findings - Fetch findings from Semgrep AppSec Platform (requires token)
  • supported_languages - List languages Semgrep supports
  • semgrep_rule_schema - Fetch the latest Semgrep rule JSON Schema

Resources

  • semgrep://rule/schema - Semgrep rule YAML syntax JSON schema
  • semgrep://rule/{rule_id}/yaml - Full Semgrep rule in YAML format from registry

Prompts

  • write_custom_semgrep_rule - Help write a Semgrep rule

This server runs through your single 1Server connection. No extra config required.

0Installs
669Stars

Categories

DevelopmentDevOpsDebug

Tags

Official