Connect Semgrep to your agents
A trial starts first, then a project installs Semgrep from its marketplace.
Semgrep MCP server
Let agents run Semgrep on their own changes before anyone reviews them
Install the Semgrep MCP server in an Aldena project and agents scan the code they write for security and correctness findings before a person reviews it.
- Sign-in
- Browser sign-in
- Installs as
semgrep- Transport
- Streamable HTTP
Semgrep is a static analysis tool that finds security vulnerabilities and correctness bugs by matching code against rules, and many teams already run it in CI. Its MCP server brings that scan to an agent: it checks code for findings, explains what each one means and which rule produced it, and acts as the Semgrep user who signed in.
In an Aldena project the best moment for the scan is before the pull request exists. An agent finishing a feature in its conversation's sandbox runs Semgrep on the files it changed, fixes each real finding, notes any it judges a false positive with the reason, and only then opens the pull request through the GitHub connector. Reviewers start from code that has already passed the checks they care about. When a security issue is reported, an agent can scan the affected area for the same pattern across the codebase and fix every instance in one change.
Each Semgrep tool has its own row in the project's permissions. For checks against your own written policies, add the Zenable MCP server; for smart contract work, Semgrep pairs with the OpenZeppelin Solidity MCP server.
With Semgrep, your agents can
Scan code for security vulnerabilities with Semgrep rules
Catch correctness bugs that tests often miss
Explain a finding and the rule that produced it
Try asking
Things to ask an agent in a project chat once it's installed.
“Scan the files changed in this branch with Semgrep and fix every high-severity finding before you open the pull request.”
“Run Semgrep on src/api and explain each injection finding in plain words, with the line it points to.”
“Check the new upload handler with Semgrep and tell me whether any finding is a false positive, and why.”
Server
- Server URL
https://mcp.semgrep.ai/mcp- Website
- semgrep.dev
- MCP docs
- Semgrep MCP docs
How to connect Semgrep
- Open Marketplace
In a project, open Settings → Connectors → MCP servers and press Marketplace.
- Install Semgrep
Search for Semgrep and press Install. Aldena adds it as
semgrep. - Sign in to Semgrep
Open the sign-in link Aldena shows and approve. The server then acts as you.
- Let agents use it
Agents find its tools with
mcp_searchand call them withmcp_call. Each tool gets its own row in the project's permissions.
Related MCP servers
FAQ
Why scan code an agent wrote?
Agents write code quickly and confidently, and the mistakes they make look like everyone else's: an unescaped query, a missing auth check, a secret in a test. Scanning with Semgrep inside the same task means those findings are fixed before review instead of becoming review comments.
How does Semgrep sign in from Aldena?
With a browser sign-in to your Semgrep account. Install Semgrep from the project's MCP marketplace, open the link Aldena shows and approve. The server then acts as you, and each of its tools gets its own row in the project's permissions.
Does Semgrep replace our CI security scan?
No, it moves a scan earlier. Keep the scan your CI runs on every pull request; the MCP server lets the agent find and fix problems while it is still writing, so the CI scan has less to catch and pull requests arrive cleaner.
Ready when you are
Spin up your first project.
One project per client, product, or piece of work, staffed with intake, requirements, build and code review agents.