
mcollina/mcp-ripgrep
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
mcollina/mcp-ripgrep은 MCP 서버 후보가 https://github.com/mcollina/mcp-ripgrep.에서 수입되었습니다
개요
mcollina/mcp-ripgrep은 MCP 서버 후보가 https://github.com/mcollina/mcp-ripgrep.에서 수입되었습니다
개요(AI 번역)
Ripgrep (rg) 검색 기능을 Claude와 같은 MCP 클라이언트에 제공하는 MCP 서버.
개요
이 서버는 강력한 ripgrep 검색 도구를 위한 Model Context Protocol (MCP) 인터페이스를 제공합니다. Claude AI 및 기타 MCP 호환 클라이언트가 시스템에 파일 전역의 고성능 텍스트 검색을 수행 할 수 있습니다.
필수품
- Node.js (v18 이상)
- ripgrep ([T0]]) 명령을 설치하고 PATH에서 사용할 수 있습니다. macOS에서
brew install ripgrep로 설치하십시오.
Desktop용 Claude 사용
데스크톱 용 Claude이 MCP 서버를 사용하려면:
- 데스크탑 구성 파일에 대한 Claude 편집 :
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - 윈도우:
%APPDATA%\Claude\claude_desktop_config.json
- 당신의 윤곽에 뒤에 추가하십시오:
/path/to/mcp-ripgrep] 를 절대로 바꾸어 이 저장소를 복제합니다.
- 데스크탑을위한 Restart Claude.
사용 가능한 도구
검색
ripgrep로 기본 검색 :
고급 연구
추가 옵션으로 더 고급 검색 :
# # # 카운트 매트
패턴의 카운트 발생:
리스트 파일
실제로 검색하지 않고 검색 할 파일 목록 :
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
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 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
- 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.
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
설치
npx -y mcp-ripgrep@latest설정
{
"mcpServers": {
"ripgrep": {
"command": "npx",
"args": ["-y", "mcp-ripgrep@latest"]
}
}
}