Scan software code for bugs and unsafe patterns, using search rules that look like the code itself.
Your data
Stays on your device
Coding needed
Developers only
Cost
Free, with optional paid extras
Runs on
Mac, Linux, Windows, Cloud
Computer
An ordinary computer is fine
On your deviceData stays with you
Drafted with AIMostly for developers
What it does
Semgrep reads a program's source code and finds problems such as bugs, unsafe patterns and breaks from a team's coding rules. This is called "static analysis": it checks the code without running it. It works with more than 30 programming languages.
Its rules are written to look like ordinary code, so teams can write their own checks without learning a complicated rule language. It can run on a developer's computer, before code is saved to a project, or as an automatic check on every change.
This repository is the free Community Edition. Its makers say it misses many real problems in security work because it only looks inside one function or file at a time, and they recommend their AppSec Platform, which has free and paid parts, for deeper checks. They say code is scanned locally and is not uploaded by default.
AI integration
Semgrep includes an MCP server (a standard plug that lets AI assistants use other software), started from the Semgrep tool itself, so AI coding assistants can run Semgrep scans and get help writing custom rules. Its makers also offer plugins for Claude Code and Cursor. Separately, Semgrep Assistant, an AI that sorts findings and suggests fixes, is part of the makers' AppSec Platform rather than the free Community Edition.
Type
Built-in AI features and a connector for AI assistants
Enabled by default
No. The integration is used only once an AI assistant is connected.
Compatible with
AI coding assistants that support MCP, such as Cursor, VS Code, Windsurf, Claude Desktop and Claude Code
Who it's for
Software developers and security teams who want an automatic check for bugs and unsafe code.
Can I use it without coding?
Developers only. It is a command-line tool for checking code, so it is mainly used by people who write software. New to this? Start here.
Can I run it?
Cost
Free, with optional paid extrasThe open-source version is free; the makers also sell a hosted or pro version.
Runs on
Mac, Linux, Windows, Cloud
Computer
An ordinary computer is fine
Privacy
Runs on your own device: your data stays with you
API key
Not needed
Try it
Install the Semgrep command-line tool on your computer.
Optionally sign in to Semgrep for extra rules.
Run a scan in your project's folder and read the findings.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?
Before you install
Only download from the official GitHub page. Copies with similar names exist for many popular projects.
Plain-AyI is an independent guide and doesn't host or review the software it lists. Please check each project's official page before installing.
License (LGPL-2.1): Read the license on the GitHub page before using it for business.