Skip to main content
Glama

MCP Ripgrep Server

count-matches

Count occurrences of a specific pattern in files or directories using ripgrep, with options for case sensitivity, file filtering, line-based counting, and colored output.

Instructions

Count matches in files using ripgrep

Input Schema

NameRequiredDescriptionDefault
caseSensitiveNoUse case sensitive search (default: auto)
countLinesNoCount matching lines instead of total matches
filePatternNoFilter by file type or glob
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" }, "countLines": { "description": "Count matching lines instead of total matches", "type": "boolean" }, "filePattern": { "description": "Filter by file type or glob", "type": "string" }, "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" }

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