trackmcp
Back to directory
mcollina

mcp-ripgrep

View on GitHub

An MCP server to wrap ripgrep

74 stars JavaScriptOthers Updated Aug 11, 2026

Documentation

MCP Ripgrep Server

An MCP server that provides ripgrep (rg) search capabilities to any MCP client such as Claude.

Overview

This server provides a Model Context Protocol (MCP) interface for the powerful ripgrep search tool. It enables Claude AI and other MCP-compatible clients to perform high-performance text searches across files on your system.

Prerequisites

  • Node.js (v18 or higher)
  • ripgrep (`rg`) command installed and available in your PATH. Install it with `brew install ripgrep` on macOS.

Usage with Claude for Desktop

To use this MCP server with Claude for Desktop:

1. Edit your Claude for Desktop configuration file:

    2. Add the following to your configuration:

    json
    {
         "mcpServers": {
           "ripgrep": {
             "command": "npx",
             "args": ["-y", "mcp-ripgrep@latest"]
           }
         }
       }

    Replace `/path/to/mcp-ripgrep` with the absolute path to where you cloned this repository.

    3. Restart Claude for Desktop.

    Available Tools

    Basic search with ripgrep:

    code
    Pattern: error
    Path: ./src

    More advanced search with additional options:

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

    count-matches

    Count occurrences of a pattern:

    code
    Pattern: TODO
    Path: ./src
    CountLines: true

    list-files

    List files that would be searched without actually searching them:

    code
    Path: ./src
    FileType: js

    list-file-types

    List all supported file types in ripgrep.

    Security Considerations

    This MCP server executes shell commands using the ripgrep tool. While efforts have been made to safely escape arguments, use caution when providing input as it runs commands on your machine.

    License

    MIT

    Frequently asked questions

    What is mcp-ripgrep?

    mcp-ripgrep is An MCP server to wrap ripgrep

    How do I install mcp-ripgrep?

    Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

    Is mcp-ripgrep open source?

    Yes — it is hosted on GitHub at https://github.com/mcollina/mcp-ripgrep and has 74 stars.

    Related MCP tools

    Run your own MCP server? See who uses it and what to fix.

    Measure it with TrackMCP