Skip to main content
Glama

Grep MCP Server

by 247arjun

grep_files_with_matches

Search a directory for files containing a specific pattern using regex or plain text, with options for case sensitivity, whole-word matching, file extensions, and exclusion patterns. List only the matching file names.

Instructions

List only the names of files that contain the pattern

Input Schema

NameRequiredDescriptionDefault
case_sensitiveNoWhether the search should be case sensitive
exclude_patternsNoExclude files matching these patterns
file_extensionsNoOnly search files with these extensions
patternYesRegular expression pattern or plain text to search for
targetYesDirectory path to search in
whole_wordsNoMatch whole words only

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "case_sensitive": { "default": false, "description": "Whether the search should be case sensitive", "type": "boolean" }, "exclude_patterns": { "description": "Exclude files matching these patterns", "items": { "type": "string" }, "type": "array" }, "file_extensions": { "description": "Only search files with these extensions", "items": { "type": "string" }, "type": "array" }, "pattern": { "description": "Regular expression pattern or plain text to search for", "type": "string" }, "target": { "description": "Directory path to search in", "type": "string" }, "whole_words": { "default": false, "description": "Match whole words only", "type": "boolean" } }, "required": [ "pattern", "target" ], "type": "object" }
Install Server

Other Tools from Grep MCP 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/247arjun/mcp-grep'

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