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.Try Semgrep MCP now
What your agents can ask once Semgrep MCP is connected.
Select the tools your AI agents can call
9 tools from the Semgrep MCP schema.
Showing 9 tools
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.
| Category | Covers | Access | Suggested policy |
|---|---|---|---|
| Scan Code | Security scanning of code files, scanning with a given config string, and scanning with a custom Semgrep rule | Read | Code is sent to the scanner; avoid passing files that carry secrets |
| Meta | The list of supported languages and the latest Semgrep rule JSON Schema | Read | Reference lookups; safe to allow broadly |
| Understand Code | Producing the abstract syntax tree of a piece of code | Read | Read-only parsing; no findings are recorded |
| Cloud Platform | Findings from the Semgrep AppSec Platform API. Requires login and a Semgrep token | Read | Needs SEMGREP_APP_TOKEN; findings describe unfixed vulnerabilities, so restrict access |
Connect Semgrep MCP to your AI agent
Four steps, under ten minutes.
- 01
Sign in to NeuralTrust
Open the NeuralTrust platform, sign in and go to Getting started, then Connect your tools.
- 02
Choose your agent
When asked which agent you use, pick Claude Code, Codex, Cursor, Windsurf, Copilot or your own code.
- 03
Connect Semgrep
Find Semgrep in the tool list and connect it.
- 04
Connect your agent
Follow the steps on screen to add the config to your agent, then send the test prompt.
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 MCP | 9 TOOLS AVAILABLE |
|---|---|
| Code review agent | 4 tools, read only |
| Issue triage bot | 9 tools |
| Platform team assistant | all 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 assistants | Connection & credentialsper user | Scan Code4 tools |
| Internal copilots | Tool access policiesdeny by default | Meta2 tools |
| Workflow automations | Request & response inspectioninline | Cloud Platform2 tools |
| Compatible MCP clients | Activity monitoringalerts and logs | Understand Code1 tool |
Use Semgrep MCP with any AI agent framework
Setup guides for the tools your team already uses.
Claude CodeAdd Semgrep MCP to Claude Code from the terminal
CursorUse Semgrep MCP tools inside Cursor's agent
CodexConnect Semgrep MCP to the OpenAI Codex CLI
WindsurfGive Windsurf's Cascade access to Semgrep MCP
Gemini CLICall Semgrep MCP from Gemini CLI prompts
Google AntigravityLet Antigravity agents work with Semgrep MCP
GitHub CopilotUse Semgrep MCP in Copilot agent mode
Claude EnterpriseRoll out Semgrep MCP across your Claude workspace
Microsoft Copilot StudioAdd Semgrep MCP as a tool for Copilot Studio agents
Open WebUIBring Semgrep MCP tools into Open WebUI chats
LangChainLoad Semgrep MCP tools into LangChain agents
HaystackPlug Semgrep MCP into Haystack agent pipelines
Strands AgentsGive Strands agents Semgrep MCP tools
Vercel AI SDKCall Semgrep MCP from Vercel AI SDK apps
n8nUse Semgrep MCP in n8n AI agent workflows
Common questions about running Semgrep MCP through TrustGate.
Other MCP servers
More servers from the catalog.
SonarQube
Securely connect your AI agents to SonarQube through TrustGate: code analysis, issues, quality gates, security hotspots, coverage, measures and dependency risks, scoped per agent and logged.
38 toolsViewGitHub
Securely connect your AI agents to GitHub through TrustGate: repositories, issues, pull requests, Actions, and 92 more tools, scoped per agent and logged.
96 toolsViewJFrog
Securely connect your AI agents to the JFrog Platform through TrustGate: Artifactory repositories and builds, Xray security, Curation, Distribution, Evidence, Workers and AppTrust, scoped per agent and logged.
114 toolsView)
Vanta
Securely connect your AI agents to Vanta through TrustGate: compliance tests, controls, documents, frameworks, integrations, people, risks and vulnerabilities, scoped per agent and logged.
42 toolsView
Connect Semgrep MCP instantly
Pick the tools, point your agent at TrustGate, and Semgrep MCP is live: scoped, inspected, logged.