Koskamo

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.

Semgrep logo, by SemgrepVendor evidenceStreamable HTTPOAuth sign-inEndpoint checked 2026-11-30Operated by Semgrep
You need:Semgrep account
MCP endpoint (Streamable HTTP)
https://mcp.semgrep.ai/mcp
Vendor documentation

What its tools do

8 tools, grouped by the hints the source reports. Hints are self-declared, not verified behavior.

0 of 8 have a description · 0 of 8 declare behavior hints

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

Vendor evidence

Tools

Reported by the attributed source; not independently observed by Koskamo.

semgrep_rule_schema
Reported by the attributed source; not independently observed by Koskamo.
semgrep_rule_schema input schema
{
  "type": "",
  "required": null,
  "properties": null
}
get_supported_languages
Reported by the attributed source; not independently observed by Koskamo.
get_supported_languages input schema
{
  "type": "",
  "required": null,
  "properties": null
}
semgrep_findings
Reported by the attributed source; not independently observed by Koskamo.
semgrep_findings input schema
{
  "type": "",
  "required": null,
  "properties": null
}
semgrep_scan_with_custom_rule
Reported by the attributed source; not independently observed by Koskamo.
semgrep_scan_with_custom_rule input schema
{
  "type": "",
  "required": null,
  "properties": null
}
semgrep_scan
Reported by the attributed source; not independently observed by Koskamo.
semgrep_scan input schema
{
  "type": "",
  "required": null,
  "properties": null
}
semgrep_scan_local
Reported by the attributed source; not independently observed by Koskamo.
semgrep_scan_local input schema
{
  "type": "",
  "required": null,
  "properties": null
}
security_check
Reported by the attributed source; not independently observed by Koskamo.
security_check input schema
{
  "type": "",
  "required": null,
  "properties": null
}
get_abstract_syntax_tree
Reported by the attributed source; not independently observed by Koskamo.
get_abstract_syntax_tree input schema
{
  "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.

100% (89 of 89 checks answered)

  1. 2026-11-02: 3 of 3 checks answered
  2. 2026-11-03: 4 of 4 checks answered
  3. 2026-11-04: 4 of 4 checks answered
  4. 2026-11-05: 4 of 4 checks answered
  5. 2026-11-06: 4 of 4 checks answered
  6. 2026-11-07: 2 of 2 checks answered
  7. 2026-11-09: 1 of 1 checks answered
  8. 2026-11-10: 2 of 2 checks answered
  9. 2026-11-11: 1 of 1 checks answered
  10. 2026-11-12: 1 of 1 checks answered
  11. 2026-11-14: 1 of 1 checks answered
  12. 2026-11-15: 2 of 2 checks answered
  13. 2026-11-16: 4 of 4 checks answered
  14. 2026-11-17: 5 of 5 checks answered
  15. 2026-11-18: 5 of 5 checks answered
  16. 2026-11-19: 4 of 4 checks answered
  17. 2026-11-20: 3 of 3 checks answered
  18. 2026-11-21: 4 of 4 checks answered
  19. 2026-11-22: 4 of 4 checks answered
  20. 2026-11-23: 3 of 3 checks answered
  21. 2026-11-24: 4 of 4 checks answered
  22. 2026-11-25: 4 of 4 checks answered
  23. 2026-11-26: 4 of 4 checks answered
  24. 2026-11-27: 4 of 4 checks answered
  25. 2026-11-28: 3 of 3 checks answered
  26. 2026-11-29: 4 of 4 checks answered
  27. 2026-11-30: 4 of 4 checks answered
  28. 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.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http semgrep https://mcp.semgrep.ai/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add semgrep --url https://mcp.semgrep.ai/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable semgrep in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "semgrep": {
      "url": "https://mcp.semgrep.ai/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "semgrep": {
      "type": "streamableHttp",
      "url": "https://mcp.semgrep.ai/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start semgrep and inspect its tools.
VS Code configuration
{
  "servers": {
    "semgrep": {
      "type": "http",
      "url": "https://mcp.semgrep.ai/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http semgrep https://mcp.semgrep.ai/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://mcp.semgrep.ai/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "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.

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.

Claim this listing