Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

search_files

Search for files and directories matching a pattern within a specified path. Supports recursive searches, content matching, exclusion patterns, and customizable output formats.

Instructions

Recursively search for files and directories matching a pattern.

Args: path: Starting directory pattern: Glob pattern to match against filenames recursive: Whether to search subdirectories exclude_patterns: Optional patterns to exclude content_match: Optional text to search within files max_results: Maximum number of results to return format: Output format ('text' or 'json') ctx: MCP context Returns: Search results

Input Schema

NameRequiredDescriptionDefault
content_matchNo
exclude_patternsNo
formatNotext
max_resultsNo
pathYes
patternYes
recursiveNo

Input Schema (JSON Schema)

{ "properties": { "content_match": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Content Match" }, "exclude_patterns": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Exclude Patterns" }, "format": { "default": "text", "title": "Format", "type": "string" }, "max_results": { "default": 100, "title": "Max Results", "type": "integer" }, "path": { "title": "Path", "type": "string" }, "pattern": { "title": "Pattern", "type": "string" }, "recursive": { "default": true, "title": "Recursive", "type": "boolean" } }, "required": [ "path", "pattern" ], "title": "search_filesArguments", "type": "object" }

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/safurrier/mcp-filesystem'

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