MCP-Grep
モデル コンテキスト プロトコル (MCP) を通じて grep 機能を公開する grep サーバー実装。
インストール
使用法
MCP-Grep は、MCP 互換クライアントが使用できるサーバーとして実行されます。
サーバーは次の MCP 機能を公開します。
リソース:
grep://info
- システム grep バイナリに関する情報を返しますツール:
grep
- システムの grep バイナリを使用してファイル内のパターンを検索します
特徴
システム grep バイナリに関する情報 (パス、バージョン、サポートされている機能)
正規表現を使用してファイル内のパターンを検索する
一般的な grep オプションのサポート:
大文字と小文字を区別しないマッチング
コンテキスト行(一致の前後)
最大一致数
固定文字列マッチング(非正規表現)
再帰ディレクトリ検索
LLM での使いやすさを向上させる自然言語プロンプトの理解
MCP Inspectorによるインタラクティブなデバッグとテスト
APIの使用例
MCP Python クライアントの使用:
自然言語プロンプト
MCP-Grep は自然言語プロンプトを理解するため、LLM での使用が容易になります。例:
MCPインスペクター統合
MCP-Grep には、対話型のデバッグとテストのための MCP Inspector 統合が含まれています。
これにより、Web ベースの UI が開き、次の操作を実行できます。
利用可能なリソースとツールを調べる
異なるパラメータでgrep操作をテストする
フォーマットされた結果を表示
grepクエリの問題をデバッグする
発達
ライセンス
マサチューセッツ工科大学
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
モデル コンテキスト プロトコルを通じて grep 機能を公開するサーバー実装。これにより、MCP 互換クライアントは正規表現を使用してファイル内のパターンを検索できるようになります。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.Last updated -126155MIT License
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server for querying the CVE-Search API. This server provides comprehensive access to CVE-Search, browse vendor and product、get CVE per CVE-ID、get the last updated CVEs.Last updated -652MIT License
- -securityAlicense-qualityA Model Context Protocol server that provides tools to find regex pattern positions in files and list allowed directories, enabling text analysis with LSP-like functionality.Last updated -2MIT License
- -securityAlicense-qualityA Model Context Protocol (MCP) server that scrapes, indexes, and searches documentation for third-party software libraries and packages, supporting versioning and hybrid search.Last updated -189599MIT License