Skip to main content
Glama

MCP Filesystem Server

MIT License
42
  • Apple
  • Linux

read_file

Retrieve and decode file contents from a specified path using the MCP Filesystem Server. Supports custom encoding for accurate data extraction.

Instructions

Read the complete contents of a file.

Args: path: Path to the file encoding: File encoding (default: utf-8) ctx: MCP context Returns: File contents as a string

Input Schema

NameRequiredDescriptionDefault
encodingNoutf-8
pathYes

Input Schema (JSON Schema)

{ "properties": { "encoding": { "default": "utf-8", "title": "Encoding", "type": "string" }, "path": { "title": "Path", "type": "string" } }, "required": [ "path" ], "title": "read_fileArguments", "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/safurrier/mcp-filesystem'

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