Skip to main content
Glama

Filesystem MCP Server

by rawr-ai

xml_query

Extract specific data from large XML files using XPath 1.0 queries, efficiently searching elements, attributes, and text content without loading the entire file into memory.

Instructions

Query XML file using XPath expressions. Provides powerful search capabilities without reading the entire file into memory. Supports standard XPath 1.0 query syntax for finding elements, attributes, and text content. Requires maxBytes parameter (default 10KB). Can be used to extract specific data from large XML files with precise queries. The path must be within allowed directories.

Input Schema

NameRequiredDescriptionDefault
includeAttributesNoWhether to include attribute information in the results
maxBytesYesMaximum bytes to read from the file. Must be a positive integer. Handler default: 10KB.
pathYesPath to the XML file to query
queryNoXPath query to execute against the XML file
structureOnlyNoIf true, returns only tag names and structure instead of executing query

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "includeAttributes": { "default": true, "description": "Whether to include attribute information in the results", "type": "boolean" }, "maxBytes": { "description": "Maximum bytes to read from the file. Must be a positive integer. Handler default: 10KB.", "exclusiveMinimum": 0, "type": "integer" }, "path": { "description": "Path to the XML file to query", "type": "string" }, "query": { "description": "XPath query to execute against the XML file", "type": "string" }, "structureOnly": { "default": false, "description": "If true, returns only tag names and structure instead of executing query", "type": "boolean" } }, "required": [ "path", "maxBytes" ], "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