Skip to main content
Glama

MCP Filesystem Server

MIT License
12
7
  • Linux
  • Apple

read_file

Retrieve and display the entire content of a file from the filesystem. Supports multiple text encodings and provides precise error feedback. Ensures access is restricted to predefined directories for security.

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" }
Install Server

Other Tools from MCP Filesystem 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/gabrielmaialva33/mcp-filesystem'

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