Home / MCP servers / Security / semgrep

semgrep

semgrep is a MCP server by semgrep that scan code for security vulnerabilities using Semgrep.

Updated 2026-10-16

What is semgrep?

semgrep is a MCP server by semgrep that scan code for security vulnerabilities using Semgrep. It is listed under Security and has 17,111 GitHub stars.

TypeMcp server
Authorsemgrep
Repositorysemgrep/semgrep
Popularity17,111 GitHub stars
CategorySecurity
SecurityLow risk (88/100)
Rank#39 of 4,418 MCP servers; #1 in Security
LicenseLGPL-2.1
Last commit2026-10-16
Stars this week+135
RunsCloud service
LanguagePython

Is semgrep safe to install?

semgrep scores 88/100 on the MCPMods security check: Low risk. Things to review: sends your data to a cloud service. It passed 5 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Published by the service itselfPass
Sends your data to a cloud serviceReview
No credentials mentionedPass
Read-only by descriptionPass
No code executionPass
Source on GitHubPass

How do I install semgrep?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/semgrep/semgrep/tree/develop/cli/src/semgrep/mcp
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add semgrep -- <command from README>
    claude mcp add --transport http semgrep <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs semgrep for you:

Add the "semgrep" MCP server from https://github.com/semgrep/semgrep/tree/develop/cli/src/semgrep/mcp to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.