Verified OfficialVendor MaintainedHosted on semgrep.dev
Semgrep logo

Semgrep Official MCP Server

Install Now

Semgrep is a static analysis tool for code security and quality

What is Semgrep?

Semgrep semgrep is a static analysis powerful tool for code security and quality. The official Semgrep MCP server provides AI agents with standardized access to Semgrep's services, enabling powerful automation and integration capabilities that enhance developer productivity and streamline workflows.

This official MCP server is maintained and verified by Semgrep, ensuring reliability, security, and up-to-date functionality. Unlike community-maintained servers, this official integration provides long-term support, comprehensive documentation, and direct vendor assistance. The server is hosted on semgrep.dev, guaranteeing secure and reliable access to Semgrep's services.

Whether you're building AI-powered applications, automating workflows, or enhancing your development tools, the Semgrep MCP server provides a standardized way to connect AI agents with Semgrep's extensive platform capabilities. This integration enables natural language interactions with Semgrep, making it easier than ever to leverage Semgrep's features through AI assistants like Claude, ChatGPT, and Cursor.

Installation Instructions

Installation Instructions
Add Semgrep to your MCP-compatible client
https://mcp.semgrep.ai/mcp
Cursor logoCursor Instructions
1

Go to Settings → Cursor Settings

2

Click "Add new global MCP Server"

3

Paste the MCP configuration into mcp.json and restart

Install with Cursor

Or manually add to your mcp.json:

{ "mcpServers": { "semgrep": { "url": "https://mcp.semgrep.ai/mcp" } } }

Semgrep MCP Server Capabilities

The official Semgrep MCP server enables AI agents to:

  • Access code repositories and manage version control
  • Read and analyze source code files
  • Create and manage issues, pull requests, and code reviews
  • Automate development workflows and CI/CD processes
  • Integrate development tools into AI coding assistants

These capabilities make it easy for AI agents to work with Semgrep as part of a larger automation strategy, enabling seamless integration between AI assistants and your existing tools.

Available Tools

The Semgrep MCP server provides 7 tools for AI agents to interact with the platform. Use the search below to find specific tools.

Tool NameDescription
get_abstract_syntax_treeOutput the Abstract Syntax Tree (AST) of code
security_checkScan code for security vulnerabilities using predefined Semgrep checks
semgrep_findingsFetch findings from the Semgrep AppSec Platform API
semgrep_rule_schemaFetch the latest Semgrep rule JSON Schema
semgrep_scanScan code files with a given Semgrep config string
semgrep_scan_with_custom_ruleScan code files using custom Semgrep rules
supported_languagesReturn list of languages supported by Semgrep

Last updated: January 29, 2026 at 12:00 PM

Common Use Cases

Automated Workflow Management

AI agents can use the Semgrep MCP server to automate repetitive tasks and manage workflows within Semgrep's platform.

Data Retrieval and Analysis

The MCP server allows AI agents to query and retrieve data from Semgrep, enabling intelligent data analysis and insights.

Integration with Development Tools

Developers can integrate Semgrep capabilities directly into their AI coding assistants for seamless workflows.

Frequently Asked Questions

How do I get a Semgrep API key?

Visit https://semgrep.dev, create an account, and generate an API key from your dashboard. Most tools offer a free tier to get started, making it easy to begin using the Semgrep MCP server.

Is this the official Semgrep MCP server?

Yes, this MCP server is officially provided and maintained by Semgrep. The endpoint https://mcp.semgrep.ai/mcp is hosted on their official domain semgrep.dev, ensuring reliability and security.

What permissions does Semgrep MCP need?

The Semgrep MCP server requires appropriate API credentials and permissions based on the operations you want to perform. Check the documentation for specific permission requirements.

Can I use Semgrep MCP with multiple clients?

Yes, you can configure the same MCP server across Cursor, Claude Desktop, Cline, and other MCP-compatible clients simultaneously. Each client maintains its own configuration.

Is Semgrep MCP server free?

The MCP server itself is free to use, but you may need a Semgrep account and API access, which may have its own pricing tiers. Check https://semgrep.dev for current pricing information.

What can Semgrep MCP server do?

The Semgrep MCP server enables AI agents to access code repositories and manage development workflows. Semgrep is a static analysis tool for code security and quality This allows you to interact with Semgrep's platform through natural language commands in your AI assistant.

Troubleshooting

Connection Failed

Ensure your API key is correctly configured and your network allows outbound connections to semgrep.dev. Verify that the MCP endpoint URL https://mcp.semgrep.ai/mcp is accessible from your network.

Authentication Error

Verify your API key is valid and has not expired. Generate a new key from https://semgrep.dev if needed. Make sure you're using the correct authentication method as specified in the documentation.

Server Not Responding

Check Semgrep's status page for any ongoing incidents. Try restarting your MCP client and verify that the server endpoint is correct. If issues persist, consult the official documentation or support channels.

Related MCP Servers

Explore other official MCP servers that work well with Semgrep:

The official Svelte MCP server providing docs and autofixing tools for Svelte development
Buildkite CI/CD platform for continuous integration and deployment
A basic MCP server to operate on the Postman API

About Model Context Protocol

The Model Context Protocol (MCP) is an open standard that enables AI models to securely connect to external APIs, tools, and data sources. This official MCP server from Semgrep provides standardized access to their services, allowing AI agents to interact with Semgrep's platform seamlessly.

To manage all your MCP servers in one place, use Apigene's MCP Gateway, which provides centralized management, security, and governance for all your MCP server connections.

Learn more about MCP in our complete guide or browse our FAQ for common questions.

Server Information

Domain

semgrep.dev

MCP Endpoint

https://mcp.semgrep.ai/mcp