# Semgrep

An MCP server that lets the coding agent run Semgrep and brings vulnerability findings back into the conversation.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: docker
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/docker/mcp-registry/blob/98a203ca6e58c67031b8aaed037a26a07ec73ce3/servers/semgrep/server.yaml
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/semgrep

## What it does

Semgrep hunts for insecure patterns in source code. This server exposes it to the agent as a tool, so Claude, Cursor or Codex can start a scan on their own and report what turned up in the same chat where the fix happens.

It behaves like any MCP server: it runs next to the client and answers the agent's requests. Declared clients are Claude, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed and Gemini CLI. An editor without MCP support has nowhere to plug it in, and that list is the real limit here.

Ask for a pass over the project before you commit and you get a set of spots to inspect by hand. The agent sees the output itself, so acting on a finding takes one message.

## Requirements
- Needs: Docker

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- scan a codebase for vulnerabilities without leaving the agent chat
- get a list of risky spots before committing
- wire Semgrep into Cursor or Codex as a tool
- read analyzer findings in the same thread where the fix happens

## Example prompts
- Run Semgrep over `src` and show me what it flags
- Check this file for security issues with Semgrep
- Scan the project and sort the findings by severity

## Similar
- [semgrep-rule-creator](https://affpapa.org/en/nevibecode/skills/semgrep-rule-creator.md) — skill · 6400 installs
- [semgrep-rule-variant-creator](https://affpapa.org/en/nevibecode/skills/semgrep-rule-variant-creator.md) — skill · 5900 installs
- [write_semgrep_rule](https://affpapa.org/en/nevibecode/prompts/write-semgrep-rule.md) — prompt · ★ 44690 repo stars
- [scanning-for-xss-vulnerabilities](https://affpapa.org/en/nevibecode/skills/scanning-for-xss-vulnerabilities.md) — skill · 2 installs
- [security fixes](https://affpapa.org/en/nevibecode/prompts/security-fixes.md) — prompt · ★ 178201 repo stars
- [Analyze code scanning security issues and dependency updates if vulnerable](https://affpapa.org/en/nevibecode/prompts/analyze-code-scanning-security-issues-and-dependency-updates-if-vulnerable.md) — prompt · ★ 178201 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
