drio
Open app

MCP Ripgrep Server

Source

An MCP server to wrap ripgrep

Catalog onlyCatalog onlySTDIO

Overview

MCP Ripgrep Server is an MCP server that wraps the ripgrep search tool, providing high-performance text search capabilities to any MCP-compatible client, such as Claude AI.

To use the MCP Ripgrep Server with Claude for Desktop, you need to edit the configuration file to include the MCP server details and restart the application.

  • Provides a Model Context Protocol (MCP) interface for ripgrep. - Supports basic and advanced search functionalities. - Allows counting occurrences of patterns in files. - Lists files and file types without executing a search.
  1. Performing high-speed text searches across files in a project.
  2. Integrating with AI tools for enhanced search capabilities.
  3. Counting specific code patterns in large codebases.

Add to your AI client

Use these steps to connect MCP Ripgrep Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-ripgrep-mcollina": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ripgrep-mcollina"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-ripgrep-mcollina": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ripgrep-mcollina"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-ripgrep-mcollina": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ripgrep-mcollina"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-ripgrep-mcollina": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ripgrep-mcollina"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-ripgrep-mcollina": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ripgrep-mcollina"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-ripgrep-mcollina": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-ripgrep-mcollina"
      ]
    }
  }
}

FAQ

What are the prerequisites for using MCP Ripgrep Server?

You need Node.js (v18 or higher) and the ripgrep command installed on your system.

How do I configure MCP Ripgrep Server with Claude?

You need to edit the Claude configuration file to include the MCP server details and restart the application.

Is there any security risk in using MCP Ripgrep Server?

Yes, it executes shell commands, so caution is advised when providing input.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2101,"uuid":"9f9ec9c7-9dfa-4af1-9d04-53dbd390f241","name":"mcp-ripgrep","title":"MCP Ripgrep Server","description":"An MCP server to wrap ripgrep","avatar_url":"https://avatars.githubusercontent.com/u/52195?v=4","created_at":"2025-03-09T03:32:07.007Z","updated_at":"2025-03-12T10:18:20.625Z","status":"created","author_name":"mcollina","author_avatar_url":"https://avatars.githubusercontent.com/u/52195?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/mcollina/mcp-ripgrep","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"9\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-04-29 23:58:58\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]