NeuralTrust has been recognized by Gartner → Read more

Connect Semgrep MCP to your AI agents, securely.

One secured endpoint for every Semgrep call your AI agents make, scoped per user, inspected, and logged.

Select the tools your AI agents can call

9 tools from the Semgrep MCP schema.

Showing 9 tools

  • semgrep_scanreadScans code files for security vulnerabilities with a given config string.
  • semgrep_scan_with_custom_rulereadScans code files using a custom Semgrep rule supplied by the caller.
  • semgrep_scan_remotereadScans code content supplied by the caller with Semgrep and returns the findings in JSON format.
  • semgrep_scan_supply_chainreadRuns a Semgrep supply chain scan on a workspace directory to identify vulnerabilities in third-party dependencies.
  • get_abstract_syntax_treereadOutputs the Abstract Syntax Tree of a piece of code.
  • semgrep_findingsreadFetches Semgrep findings from the Semgrep AppSec Platform API. Requires login and a Semgrep token.
  • semgrep_whoamireadReturns the identity of the current Semgrep user. Works only with JWTs, not API tokens.
  • semgrep_rule_schemareadFetches the latest Semgrep rule JSON Schema.
  • get_supported_languagesreadReturns the list of languages Semgrep supports.

What Semgrep MCP exposes

Semgrep MCP groups its 9 tools into 4 categories, each with a suggested starting policy.

All 9 tools as JSON, ready to paste.

CategoryCoversAccessSuggested policy
Scan CodeSecurity scanning of code files, scanning with a given config string, and scanning with a custom Semgrep ruleReadCode is sent to the scanner; avoid passing files that carry secrets
MetaThe list of supported languages and the latest Semgrep rule JSON SchemaReadReference lookups; safe to allow broadly
Understand CodeProducing the abstract syntax tree of a piece of codeReadRead-only parsing; no findings are recorded
Cloud PlatformFindings from the Semgrep AppSec Platform API. Requires login and a Semgrep tokenReadNeeds SEMGREP_APP_TOKEN; findings describe unfixed vulnerabilities, so restrict access

Connect Semgrep MCP to your AI agent

Four steps, under ten minutes.

  1. 01

    Sign in to NeuralTrust

    Open the NeuralTrust platform, sign in and go to Getting started, then Connect your tools.

    Sign in to NeuralTrust
  2. 02

    Choose your agent

    When asked which agent you use, pick Claude Code, Codex, Cursor, Windsurf, Copilot or your own code.

    Choose your agent
  3. 03

    Connect Semgrep

    Find Semgrep in the tool list and connect it.

    Connect Semgrep
  4. 04

    Connect your agent

    Follow the steps on screen to add the config to your agent, then send the test prompt.

    Connect your agent

Permissions down to the single tool

You do not allow Semgrep MCP or block it. You allow the exact tools each agent can call, one by one.

Semgrep MCP9 TOOLS AVAILABLE
Code review agent4 tools, read only
Issue triage bot9 tools
Platform team assistantall 9 tools
  • Tool by toolConnecting the server is not the unit of access. Each tool is granted on its own.
  • Default denyA tool you have not enabled is never exposed to the agent.
  • Approval on writesTools that change or delete things can require a human to confirm.

Is Semgrep MCP secure?

One endpoint instead of raw credentials. Every call is checked against policy and logged.

AI agentsConnect through your MCP client configuration.NeuralTrustApply controls based on your configuration.Semgrep MCP9 documented tools, all read-only. The server also ships one prompt and two resources.
Coding assistantsConnection & credentialsper userScan Code4 tools
Internal copilotsTool access policiesdeny by defaultMeta2 tools
Workflow automationsRequest & response inspectioninlineCloud Platform2 tools
Compatible MCP clientsActivity monitoringalerts and logsUnderstand Code1 tool
FAQ

Common questions about running Semgrep MCP through TrustGate.

Connect Semgrep MCP instantly

Pick the tools, point your agent at TrustGate, and Semgrep MCP is live: scoped, inspected, logged.