Semgrep MCP server
Semgrep's hosted MCP server exposes the Semgrep static-analysis engine as MCP tools, letting AI coding agents scan generated code for security vulnerabilities, supply-chain issues, and hardcoded secrets. It is the remote backend for the Semgrep Guardian plugin.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
https://mcp.semgrep.ai/mcpWhat its tools do
8 tools, grouped by the hints the source reports. Hints are self-declared, not verified behavior.
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Uptime 100% over 90 days
- Availability 3 of 3 checks passed in 30 days
About Semgrep
This server provides access to the Semgrep static-analysis engine, enabling AI agents to identify security vulnerabilities, supply-chain risks, and hardcoded secrets in code. It functions as the remote backend for the Semgrep Guardian plugin.
Agents can use this server to fetch findings from the Semgrep AppSec Platform, scan code files with custom rules, or trigger scans for vulnerabilities via chat prompts. It also supports scanning agent-written code during file writes or prompt regenerations when findings are detected.
Users must have a Semgrep account to connect. The initial connection requires OAuth sign-in, which opens the vendor's authorization prompt in a browser.
What you can do with it
- Scan agent-written code on every file write and prompt regeneration when findings appear.
- Scan code for security vulnerabilities from a chat prompt.
- Scan code files with a custom Semgrep rule.
- Fetch findings from the Semgrep AppSec Platform.
Source and maintenance
Tools
Reported by the attributed source; not independently observed by Koskamo.
semgrep_rule_schema
{
"type": "",
"required": null,
"properties": null
}get_supported_languages
{
"type": "",
"required": null,
"properties": null
}semgrep_findings
{
"type": "",
"required": null,
"properties": null
}semgrep_scan_with_custom_rule
{
"type": "",
"required": null,
"properties": null
}semgrep_scan
{
"type": "",
"required": null,
"properties": null
}semgrep_scan_local
{
"type": "",
"required": null,
"properties": null
}security_check
{
"type": "",
"required": null,
"properties": null
}get_abstract_syntax_tree
{
"type": "",
"required": null,
"properties": null
}90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 3 of 3 checks answered
- 2026-11-29: 4 of 4 checks answered
- 2026-11-30: 4 of 4 checks answered
- 2026-12-01: 1 of 1 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 3 of 3 (100%)
- Average latency
- 398 ms
- 95th percentile latency
- 486 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 361 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · probe · passed · 332 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · probe · passed · 500 ms · metadata changed · refuses unauthenticated initialize (HTTP 401)
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http semgrep https://mcp.semgrep.ai/mcpCodex
codex mcp add semgrep --url https://mcp.semgrep.ai/mcpCursor
{
"mcpServers": {
"semgrep": {
"url": "https://mcp.semgrep.ai/mcp"
}
}
}Cline
{
"mcpServers": {
"semgrep": {
"type": "streamableHttp",
"url": "https://mcp.semgrep.ai/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"semgrep": {
"type": "http",
"url": "https://mcp.semgrep.ai/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http semgrep https://mcp.semgrep.ai/mcpClaude Desktop
https://mcp.semgrep.ai/mcpWindsurf
{
"mcpServers": {
"semgrep": {
"serverUrl": "https://mcp.semgrep.ai/mcp"
}
}
}Let your agent find its tools
Find servers like Semgrep from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other developer tools servers
Frequently asked questions
- Can the server scan code for security vulnerabilities from a chat prompt?
- Yes, the server supports scanning code for security vulnerabilities from a chat prompt.
- What is required to connect to the Semgrep MCP server?
- A Semgrep account is required. Connection uses OAuth sign-in, opening the vendor's authorization prompt in a browser.
- Does the server support scanning with custom rules?
- Yes, the server allows scanning code files with a custom Semgrep rule.
- Can the server scan code on every file write?
- Yes, the server can scan agent-written code on every file write and prompt regeneration when findings appear.
Do you run Semgrep?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.