Skip to main content
Glama

MCP Ripgrep Server

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 で使用するには:

  1. Claude for Desktop 構成ファイルを編集します。
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. 設定に以下を追加します。
    { "mcpServers": { "ripgrep": { "command": "npx", "args": ["-y", "mcp-ripgrep@latest"] } } }
    /path/to/mcp-ripgrepこのリポジトリのクローンを作成した場所への絶対パスに置き換えます。
  3. Claude for Desktop を再起動します。

利用可能なツール

検索

ripgrep による基本検索:

Pattern: error Path: ./src

詳細検索

追加オプションによるより高度な検索:

Pattern: function Path: ./src FixedStrings: true FileType: ts IncludeHidden: false

一致数

パターンの出現回数をカウントします。

Pattern: TODO Path: ./src CountLines: true

リストファイル

実際に検索せずに、検索対象となるファイルを一覧表示します。

Path: ./src FileType: js

ファイルタイプのリスト

ripgrep でサポートされているすべてのファイル タイプを一覧表示します。

セキュリティに関する考慮事項

このMCPサーバーは、ripgrepツールを使用してシェルコマンドを実行します。引数を安全にエスケープするよう努めていますが、マシン上でコマンドを実行するため、入力にはご注意ください。

ライセンス

マサチューセッツ工科大学

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Claude などの MCP クライアントに ripgrep 検索機能を提供し、システム上のファイル間での高性能なテキスト検索を可能にします。

  1. 概要
    1. 前提条件
      1. Claude for Desktop での使用
        1. 利用可能なツール
          1. 検索
          2. 詳細検索
          3. 一致数
          4. リストファイル
          5. ファイルタイプのリスト
        2. セキュリティに関する考慮事項
          1. ライセンス

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              The 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 -
              1
              52
              Python
              MIT License
              • Linux
            • -
              security
              A
              license
              -
              quality
              Provides web search functionality via DuckDuckGo for Claude Code and MCP-compatible clients, featuring advanced content exploration, navigation across search results, and detailed webpage analysis.
              Last updated -
              1
              Python
              MIT License
            • A
              security
              A
              license
              A
              quality
              An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
              Last updated -
              1
              93
              Python
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
              Last updated -
              3
              60
              67
              JavaScript
              MIT License
              • Apple
              • Linux

            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/mcollina/mcp-ripgrep'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server