mcp-ripgrep
An MCP server to wrap ripgrep
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:
{
"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
search
Basic search with ripgrep:
Pattern: error
Path: ./srcadvanced-search
More advanced search with additional options:
Pattern: function
Path: ./src
FixedStrings: true
FileType: ts
IncludeHidden: falsecount-matches
Count occurrences of a pattern:
Pattern: TODO
Path: ./src
CountLines: truelist-files
List files that would be searched without actually searching them:
Path: ./src
FileType: jslist-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
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP