Large File Context MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Large File Context MCP Server
Give Claude Code full access to files of any size. Paginated reading, regex search, and large file writing -- no truncation, no limits.
Claude Code's built-in file reading breaks down on large files. Anything over a few thousand lines gets truncated or refused entirely. If you work with large codebases, verbose configs, log files, or generated code, you've hit this wall.
This MCP server removes it. Read any range of any file, search with regex, write without size constraints. Plain JavaScript, no build step, works in seconds.
Why This Exists
Claude Code truncates large files and can't search efficiently within them. That's a problem when you're working with:
Source files that are 5,000+ lines
Monorepo configs and lock files
Application logs and CSV data
Auto-generated or bundled code
This server gives Claude paginated, line-level access to the full contents of any file on disk. It plugs directly into Claude Code via MCP with zero configuration beyond pointing it at the server.
Related MCP server: Remote Project File-System MCP
Features
Paginated File Reading -- Read exactly the lines you need. Line 5000 to 5100 of a 50,000-line file? Done. Byte-range reads supported too.
Regex Search -- Find patterns inside massive files without reading the whole thing. Supports case-insensitive search, regex, and configurable context lines around each match.
File Metadata -- Check size, line count, and binary detection before deciding how to read a file.
Large File Writing -- Write or append content to files of any size. Automatically creates parent directories when needed.
Quick Start
Three steps. No build, no environment variables.
git clone https://github.com/MaybeLOL/large-file-context-mcp.git
cd large-file-context-mcp
npm installThen add it to your Claude Code MCP config (~/.claude/mcp.json):
{
"mcpServers": {
"large-file-context": {
"command": "node",
"args": ["/path/to/large-file-context-mcp/server.js"]
}
}
}Replace /path/to/large-file-context-mcp with the absolute path to your cloned repo. That's it.
Tools Reference
file_info
Get file metadata before reading. Returns size, line count, modified/created dates, and whether the file is binary.
path: "/absolute/path/to/file"read_file_chunked
Read a file with line-based or byte-based pagination. Defaults to the first 1000 lines.
Parameter | Default | Description |
| required | Absolute file path |
|
| Start line (0-based) or byte offset |
|
| Max lines or bytes to return |
|
|
|
|
| File encoding |
search_in_file
Search for text or regex patterns within a file. Returns matching lines with line numbers.
Parameter | Default | Description |
| required | Absolute file path |
| required | Text or regex pattern |
|
| Treat pattern as a regular expression |
|
| Case-sensitive matching |
|
| Maximum number of matches to return |
|
| Lines of context before and after match |
write_file_large
Write or append content to a file. Optionally creates parent directories.
Parameter | Default | Description |
| required | Absolute file path |
| required | Content to write |
|
|
|
|
| Create parent directories if missing |
|
| File encoding |
Use Cases
Large codebases -- Navigate enterprise-scale source files without truncation. Jump to specific line ranges, search for symbols, read only what matters.
Log files -- Tail the last 200 lines of a 500MB log, or search for error patterns with context lines to see what happened before and after.
Data files -- Inspect specific rows in large CSVs, JSON dumps, or SQL exports without loading the entire file into context.
Generated code -- Read through bundled output, compiled artifacts, or auto-generated API clients that routinely exceed normal read limits.
Monorepo configs -- Parse massive lock files, CI configs, or dependency manifests that Claude Code would otherwise refuse to read.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Safe folder access for ChatGPT and Claude: read, write and search files, risky tools opt-in.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
User-owned files and explicit AI Memories for authorized assistants with scoped access.
Shared long-term memory & Stop-hook task handoff across Claude Code, Codex, Cursor, and mobile.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables programmatic execution of coding tasks and autonomous file operations using Claude AI. It allows agents to search codebases, run shell commands, and track file changes through the Model Context Protocol.-
- AlicenseNot gradedqualityDmaintenanceEnables Claude Web to securely inspect, search, and modify local project files through a sandboxed MCP server with atomic writes, path traversal protection, and sensitive file blocking.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to search, read, edit, and manage files and directories, execute and control terminal commands and processes, and perform code or text searches and replacements. It also supports in-memory code execution and interactive process sessions for tasks like data analysis and long-running command management.2MIT
- AlicenseAqualityBmaintenanceEnables Claude Desktop and Claude Code to list, search, and read files, run one terminal command, query SQLite, and manage named scheduled tasks without calling the Claude API.121MIT