连接能力
mcollina mcp ripgrep 为 AI Agent 提供什么
来源目录未提供结构化功能列表,请在使用前阅读源仓库文档。
安全
MCP 收录不等于安全审核
MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。
README
仓库文档
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.
- Node.js (v18 or higher)
- ripgrep (
rg) command installed and available in your PATH. Install it withbrew install ripgrepon macOS.
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
- macOS:
-
Add the following to your configuration:
{ "mcpServers": { "ripgrep": { "command": "npx", "args": ["-y", "mcp-ripgrep@latest"] } } }Replace
/path/to/mcp-ripgrepwith 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
社区