{"type":"mcp_server","name":"mcp","description":"The Semgrep MCP Server repository provides an interface to Semgrep through the Model Context Protocol, enabling code scanning, custom rule creation, and vulnerability analysis for LLMs, AI Agents, and coding tools.","category":"Developer Tools","language":"Python","stars":674,"forks":2,"owner":"semgrep","github_url":"https://github.com/semgrep/mcp","homepage":"https://semgrep.dev","setup":"## Setup\n\n**CLI**\n\n1.  Install `uv` using their [installation instructions](https://docs.astral.sh/uv/getting-started/installation/)\n2.  Ensure you have Python 3.13+ installed\n3.  Clone this repository\n4.  Install Semgrep ([additional methods](https://semgrep.dev/docs/getting-started/quickstart)):\n\n   ```bash\n   pip install semgrep\n   ```\n\n**Docker**\n\n```bash\ndocker build -t mcp-server .\n```","tools":"## Available Tools\n\n- **Scanning Code**\n  - `semgrep_scan`: Scan code snippets for security vulnerabilities.\n  - `scan_directory`: Perform Semgrep scan on a directory.\n- **Customization**\n  - `list_rules`: List available Semgrep rules with optional language filtering.\n  - `create_rule`: Create custom Semgrep rules.\n- **Results**\n  - `analyze_results`: Analyze scan results including severity counts and top affected files.\n  - `filter_results`: Filter scan results by severity, rule ID, file path, etc.\n  - `export_results`: Export scan results in various formats (JSON, SARIF, text).\n  - `compare_results`: Compare two scan results to identify new and fixed issues.","faq":null,"created_at":"2025-03-17T20:08:14+00:00","updated_at":"2025-03-28T23:08:56+00:00","source_url":"https://model-context-protocol.com/servers/semgrep-llm-code-scanning-vulnerability-analysis","related_articles":[]}