Skip to main content
Glama

Semgrep MCP Server

Official
by semgrep

start_scan

Initiate a Semgrep scan to detect code vulnerabilities, monitor progress via notifications, and analyze results using specified configurations for targeted files or directories.

Instructions

Starts a Semgrep scan with progress updates via notifications

Args: ctx: MCP context for sending notifications target_path: Absolute path to the file or directory to scan config: Semgrep configuration (e.g. "auto" or absolute path to rule file)

Returns: Dictionary with scan information

Input Schema

NameRequiredDescriptionDefault
configNoauto
target_pathYes

Input Schema (JSON Schema)

{ "properties": { "config": { "default": "auto", "title": "Config", "type": "string" }, "target_path": { "title": "Target Path", "type": "string" } }, "required": [ "target_path" ], "title": "start_scanArguments", "type": "object" }
Install Server

Other Tools from Semgrep MCP Server

Related Tools

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/semgrep/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server