Skip to main content
Glama

Filesystem MCP Server

read_multiple_files

Read and retrieve contents from multiple UTF-8 text files simultaneously, mapping file paths to their contents. Returns a dictionary of successful reads or an error message if any file fails to be accessed.

Instructions

Read multiple UTF-8 text files at once and return a mapping of paths to contents.

Args: paths (List[str]): List of file paths to read (absolute or relative to allowed directories)

Returns: Dict[str, str] | str: Dictionary mapping absolute file paths to their contents, or error message if any file fails

Note: - All paths must be within allowed directory roots - All files must be UTF-8 text files - If any file fails to read, entire operation returns error string - Returns dictionary for successful reads, string for errors

Input Schema

NameRequiredDescriptionDefault
pathsYes

Input Schema (JSON Schema)

{ "properties": { "paths": { "items": { "type": "string" }, "title": "Paths", "type": "array" } }, "required": [ "paths" ], "type": "object" }
Install Server

Other Tools from Filesystem 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/Preston-Harrison/fs-mcp-py'

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