Auth and security - official Semgrep server
Semgrep MCP server
Exposes Semgrep static analysis to AI agents: scan code for security vulnerabilities, run custom rules, run supply chain scans, fetch the AST and pull findings from Semgrep AppSec Platform. It ships inside the Semgrep CLI as the semgrep mcp subcommand and is bundled with hooks and skills as Semgrep Guardian. It runs locally from semgrep (pypi) with OAuth or API key auth.
Last verified 9 tools11 sources
Install
Claude Code
About Claude Codeclaude plugin install semgrep@claude-plugins-officialCodex
About Codexcodex plugin marketplace add https://github.com/semgrep/guardian --sparse .claude-plugin --sparse plugin
codex plugin add semgrep@semgrep-marketplaceVS Code
{
"servers": {
"semgrep": {
"command": "semgrep",
"args": ["mcp"]
}
}
}Generic
{
"mcpServers": {
"semgrep": {
"command": "semgrep",
"args": ["mcp"],
"env": {
"SEMGREP_APP_TOKEN": "${SEMGREP_TOKEN}"
}
}
}
}Tools
semgrep_scan- Runs a Semgrep scan locally on provided code files and returns the findings in JSON format.
semgrep_scan_remote- Runs a Semgrep scan on provided code content and returns the findings in JSON format (hosted mode only).
semgrep_scan_with_custom_rule- Runs a Semgrep scan with a custom rule on provided code content.
semgrep_scan_supply_chain- Runs a Semgrep supply chain scan on the provided workspace directory to identify third-party security vulnerabilities.
semgrep_findings- Fetches findings from the Semgrep AppSec Platform Findings API.
get_abstract_syntax_tree- Returns the Abstract Syntax Tree (AST) for the provided code file in JSON format.
get_supported_languages- Returns a list of supported languages by Semgrep.
semgrep_rule_schema- Get the schema for a Semgrep rule.
semgrep_whoami- Returns the identity of the current user (HTTP transports with OAuth only).
As documented on October 17, 2026. A running server reports its current list through tools/list.
Notes and caveats
- The standalone semgrep/mcp repo (PyPI semgrep-mcp, ghcr.io/semgrep/mcp) is deprecated; the server now lives in the main semgrep repo and runs as
semgrep mcp. - The recommended Claude Code and Codex setups install the Semgrep Guardian plugin (MCP server plus hooks and skills).
- These use Semgrep's hosted remote server with OAuth, need no local CLI, and run a fixed guardian-default ruleset that ignores org Policies.
- The docs do not publish a hosted endpoint URL; the deprecated repo listed https://mcp.semgrep.ai as experimental.
- Every other agent needs the local Semgrep CLI signed in with
semgrep login, and those setups apply org Policies. - SEMGREP_APP_TOKEN is optional for AppSec Platform features.
- Windows needs WSL.
- Cursor install is through the Cursor Plugin Marketplace, with no config snippet documented.
- Separately, https://semgrep.dev/docs/mcp is a docs-search MCP endpoint, not this server.
More MCP servers for auth and security
- 1Password
1Password Device Trust MCP server
Self-hosted Python MCP server that exposes the 1Password Device Trust (formerly Kolide) API so agents can query devices, people, checks, issues and live query campaigns, with auto-pagination and aggregation helpers. It runs locally over Streamable HTTP or stdio.
Transport: Streamable HTTP, stdioAuth: API key - 1PasswordStatus: Beta
1Password Environments MCP server
Local stdio MCP server built into the 1Password desktop app that lets agents create, list and rename 1Password Environments, list variable names, add variables and create locally mounted .env files. It never returns secret values to the client.
Transport: stdioAuth: Other - 1Password
MCP server for 1Password SaaS Manager
MCP server exposing the 1Password SaaS Manager (formerly Trelica) API, covering audit logs, applications, workflows, people and teams, contracts and assets. Available as a hosted read-only remote server or a local sm-mcp binary that can optionally enable writes.
Transport: Streamable HTTP, stdioAuth: OAuth - Auth0Status: Beta
Auth0 MCP server
Local MCP server that connects AI clients to an Auth0 tenant through the Management API to create and update applications, APIs, client grants, Actions and Forms, read logs, and onboard a project with an Auth0 SDK quickstart.
Transport: stdioAuth: OAuth - Clerk
Clerk MCP server
Remote MCP server that lets AI agents work with a Clerk account, including creating and configuring applications, managing users, checking domains and setting up production instances, and returns Clerk SDK snippets.
Transport: Streamable HTTPAuth: OAuth - Cloudflare
Cloudflare One CASB MCP server
A remote MCP server for inspecting Cloudflare One CASB integrations, assets and asset categories to find security misconfigurations in SaaS applications.
Transport: Streamable HTTPAuth: OAuth or API key
Related reading
- GLM 5.2 Outperforms Claude Code on Semgrep's IDOR Vulnerability BenchmarksGLM 5.2 vs Claude Code on Semgrep IDOR benchmarks: the open-weight model scored higher at about one-sixth the cost per finding. Setup, results and HN reactions.
- What's New in Mastra (Late 2026): Harness, AgentController GA, Eval Gates and MCP 2.xMastra in late 2026: goals, schedules, signals, AgentController GA, eval gates and MCP 2.x, with type-checked TypeScript examples and honest tradeoffs.
- MCP vs A2A vs Function Calling: Which Layer Does What in 2026MCP vs A2A vs function calling compared on the 2026-07-28 MCP spec and A2A 1.0: what each protocol does, where they overlap, and how to stack them.
- Pydantic AI V2 in Late 2026: Capabilities, Graphs, Evals and MCPPydantic AI V2 explained through v2.57.0: capabilities, typed output, Conversation storage, caching, graphs, evals, MCP Apps and Logfire, with checked code.
- Reverse Engineer Anything (REA): What the MCP Server Does and Where the Line IsREA (Reverse Engineer Anything) is an MIT-licensed MCP server that lets Claude Code, Codex or Cursor inspect binaries, Electron apps and APKs. How to try it.
- Claude Opus 5.5 Built a Browser 3D World: The Higgsfield MCP WorkflowClaude Opus 5.5 and Higgsfield MCP built an interactive 3D Library of Alexandria in the browser. The verified connector setup and where the workflow holds up.
FAQ
What does the Semgrep MCP server do?
Exposes Semgrep static analysis to AI agents: scan code for security vulnerabilities, run custom rules, run supply chain scans, fetch the AST and pull findings from Semgrep AppSec Platform. It ships inside the Semgrep CLI as the semgrep mcp subcommand and is bundled with hooks and skills as Semgrep Guardian. The vendor documents 9 tools, including semgrep_scan, semgrep_scan_remote, semgrep_scan_with_custom_rule and semgrep_scan_supply_chain.
How do I add the Semgrep MCP server to Claude Code?
Run claude plugin install semgrep@claude-plugins-official, copied from Semgrep's docs. This page also has snippets for Codex, VS Code and Generic.
Does the Semgrep MCP server need authentication?
Yes, OAuth or API key. Transport: stdio, Streamable HTTP. Status: Unlabelled, last checked October 17, 2026.
Sources
Last verified against 11 Semgrep pages, then re-checked independently.
- raw.githubusercontent.comhttps://raw.githubusercontent.com/semgrep/mcp/HEAD/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/semgrep/semgrep/develop/cli/src/semgrep/mcp/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/semgrep/semgrep/develop/cli/src/semgrep/mcp/server.py
- raw.githubusercontent.comhttps://raw.githubusercontent.com/semgrep/semgrep/develop/LICENSE
- raw.githubusercontent.comhttps://raw.githubusercontent.com/semgrep/guardian/HEAD/README.md
- raw.githubusercontent.comhttps://raw.githubusercontent.com/semgrep/guardian/HEAD/plugin/.mcp.json
- github.comhttps://github.com/semgrep/semgrep/releases
- docs.semgrep.devhttps://docs.semgrep.dev/semgrep-guardian/overview
- docs.semgrep.devhttps://docs.semgrep.dev/semgrep-guardian/choose-your-setup
- docs.semgrep.devhttps://docs.semgrep.dev/semgrep-guardian/quickstart
- docs.semgrep.devhttps://docs.semgrep.dev/semgrep-guardian/ide-setup/other
Newsletter
New MCP servers, the week they ship
One email per week. New official MCP servers, the coding tools that support them and how developers wire them up.