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 buildRelated 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ファイルをご覧ください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
MCP server for Statsig API - interact with Statsig's feature flags, experiments, and analytics
- SupabaseOAuthcom.supabase
MCP server for interacting with the Supabase platform
Scans remote MCP servers for protocol, security, and TLS issues; exposes scan tools via MCP.
Related MCP Servers
AlicenseBqualityFmaintenanceAn 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.6601 PyPI688MIT- AlicenseNot gradedqualityBmaintenanceEnables AI clients to perform local code search, indexing, and analysis across Java, JavaScript/TypeScript, .NET/C#, and Python projects through the MCP protocol.1Apache 2.0
- AlicenseAqualityDmaintenanceA production-grade security auditing MCP server that wraps semgrep (SAST) and gitleaks (secret detection) to enable one-click code security scanning via MCP stdio protocol.14 npmMIT
- AlicenseAqualityAmaintenanceMCP server that exposes SQLFluff's linting, fixing, and parsing capabilities, enabling MCP-aware clients to lint and fix SQL directly.8MIT