Skip to main content
Glama

Filesystem MCP Server

by rawr-ai

json_search_kv

Search key-value pairs in JSON files within a directory, filtering by specified key and optional value. Supports recursive search, match types, and customizable parameters for file size, depth, and results.

Instructions

Search for key-value pairs in JSON files within a directory. Requires maxBytes (default 10KB), maxDepth (default 2), and maxResults (default 10) parameters. Returns all key-value pairs that match the search pattern. The path must be within allowed directories.

Input Schema

NameRequiredDescriptionDefault
directoryPathYesDirectory to search in
keyYesKey to search for
matchTypeNoHow to match values - only applies if value is providedexact
maxBytesYesMaximum bytes to read from each file. Must be a positive integer. Handler default: 10KB.
maxDepthYesMaximum directory depth to search. Must be a positive integer. Handler default: 2.
maxResultsYesMaximum number of results to return. Must be a positive integer. Handler default: 10.
recursiveNoWhether to search recursively in subdirectories
valueNoOptional value to match against the key

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "directoryPath": { "description": "Directory to search in", "type": "string" }, "key": { "description": "Key to search for", "type": "string" }, "matchType": { "default": "exact", "description": "How to match values - only applies if value is provided", "enum": [ "exact", "contains", "startsWith", "endsWith" ], "type": "string" }, "maxBytes": { "description": "Maximum bytes to read from each file. Must be a positive integer. Handler default: 10KB.", "exclusiveMinimum": 0, "type": "integer" }, "maxDepth": { "description": "Maximum directory depth to search. Must be a positive integer. Handler default: 2.", "exclusiveMinimum": 0, "type": "integer" }, "maxResults": { "description": "Maximum number of results to return. Must be a positive integer. Handler default: 10.", "exclusiveMinimum": 0, "type": "integer" }, "recursive": { "default": true, "description": "Whether to search recursively in subdirectories", "type": "boolean" }, "value": { "description": "Optional value to match against the key" } }, "required": [ "directoryPath", "key", "maxBytes", "maxResults", "maxDepth" ], "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/rawr-ai/mcp-filesystem'

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