Manage Files with Advanced Claude Integration
Claude-optimized filesystem MCP server with chunked large-file handling, precise line/block editing, archiving, and directory sync.
3.3.3Add to Favorites
Why it matters
Enhance Claude Desktop's file management capabilities with advanced operations for large files, streaming writes, and efficient data handling.
Outcomes
What it gets done
Perform advanced file read/write operations, including streaming for large files.
Manage directories with complex operations like synchronization and compression.
Edit files precisely by line or block with automatic backup and error recovery.
Integrate seamlessly with Claude Desktop for efficient file management tasks.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-fast-filesystem | bash Capabilities
Tools your agent gets
Read files with chunking support for efficient large file handling
Simultaneously read multiple files with sequential reading support
Write or modify files with standard write operations
Streaming write for large files with memory-efficient operations
Get detailed file information including metadata and properties
Copy files and directories with advanced options and safety checks
Safe move or rename files and directories with error recovery
Delete files and directories with protection mechanisms
Overview
Fast Filesystem MCP Server
A Claude-optimized filesystem MCP server covering chunked large-file I/O, precise line/block editing with automatic backups, archive compression/extraction, directory synchronization, and code search via ripgrep. Use when Claude Desktop needs to handle large files, make precise backed-up code edits, or perform archive/directory-sync tasks beyond a basic filesystem tool's scope.
What it does
Fast Filesystem MCP Server provides advanced, Claude-optimized filesystem operations, organized into several tool groups. File operations cover chunked reading and writing (fast_read_file, fast_read_multiple_files for reading several files at once, fast_write_file, stream-based fast_large_write_file for files of any size, and fast_get_file_info). Complex file management covers fast_copy_file, fast_move_file, fast_delete_file (with protection), and fast_batch_file_operations for running several operations in sequence. Archive management covers fast_compress_files (creating tar, tar.gz, or tar.bz2 archives) and fast_extract_archive, while fast_sync_directories handles advanced directory synchronization with multiple modes.
Advanced editing tools give precise, line-level control: fast_edit_file supports replace, replace_range, insert_before, insert_after, and delete_line modes; fast_edit_block and fast_edit_blocks do safe block editing via exact string matching, with fast_edit_multiple_blocks batching several precise edits into one operation; fast_extract_lines pulls specific lines, ranges, or pattern matches with surrounding context; and a separate fast_search_and_replace tool supports regex-based find-and-replace with a capped number of replacements. A representative single-block edit:
{
"tool": "fast_edit_file",
"arguments": {
"path": "/path/to/file.js",
"mode": "replace",
"line_number": 10,
"new_text": "const newVariable = 'updated value';",
"backup": true
}
}
Directory operations cover paginated listing (fast_list_directory), recursive creation (fast_create_directory), and tree structure retrieval (fast_get_directory_tree). Search operations cover name/content search (fast_search_files), ripgrep-backed code search (fast_search_code), and locating large files (fast_find_large_files). System operations cover disk usage (fast_get_disk_usage) and listing allowed directories (fast_list_allowed_directories).
When to use - and when NOT to
Use this when Claude Desktop needs to work with large files, batch file operations, precise source-code edits, or archive/sync tasks that go beyond a basic filesystem tool - the server is explicitly optimized for Claude's response sizes and formats, uses streaming to avoid memory overflow on large files, and automatically excludes system files and directories. All editing tools support automatic backup before modification and error recovery that restores from backup on failure, with fast_large_write_file additionally verifying file integrity after writing and retrying with exponential backoff on failure.
Capabilities
Backup file creation is controlled by CREATE_BACKUP_FILES (disabled by default to reduce clutter; enabling it timestamps backups like file.txt.backup.1755485284402 to prevent data loss during edits). Logging is handled by a safe system that suppresses debug output by default to avoid corrupting Claude Desktop's JSON-RPC communication; DEBUG_MCP/MCP_DEBUG enables debug logging to stderr, MCP_LOG_FILE redirects logs to a file, and MCP_SILENT_ERRORS/SILENT_ERRORS suppresses error messages in tool responses.
How to install
{
"mcpServers": {
"fast-filesystem": {
"command": "npx",
"args": ["-y", "fast-filesystem-mcp"]
}
}
}
Upgrading to a new version involves uninstalling the previous global package, clearing the npm cache and pnpm store, reinstalling, and verifying with fast-filesystem-mcp --version. The project is Apache 2.0 licensed.
Who it's for
Developers using Claude Desktop who need reliable large-file handling, precise line- and block-level code editing with automatic backups, or archive and directory-sync operations beyond what a basic filesystem MCP server provides.
Source README
Quick Start
Add to your Claude Desktop config.
- Basic setup
{
"mcpServers": {
"fast-filesystem": {
"command": "npx",
"args": ["-y", "fast-filesystem-mcp"]
}
}
}
- With backup files enabled
{
"mcpServers": {
"fast-filesystem": {
"command": "npx",
"args": ["-y", "fast-filesystem-mcp"],
"env": {
"CREATE_BACKUP_FILES": "true"
}
}
}
}
Backup Configuration
Control backup file creation behavior.
CREATE_BACKUP_FILES=false(default): Disables backup file creation to reduce clutterCREATE_BACKUP_FILES=true: Creates backup files before modifications
Note: Backup files are created with timestamps (e.g., file.txt.backup.1755485284402) to prevent data loss during edits.
Debug and Logging Configuration
The MCP server uses a safe logging system that prevents JSON-RPC communication errors.
DEBUG_MCP=trueorMCP_DEBUG=true: Enable debug logging to stderrMCP_LOG_FILE=/path/to/log.txt: Write logs to file instead of stderrMCP_SILENT_ERRORS=trueorSILENT_ERRORS=true: Suppress error messages in responses
Note: Debug output is automatically suppressed by default to prevent JSON parsing errors in Claude Desktop.
New Version Update
To update to the latest version, follow these steps.
- Uninstall previous version
npm uninstall -g fast-filesystem-mcp - Clean cache and dependencies
npm cache clean --force pnpm store prune - Install latest version
npm install -g fast-filesystem-mcp - Verify installation
npm list -g fast-filesystem-mcp fast-filesystem-mcp --version
Features
Core File Operations
- Fast File Reading/Writing: Optimized for Claude Desktop with chunking support
- Sequential Reading: Read large files completely with continuation token support
- Large File Handling: Stream-based writing for files of any size
- Directory Operations: Comprehensive directory listing, creation, and management
- File Search: Name and content-based file searching with filtering
Advanced Capabilities
- Pagination Support: Handle large directories efficiently
- Chunked Reading: Read large files in manageable chunks
- Streaming Writes: Memory-efficient writing for large files
- Backup & Recovery: Automatic backup creation and error recovery
- Retry Logic: Built-in retry mechanism for reliable operations
Performance Optimizations
- Claude-Optimized: Response sizes and formats optimized for Claude
- Memory Efficient: Streaming operations prevent memory overflow
- Smart Exclusions: Automatically excludes system files and directories
- Progress Tracking: Real-time progress monitoring for large operations
Available Tools
File Operations
| Tool | Description |
|---|---|
fast_read_file |
Read files with chunking support |
fast_read_multiple_files |
Read multiple files simultaneously with sequential reading support |
fast_write_file |
Write or modify files |
fast_large_write_file |
Stream-based writing for large files |
fast_get_file_info |
Get detailed file information |
Complex File Management
| Tool | Description |
|---|---|
fast_copy_file |
Copy files and directories with advanced options |
fast_move_file |
Move/rename files and directories safely |
fast_delete_file |
Delete files and directories with protection |
fast_batch_file_operations |
Execute multiple file operations in sequence |
Archive Management
| Tool | Description |
|---|---|
fast_compress_files |
Create compressed archives (tar, tar.gz, tar.bz2) |
fast_extract_archive |
Extract compressed archives with options |
Directory Synchronization
| Tool | Description |
|---|---|
fast_sync_directories |
Advanced directory synchronization with multiple modes |
Advanced Editing Tools
| Tool | Description |
|---|---|
fast_edit_file |
Precise line-based file editing with multiple modes |
fast_edit_block |
Safe block editing with exact string matching |
fast_edit_blocks |
Batch block editing for multiple precise changes |
fast_edit_multiple_blocks |
Edit multiple sections in a single operation |
fast_extract_lines |
Extract specific lines or ranges from files |
Directory Operations
| Tool | Description |
|---|---|
fast_list_directory |
List directory contents with pagination |
fast_create_directory |
Create directories recursively |
fast_get_directory_tree |
Get directory tree structure |
Search Operations
| Tool | Description |
|---|---|
fast_search_files |
Search files by name or content |
fast_search_code |
Advanced code search with ripgrep integration |
fast_find_large_files |
Find large files in directories |
System Operations
| Tool | Description |
|---|---|
fast_get_disk_usage |
Check disk usage information |
fast_list_allowed_directories |
List allowed directories |
Editing Tools
Precise File Editing
The fast-filesystem MCP now includes powerful editing tools for source code and text files.
fast_edit_file - Single Block Editing
Supports multiple editing modes.
- replace: Replace text or entire lines
- replace_range: Replace multiple lines at once
- insert_before: Insert content before specified line
- insert_after: Insert content after specified line
- delete_line: Delete specific lines
{
"tool": "fast_edit_file",
"arguments": {
"path": "/path/to/file.js",
"mode": "replace",
"line_number": 10,
"new_text": "const newVariable = 'updated value';",
"backup": true
}
}
fast_edit_multiple_blocks - Batch Editing
Edit multiple parts of a file in a single operation.
{
"tool": "fast_edit_multiple_blocks",
"arguments": {
"path": "/path/to/file.js",
"edits": [
{
"mode": "replace",
"old_text": "oldFunction()",
"new_text": "newFunction()"
},
{
"mode": "insert_after",
"line_number": 5,
"new_text": "// Added comment"
}
],
"backup": true
}
}
fast_extract_lines - Line Extraction
Extract specific lines by number, range, or pattern.
{
"tool": "fast_extract_lines",
"arguments": {
"path": "/path/to/file.js",
"pattern": "function.*",
"context_lines": 2
}
}
fast_search_and_replace - Advanced Replace
Powerful search and replace with regex support.
{
"tool": "fast_search_and_replace",
"arguments": {
"path": "/path/to/file.js",
"search_pattern": "console\\.log\\(.*\\)",
"replace_text": "logger.info($1)",
"use_regex": true,
"max_replacements": 10,
"backup": true
}
}
Editing Features
- Automatic Backup: Creates backups before modifications
- Error Recovery: Restores from backup on failure
- Line-based Operations: Precise control over specific lines
- Pattern Matching: Regular expression support
- Batch Operations: Multiple edits in single transaction
- Context Extraction: Extract lines with surrounding context
Large File Writing
fast_large_write_file- Streaming: Writes files in chunks to prevent memory issues
- Backup: Automatically creates backups before overwriting
- Verification: Verifies file integrity after writing
- Retry Logic: Automatic retry on failure with exponential backoff
- Progress Tracking: Real-time monitoring of write progress
Repository
FAQ
Common questions
Trust
How it checks out
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.