Basic information
About Ripgrep MCP Server
Ripgrep offers high-performance text search, ideal for SEO optimization software and rapid content discovery across local filesystems.
Ripgrep is a MCP server in the File Systems category listed in the AddMCP.net directory, published by mcollina. It exposes 5 tools, including search, advanced-search, count-matches, list-files and more. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 71 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, file-systems.
Setup
{
"mcpServers": {
"ripgrep": {
"command": "npx",
"args": [
"-y",
"mcp-ripgrep@latest"
]
}
}
}
{
"mcpServers": {
"ripgrep": {
"command": "npx",
"args": [
"-y",
"mcp-ripgrep@latest"
]
}
}
}
{
"servers": {
"ripgrep": {
"command": "npx",
"args": [
"-y",
"mcp-ripgrep@latest"
]
}
}
}
Ripgrep MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"ripgrep": {
"command": "npx",
"args": [
"-y",
"mcp-ripgrep@latest"
]
}
}
}
Ripgrep MCP Server tools
- search — Search files for patterns using ripgrep (rg)
- advanced-search — Advanced search with ripgrep with more options
- count-matches — Count matches in files using ripgrep
- list-files — List files that would be searched by ripgrep without actually searching them
- list-file-types — List all supported file types in ripgrep
Overview
What is Ripgrep?
A Model Context Protocol (MCP) server that provides ripgrep (rg) search capabilities to any MCP client such as Claude. It enables high-performance text searches across files on the user's system.
How to use Ripgrep?
Requires Node.js (v18 or higher) and ripgrep installed and available in your PATH. Configure the server in your Claude for Desktop configuration file by adding a "ripgrep" entry using npx -y mcp-ripgrep@latest as the command, then restart Claude for Desktop.
Key features of Ripgrep
- Basic text search with ripgrep
- Advanced search with fixed strings and file type filtering
- Count pattern matches in files
- List files matching a search without running it
- List all supported ripgrep file types
Use cases of Ripgrep
- Search for error patterns across a source code directory
- Count TODO or FIXME occurrences in a project
- List all JavaScript files in a directory matching a pattern
- Perform advanced regex searches filtered by file type
Frequently asked questions
1 What are the prerequisites for MCP Ripgrep Server?
Node.js (v18 or higher) and the ripgrep (rg) command installed and available in your PATH. On macOS, install ripgrep with brew install ripgrep.
2 How do I configure MCP Ripgrep Server with Claude for Desktop?
Edit your Claude for Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) and add the server entry with command: "npx" and args: ["-y", "mcp-ripgrep@latest"], then restart the application.
3 What tools does MCP Ripgrep Server provide?
Five tools: search, advanced-search, count-matches, list-files, and list-file-types. Each supports a pattern, path, and tool-specific options like file type, fixed strings, or hidden file inclusion.
4 Are there security considerations with MCP Ripgrep Server?
Yes. This server executes shell commands using the ripgrep tool. While arguments are safely escaped, use caution with input as commands run on your machine.
5 How does MCP Ripgrep Server communicate with clients?
It uses the Model Context Protocol (MCP), which is supported by clients like Claude for Desktop. The server exposes tools that the client can invoke to perform ripgrep searches.
Videos
Tutorials, guides, and showcases related to Ripgrep MCP Server. The player loads when you press play.
Videos belong to their creators. Relevance is approximate; check the channel and description before following setup steps.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In