Semgrep MCP server
Run Semgrep scans and pull AppSec Platform findings from your AI agents.
About
Connect Tracecat to Semgrep to run SAST scans and pull AppSec Platform findings for AppSec engineers and security agents reviewing code changes. You can scan a repository on demand with default or custom rules and inspect the AST for any snippet. From there, pull platform findings for a project, draft new detection rules, and triage pull requests with precision.
Setup
- 1
Create an access token
The Semgrep MCP server runs scans locally without auth. To pull findings from the Semgrep AppSec Platform you set the `SEMGREP_APP_TOKEN` environment variable with a token generated from your Semgrep account settings.
- 2
Select the
Semgreptile in the Tracecat MCP catalogOpen the
MCP catalogin your workspace, select theSemgreptile, and paste your access token. - 3
Enable
Semgrepin your agentIn your
ai.agentaction orAgents→toolstab, selectSemgrepfrom theMCP integrationsdropdown.
Tools
semgrep_scanRun a Semgrep scan against a local code path.
semgrep_scan_with_custom_ruleRun a scan using a custom Semgrep rule supplied at call time.
semgrep_scan_supply_chainRun a Semgrep supply-chain scan for dependency findings.
get_abstract_syntax_treeReturn the AST for a snippet, useful when authoring custom rules.
semgrep_findingsFetch findings from the Semgrep AppSec Platform for a project or org.
get_supported_languagesList languages Semgrep can parse and scan today.
semgrep_rule_schemaReturn the JSON Schema for Semgrep rule files.