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.json
Add 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
{
"mcpServers": {
"ripgrep": {
"env": {},
"args": [
"-y",
"mcp-ripgrep@latest"
],
"command": "npx"
}
}
}
Seamless access to top MCP servers powering the future of AI integration.