Skip to main content
Glama

Filesystem MCP Server

Official
MIT License
116,828
62,980
  • Linux
  • Apple

read_file

Retrieve file contents as text, with options to extract first or last N lines. Use read_text_file for an updated approach. Simplifies file access in filesystem operations.

Instructions

Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.

Input Schema

NameRequiredDescriptionDefault
headNoIf provided, returns only the first N lines of the file
pathYes
tailNoIf provided, returns only the last N lines of the file

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "head": { "description": "If provided, returns only the first N lines of the file", "type": "number" }, "path": { "type": "string" }, "tail": { "description": "If provided, returns only the last N lines of the file", "type": "number" } }, "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/modelcontextprotocol/filesystem'

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