loading…
Search for a command to run...
loading…
An MCP server to wrap ripgrep
An MCP server that provides ripgrep (rg) search capabilities to any MCP client such as Claude.
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.
rg) command installed and available in your PATH. Install it with brew install ripgrep on macOS.To use this MCP server with Claude for Desktop:
Edit your Claude for Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonAdd the following to your configuration:
{
"mcpServers": {
"ripgrep": {
"command": "npx",
"args": ["-y", "mcp-ripgrep@latest"]
}
}
}
Replace /path/to/mcp-ripgrep with the absolute path to where you cloned this repository.
Restart Claude for Desktop.
Basic search with ripgrep:
Pattern: error
Path: ./src
More advanced search with additional options:
Pattern: function
Path: ./src
FixedStrings: true
FileType: ts
IncludeHidden: false
Count occurrences of a pattern:
Pattern: TODO
Path: ./src
CountLines: true
List files that would be searched without actually searching them:
Path: ./src
FileType: js
List all supported file types in ripgrep.
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.
MIT
Run in your terminal:
claude mcp add ripgrep -- npx -y mcp-ripgreppro tip
Just installed Ripgrep? Say to Claude: "remember why I installed Ripgrepand what I want to try" — it'll save into your Vault.
how this works →