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 27, 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 deprecated repo lists https://mcp.semgrep.ai as an experimental server.
- 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.
- Guardian works in native Windows shells such as PowerShell and Cygwin, as well as in WSL.
- Cursor gets hooks and MCP through the Cursor Plugin Marketplace.
- The current README says the project is 'under active development'; the deprecated repo called it a beta project.
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 secret names, add secrets 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.
- The Future of MCP: David Soria Parra on Connectivity, Progressive Discovery and Skills Over MCPMCP co-creator David Soria Parra on why 2026 is about agent connectivity: skills, CLIs and MCP together, progressive discovery, programmatic tool calling, a stateless transport and skills over MCP.
- Gateways Are All You Need: How Anthropic Thinks About MCP in the EnterpriseAnthropic's Karan Sampath on why enterprises get stuck with a handful of MCP servers, and how one blessed gateway for auth, access control, routing and observability lets every team ship its own.
- Set Up Factory Droid Properly: AGENTS.md, Skills, Hooks, MCP and PermissionsA configuration guide for Factory Droid: where AGENTS.md, skills, hooks, MCP servers and settings live, what each one is for, and a starter setup you can commit to a repo today.
- Claude Code Just Got Code Mode: Save a Ton of TokensCode Mode lets Claude Code write JavaScript that makes all its tool calls at once and returns only what it needs. A real run: 11 tool calls in one 6 second step.
- Claude Code MCP Tasks: Long-Running Tools That Ask You ThingsClaude Code supports MCP Tasks and elicitations. What a tool call needs to become a task, what v2.1.319 changed for Bedrock and gateways, and what server authors change.
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 27, 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.