Skip to main content
Glama

Semgrep Server

A Model Context Protocol (MCP) server for integrating Semgrep into the development environment. This server enables static code analysis and the management of Semgrep rules directly via the MCP protocol.

installation

# Repository klonen git clone [repository-url] cd semgrep-server # Abhängigkeiten installieren npm install # Server bauen npm run build

use

The server can be started in the following way:

# Produktionsmodus npm start # Entwicklungsmodus npm run dev

Available tools

The server provides the following MCP tools:

  • scan_directory : Runs a Semgrep scan in a directory

  • list_rules : Lists available Semgrep rules

  • analyze_results : Analyzes the scan results

  • create_rule : Creates a new Semgrep rule

  • filter_results : Filters scan results according to various criteria

  • export_results : Exports scan results in various formats

  • compare_results : Compares two scan results

Development

The project is written in TypeScript and uses the MCP SDK for the server implementation.

Project structure

semgrep-server/ ├── src/ # Quellcode ├── build/ # Kompilierte JavaScript-Dateien ├── test.js # Testdateien └── test-rule.yaml # Beispiel Semgrep-Regel

Dependencies

  • Node.js & npm

  • TypeScript

  • MCP SDK

  • Axios for HTTP requests

License

This project is licensed under the ISC License. See the LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    Enables integration of DeepSeek's language models with MCP-compatible applications, offering features like chat completion, custom model selection, and parameter control for enhancing language-based interactions.
    Last updated -
    37
    280
    MIT License
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol compliant server that integrates Semgrep static analysis tool with AI assistants like Anthropic Claude, enabling advanced code analysis, security vulnerability detection, and code quality improvements through a conversational interface.
    Last updated -
    40
    23
    MIT License
    • Apple
    • Linux
  • A
    security
    A
    license
    A
    quality
    An MCP server that provides a comprehensive interface to Semgrep, enabling users to scan code for security vulnerabilities, create custom rules, and analyze scan results through the Model Context Protocol.
    Last updated -
    6
    613
    MIT License
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    A server implementation that exposes grep functionality through the Model Context Protocol, allowing MCP-compatible clients to search for patterns in files using regular expressions.
    Last updated -
    20
    GPL 3.0

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stefanskiasan/semgrep-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server