Skip to main content
Glama

MCP Filesystem Server

MIT License
35
7
  • Linux
  • Apple

read_file

Retrieve and display the complete contents of a file from the MCP Filesystem Server, supporting multiple text encodings and providing error details for unreadable files. Use within permitted directories to examine file data securely.

Instructions

Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read. Use this tool when you need to examine the contents of a single file. Only works within allowed directories.

Input Schema

NameRequiredDescriptionDefault
encodingNoFile encodingutf-8
pathYesPath to the file to read

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "encoding": { "default": "utf-8", "description": "File encoding", "enum": [ "utf-8", "utf8", "base64" ], "type": "string" }, "path": { "description": "Path to the file to read", "type": "string" } }, "required": [ "path" ], "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/gabrielmaialva33/mcp-filesystem'

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