Skip to main content
Glama

MCP Smart Filesystem Server

by lofcz

read_file

Read file contents from the filesystem, handling large files through chunked reading with line-based pagination for efficient processing.

Instructions

Read file contents. For large files (>500 lines), use start_line to read in chunks (e.g., 0, 500, 1000). Each call returns up to 500 lines. Binary files return metadata only.

Input Schema

NameRequiredDescriptionDefault
pathYesFile path to read
start_lineNoLine number to start reading from (0-indexed). For large files, read in chunks: start_line=0 (first 500), start_line=500 (next 500), etc.

Input Schema (JSON Schema)

{ "properties": { "path": { "description": "File path to read", "type": "string" }, "start_line": { "default": 0, "description": "Line number to start reading from (0-indexed). For large files, read in chunks: start_line=0 (first 500), start_line=500 (next 500), etc.", "type": "number" } }, "required": [ "path" ], "type": "object" }

Other Tools from MCP Smart 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/lofcz/mcp-filesystem-smart'

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