MCP Ripgrep Server

by mcollina
Verified

advanced-search

Perform high-performance text searches across files using the MCP Ripgrep Server. Filter by file type, show context lines, use regex or literal strings, and customize search options like case sensitivity and line numbers.

Instructions

Advanced search with ripgrep with more options

Input Schema

NameRequiredDescriptionDefault
caseSensitiveNoUse case sensitive search (default: auto)
contextNoShow N lines before and after each match
filePatternNoFilter by file type or glob
fileTypeNoFilter by file type (e.g., js, py)
fixedStringsNoTreat pattern as a literal string, not a regex
followSymlinksNoFollow symbolic links
includeHiddenNoSearch in hidden files and directories
invertMatchNoShow lines that don't match the pattern
maxResultsNoLimit the number of matching lines
pathYesDirectory or file(s) to search.
patternYesThe search pattern (regex by default)
showFilenamesOnlyNoOnly show filenames of matches, not content
showLineNumbersNoShow line numbers
useColorsNoUse colors in output (default: false)
wordMatchNoOnly show matches surrounded by word boundaries

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" }, "fileType": { "description": "Filter by file type (e.g., js, py)", "type": "string" }, "fixedStrings": { "description": "Treat pattern as a literal string, not a regex", "type": "boolean" }, "followSymlinks": { "description": "Follow symbolic links", "type": "boolean" }, "includeHidden": { "description": "Search in hidden files and directories", "type": "boolean" }, "invertMatch": { "description": "Show lines that don't match the pattern", "type": "boolean" }, "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" }, "showFilenamesOnly": { "description": "Only show filenames of matches, not content", "type": "boolean" }, "showLineNumbers": { "description": "Show line numbers", "type": "boolean" }, "useColors": { "description": "Use colors in output (default: false)", "type": "boolean" }, "wordMatch": { "description": "Only show matches surrounded by word boundaries", "type": "boolean" } }, "required": [ "pattern", "path" ], "type": "object" }

You must be authenticated.

Other Tools from MCP Ripgrep Server

Related Tools

ID: hcia0l3ms0