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 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.
- 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.
- Claude Security Continuous Scanning: Fix Tracking, API and MCPClaude Security now rescans repos as commits land, marks findings fixed when the fix ships, and adds an API, MCP connector and webhooks. Setup, limits and cost.
- MCP Client Features: Sampling, Elicitation and Roots ExplainedMCP sampling, elicitation and roots explained against the 2026-07-28 spec, with JSON-RPC examples and which of 24 clients support each one.
- REA vs leanrea: Skill or MCP for Reverse Engineering Agents?leanrea is an 8 KB skill pitched as a replacement for the REA (Reverse Engineer Anything) MCP server. What its benchmark shows, what it skips, and which to install.
- How to Publish a Plugin to the Claude Directory (Developer Portal Guide)Submit a plugin to the Claude directory: validate it, clear the security scan, publish, and read 90 days of usage analytics. Needs a paid plan.
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.