Skip to main content
Glama

MCP Ripgrep Server

advanced-search

Search text across files using regex or literal patterns with options for case sensitivity, file type filtering, context lines, and more using ripgrep on the MCP Ripgrep Server.

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" }

Other Tools from MCP Ripgrep Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mcollina/mcp-ripgrep'

If you have feedback or need assistance with the MCP directory API, please join our Discord server