RipgrepBLOCK
An MCP server to wrap ripgrep
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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 withbrew install ripgrepon macOS.
Usage with Claude for Desktop
To use this MCP server with Claude for Desktop:
- Edit your Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%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.
Available Tools
search
Basic search with ripgrep:
Pattern: error Path: ./src
advanced-search
More advanced search with additional options:
Pattern: function Path: ./src FixedStrings: true FileType: ts IncludeHidden: false
count-matches
Count occurrences of a pattern:
Pattern: TODO Path: ./src CountLines: true
list-files
List files that would be searched without actually searching them:
Path: ./src FileType: js
list-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
f1df98a898b7OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mcp-ripgrep -- npx -y [email protected]
{
"mcpServers": {
"mcp-ripgrep": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (5)
5 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
advanced-search | read | Advanced search with ripgrep with more options |
count-matches | read | Count matches in files using ripgrep |
list-file-types | read | List all supported file types in ripgrep |
list-files | read | List files that would be searched by ripgrep without actually searching them |
search | read | Search files for patterns using ripgrep (rg) |
Trust audit
BLOCKgrade D · trust 65/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- declared (5 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (6)
const { stdout, stderr } = await exec(command);const { stdout, stderr } = await exec(command);const { stdout, stderr } = await exec(command);const { stdout, stderr } = await exec(command);const { stdout, stderr } = await exec(command);@modelcontextprotocol/sdk, zod, @types/node, typescript
Gates applied: no_behavioural_pass.
f1df98a898b7full audit observations/trust-audit/mcp-server/mcollina__ripgrep.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | f1df98a898b7 | BLOCK | D | 65 | first audit |
Questions
What is the Ripgrep MCP server?
An MCP server to wrap ripgrep
What tools does Ripgrep expose?
5 in total: 5 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Ripgrep safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (65/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Ripgrep need?
No credential environment variables were found in its source, so it appears to need none.
How does Ripgrep run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcp-ripgrep at 0.4.0.
How current is this page?
The grade is for one exact copy of the source (f1df98a898b7), read on 2026-10-07. The repository is watched and re-audited when it changes.