MCP Ripgrep サーバー
Claude などの MCP クライアントに ripgrep (rg) 検索機能を提供する MCP サーバー。
概要
このサーバーは、強力な検索ツールripgrep用のモデルコンテキストプロトコル(MCP)インターフェースを提供します。これにより、Claude AIやその他のMCP対応クライアントは、システム上のファイル全体にわたって高性能なテキスト検索を実行できます。
前提条件
- Node.js (v18以上)
- ripgrep (
rg
) コマンドがインストールされ、PATH で利用可能になっていること。macOS ではbrew install ripgrep
でインストールできます。
Claude for Desktop での使用
この MCP サーバーを Claude for Desktop で使用するには:
- Claude for Desktop 構成ファイルを編集します。
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- 設定に以下を追加します。
/path/to/mcp-ripgrep
このリポジトリのクローンを作成した場所への絶対パスに置き換えます。 - Claude for Desktop を再起動します。
利用可能なツール
検索
ripgrep による基本検索:
詳細検索
追加オプションによるより高度な検索:
一致数
パターンの出現回数をカウントします。
リストファイル
実際に検索せずに、検索対象となるファイルを一覧表示します。
ファイルタイプのリスト
ripgrep でサポートされているすべてのファイル タイプを一覧表示します。
セキュリティに関する考慮事項
このMCPサーバーは、ripgrepツールを使用してシェルコマンドを実行します。引数を安全にエスケープするよう努めていますが、マシン上でコマンドを実行するため、入力にはご注意ください。
ライセンス
マサチューセッツ工科大学
local-only server
The server can only run on the client's local machine because it depends on local resources.
Claude などの MCP クライアントに ripgrep 検索機能を提供し、システム上のファイル間での高性能なテキスト検索を可能にします。
Related MCP Servers
- AsecurityAlicenseAqualityThe Search MCP Server enables seamless integration of network and local search capabilities in tools like Claude Desktop and Cursor, utilizing the Brave Search API for high-concurrency and asynchronous requests.Last updated -171PythonMIT License
- -securityAlicense-qualityA 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 -11PythonGPL 3.0
- -securityFlicense-qualityAn MCP server that integrates with Claude to provide smart documentation search capabilities across multiple AI/ML libraries, allowing users to retrieve and process technical information through natural language queries.Last updated -Python
- AsecurityAlicenseAqualityAn MCP server that allows users to efficiently search and reference user-configured documents through document listing, grep searching, semantic searching with OpenAI Embeddings, and full document retrieval.Last updated -43PythonMIT License