Skip to main content
Glama

Semgrep MCP Server

Semgrep 服务器

用于将 Semgrep 集成到开发环境中的模型上下文协议 (MCP) 服务器。该服务器允许直接通过 MCP 协议执行静态代码分析和管理 Semgrep 规则。

安装

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

使用

可以通过以下方式启动服务器:

# Produktionsmodus npm start # Entwicklungsmodus npm run dev

可用工具

该服务器提供以下 MCP 工具:

  • scan_directory :在目录中运行 Semgrep 扫描
  • list_rules :列出可用的 Semgrep 规则
  • analyze_results :分析扫描结果
  • create_rule :创建一个新的 Semgrep 规则
  • filter_results :根据各种标准过滤扫描结果
  • export_results :以各种格式导出扫描结果
  • compare_results :比较两个扫描结果

发展

该项目使用 TypeScript 编写,并使用 MCP SDK 进行服务器实现。

项目结构

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

依赖项

  • Node.js 和 npm
  • TypeScript
  • MCP SDK
  • 用于 HTTP 请求的 Axios

执照

该项目已获得 ISC 许可。更多详细信息请参阅LICENSE文件。

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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

通过 MCP 协议实现 Semgrep 在开发环境中的集成,支持静态代码分析、规则管理和扫描结果操作。

  1. 安装
    1. 使用
      1. 可用工具
        1. 发展
          1. 项目结构
          2. 依赖项
        2. 执照

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            The Seq MCP Server enables interaction with Seq's API endpoints for logging and monitoring, providing tools for managing signals, events, and alerts with extensive filtering and configuration options.
            Last updated -
            3
            13
            3
            JavaScript
            MIT License
            • Apple
          • -
            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 -
            4
            JavaScript
            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
            192
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            An implementation of the Model Context Protocol (MCP) that enables interaction with debug adapters, allowing language models to control debuggers, set breakpoints, evaluate expressions, and navigate source code during debugging sessions.
            Last updated -
            2
            Python
            AGPL 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