MCP Ripgrep Server

by mcollina
Verified

search

Search files for specific patterns using regex-based queries, filter by file type, and display context lines. Supports case sensitivity, color output, and result limits for efficient text analysis.

Instructions

Search files for patterns using ripgrep (rg)

Input Schema

NameRequiredDescriptionDefault
caseSensitiveNoUse case sensitive search (default: auto)
contextNoShow N lines before and after each match
filePatternNoFilter by file type or glob
maxResultsNoLimit the number of matching lines
pathYesDirectory or file(s) to search.
patternYesThe search pattern (regex by default)
useColorsNoUse colors in output (default: false)

Input Schema (JSON Schema)

{ "properties": { "caseSensitive": { "description": "Use case sensitive search (default: auto)", "type": "boolean" }, "context": { "description": "Show N lines before and after each match", "type": "number" }, "filePattern": { "description": "Filter by file type or glob", "type": "string" }, "maxResults": { "description": "Limit the number of matching lines", "type": "number" }, "path": { "description": "Directory or file(s) to search.", "type": "string" }, "pattern": { "description": "The search pattern (regex by default)", "type": "string" }, "useColors": { "description": "Use colors in output (default: false)", "type": "boolean" } }, "required": [ "pattern", "path" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Ripgrep Server

Related Tools

ID: hcia0l3ms0