Skip to main content
Glama
Semgrep MCP Server

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

Related MCP server: ACE-MCP

使用

サーバーは次の方法で起動できます。

# 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 : 2つのスキャン結果を比較する

発達

このプロジェクトは TypeScript で記述されており、サーバーの実装には MCP SDK を使用します。

プロジェクト構造

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

依存関係

  • Node.jsとnpm

  • タイプスクリプト

  • MCP SDK

  • HTTPリクエスト用のAxios

ライセンス

このプロジェクトは ISC ライセンスに基づいてライセンスされています。詳細については、 LICENSEファイルをご覧ください。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      F
      maintenance
      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.
      6
      1,203 PyPI
      688
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.
      1
      Apache 2.0