MCP server for efficient large file handling with smart chunking, regex search, navigation, streaming, and caching.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
The install command below started, but didn't respond the way we expected when we tried to talk to it.
npx -y @willianpinho/large-file-mcpinitialize succeeded but no response to tools/list.
This is an experimental automated check and can have false negatives β missing environment variables, a slow cold install, etc. It doesnβt necessarily mean somethingβs wrong. Last checked 1mo ago.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Large File MCP.
filePathCallable MCP tool function
chunkIndexCallable MCP tool function
linesPerChunkCallable MCP tool function
includeLineNumbersCallable MCP tool function
patternCallable MCP tool function
caseSensitiveCallable MCP tool function
MCP server for intelligent handling of large files β smart chunking, search, navigation, and streaming.
π Live Demo / Landing Page β install with
npx @willianpinho/large-file-mcpπ Full Documentation | API Reference | Examples
Or use directly with npx:
Add the MCP server using the CLI:
Verify installation:
Remove if needed:
MCP Scopes:
local - Available only in the current project directoryuser - Available globally for all projectsproject - Defined in .mcp.json for team sharingAdd to your claude_desktop_config.json:
Config file locations:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonRestart Claude Desktop after editing.
Gemini:
Once configured, you can use natural language to interact with large files:
Read a specific chunk of a large file with intelligent chunking.
Parameters:
filePath (required): Absolute path to the filechunkIndex (optional): Zero-based chunk index (default: 0)linesPerChunk (optional): Lines per chunk (auto-detected if not provided)includeLineNumbers (optional): Include line numbers (default: false)Example:
Search for patterns in large files with context.
Parameters:
filePath (required): Absolute path to the filepattern (required): Search patterncaseSensitive (optional): Case sensitive search (default: false)regex (optional): Use regex pattern (default: false)maxResults (optional): Maximum results (default: 100)contextBefore (optional): Context lines before match (default: 2)contextAfter (optional): Context lines after match (default: 2)Example:
Analyze file structure and get comprehensive metadata.
Parameters:
filePath (required): Absolute path to the fileReturns: File metadata, line statistics, recommended chunk size, and sample lines.
Jump to a specific line with surrounding context.
Parameters:
filePath (required): Absolute path to the filelineNumber (required): Line number to navigate to (1-indexed)contextLines (optional): Context lines before/after (default: 5)Get comprehensive statistical summary of a file.
Parameters:
filePath (required): Absolute path to the fileReturns: File metadata, line statistics, character statistics, and word count.
Stream a file in chunks for processing very large files.
Parameters:
filePath (required): Absolute path to the filechunkSize (optional): Chunk size in bytes (default: 64KB)startOffset (optional): Starting byte offset (default: 0)maxChunks (optional): Maximum chunks to return (default: 10)The server intelligently detects and optimizes for:
Customize behavior using environment variables:
| Variable | Description | Default |
|---|---|---|
CHUNK_SIZE | Default lines per chunk | 500 |
OVERLAP_LINES | Overlap between chunks | 10 |
MAX_FILE_SIZE | Maximum file size in bytes | 10GB |
CACHE_SIZE | Cache size in bytes | 100MB |
CACHE_TTL | Cache TTL in milliseconds | 5 minutes |
CACHE_ENABLED | Enable/disable caching | true |
Example with custom settings (Claude Desktop):
Example with custom settings (Claude Code CLI):
The AI will use the search tool to find patterns and provide context around each match.
Uses regex search to locate function definitions with surrounding code context.
Returns metadata, line count, sample rows, and recommended chunk size.
Uses streaming mode to handle very large files efficiently.
Cache hit-rate depends entirely on your access pattern (how often you re-request
the same chunk), so there's no single universal number β run pnpm run benchmark
to measure it against a documented, repeatable "hot chunk" workload. On that
workload it currently measures 95% (95/100 accesses hit the cache).
Uncached readChunk() latency from scripts/benchmark.mjs, generated fixtures,
Apple M1 Pro laptop β re-run the script on your own hardware for your own numbers:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/willianpinho-large-file-mcp)<a href="https://allmcps.com/mcp/willianpinho-large-file-mcp"><img src="https://allmcps.com/api/badge/willianpinho-large-file-mcp?style=directory" alt="Large File MCP on AllMCPs" /></a>