fast-filesystem-mcp
The fast-filesystem-mcp server provides advanced filesystem operations for Claude Desktop with optimized performance and large file handling capabilities.
File Operations: Read, write, copy, move, and delete files with chunking support, streaming for large files, automatic backups, and verification. Support for simultaneous reading of multiple files and sequential operations.
Advanced Editing: Precise line-based editing (fast_edit_file), safe block editing (fast_edit_block, fast_edit_blocks), multiple block operations (fast_edit_multiple_blocks), and smart editing with risk detection (fast_safe_edit). Includes search/replace with regex support.
Directory Management: List, create, and manage directories with pagination, filtering, and tree structure viewing. Directory synchronization with multiple modes (mirror, update, merge) and exclusion patterns.
Search Capabilities: Search files by name or content with regex support, context lines, and advanced code searching (ripgrep style).
Archive Management: Compress files into various formats (zip, tar, tar.gz, tar.bz2) and extract archives with selective file extraction.
Batch Operations: Execute multiple file operations in sequence with comprehensive error handling and backup capabilities.
System Operations: Check disk usage, find large files, and list allowed directories.
Safety Features: Built-in automatic backups, error recovery, retry logic, and verification for reliable operations across all functions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fast-filesystem-mcp read the README.md file in the project root directory"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Code Buddy
New Version Update
To update to the latest version, follow these steps.
Uninstall previous version
npm uninstall -g fast-filesystem-mcpClean cache and dependencies
npm cache clean --force pnpm store pruneInstall latest version
npm install -g fast-filesystem-mcpVerify 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 |
| Read files with chunking support |
| Read multiple files simultaneously with sequential reading support |
| Write or modify files |
| Stream-based writing for large files |
| Get detailed file information |
Complex File Management
Tool | Description |
| Copy files and directories with advanced options |
| Move/rename files and directories safely |
| Delete files and directories with protection |
| Execute multiple file operations in sequence |
Archive Management
Tool | Description |
| Create compressed archives (tar, tar.gz, tar.bz2) |
| Extract compressed archives with options |
Directory Synchronization
Tool | Description |
| Advanced directory synchronization with multiple modes |
Advanced Editing Tools
Tool | Description |
| Precise line-based file editing with multiple modes |
| Safe block editing with exact string matching |
| Batch block editing for multiple precise changes |
| Edit multiple sections in a single operation |
| Extract specific lines or ranges from files |
Directory Operations
Tool | Description |
| List directory contents with pagination |
| Create directories recursively |
| Get directory tree structure |
Search Operations
Tool | Description |
| Search files by name or content |
| Advanced code search with ripgrep integration |
| Find large files in directories |
System Operations
Tool | Description |
| Check disk usage information |
| 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_fileStreaming: 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
License
Apache 2.0
Copyright 2025 efforthye
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Repository
Available Tools
25 toolsfast_batch_file_operationsC
Performs batch operations on multiple files
Inputs: operations (required), stop_on_error, dry_run, create_backup.
fast_compress_filesC
Compresses files or directories
Inputs: paths (required), output_path (required), format, compression_level, +1 more.
fast_copy_fileC
Copies a file or directory
Inputs: source (required), destination (required), overwrite, preserve_timestamps, +2 more.
fast_create_directoryC
Creates a directory
Inputs: path (required), recursive.
fast_delete_fileC
Deletes a file or directory
Inputs: path (required), recursive, force, backup_before_delete, +1 more.
fast_edit_blockC
Precise block editing: safely replace exact matches (desktop-commander style)
Inputs: path (required), old_text (required), new_text (required), expected_replacements, +4 more.
fast_edit_blocksC
Processes multiple precise block edits at once (array of fast_edit_block)
Inputs: path (required), edits (required), backup.
fast_edit_multiple_blocksC
Edits multiple parts of a file at once
Inputs: path (required), edits (required), backup.
fast_extract_archiveC
Extracts an archive file
Inputs: archive_path (required), extract_to, overwrite, create_dirs, +2 more.
fast_extract_linesD
Extracts specific lines from a file
Inputs: path (required), line_numbers, start_line, end_line, +2 more.
fast_find_large_filesC
Finds large files
Inputs: path (required), min_size, max_results.
fast_get_directory_treeC
Gets the directory tree structure
Inputs: path (required), max_depth, show_hidden, include_files.
fast_get_disk_usageC
Gets disk usage information
Inputs: path.
fast_get_file_infoB
Gets detailed information about a file or directory
Inputs: path (required).
fast_large_write_fileA
Reliably writes large files (with streaming, retry, backup, and verification features)
Inputs: path (required), content (required), encoding, create_dirs, +6 more.
fast_list_allowed_directoriesB
Lists the allowed directories
Inputs: no named parameters.
fast_list_directoryB
Lists the contents of a directory (with auto-chunking and pagination support)
Inputs: path (required), page, page_size, pattern, +5 more.
fast_move_fileB
Moves or renames a file or directory
Inputs: source (required), destination (required), overwrite, create_dirs, +1 more.
fast_read_fileB
Reads a file (with auto-chunking support)
Inputs: path (required), start_offset, max_size, line_start, +4 more.
fast_read_multiple_filesB
Reads the content of multiple files simultaneously (supports sequential reading)
Inputs: paths (required), continuation_tokens, auto_continue, chunk_size.
fast_safe_editB
Safe smart editing: Detects risks and provides interactive confirmation
Inputs: path (required), old_text (required), new_text (required), safety_level, +2 more.
fast_search_codeB
Searches for code (ripgrep-style) - provides auto-chunking, line numbers, and context
Inputs: path (required), pattern (required), file_pattern, context_lines, +6 more.
fast_search_filesB
Searches for files (by name/content) - supports auto-chunking, regex, context, and line numbers
Inputs: path (required), pattern (required), content_search, case_sensitive, +6 more.
fast_sync_directoriesC
Synchronizes two directories
Inputs: source_dir (required), target_dir (required), sync_mode, delete_extra, +3 more.
fast_write_fileC
Writes or modifies a file (provides emoji guidelines)
Inputs: path (required), content (required), encoding, create_dirs, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Most tools are distinct, but there is notable overlap between fast_edit_block, fast_safe_edit, fast_edit_multiple_blocks, and fast_edit_blocks—all handle editing and could confuse an agent. Similarly, fast_search_files and fast_search_code have overlapping purposes despite different descriptions.
The fast_ prefix is applied consistently and most tools follow a verb_noun pattern (e.g., fast_read_file, fast_create_directory). Minor deviations like fast_edit_blocks vs fast_edit_multiple_blocks and fast_batch_file_operations are slightly inconsistent but still readable.
25 tools is at the upper boundary of what is reasonable for a filesystem server. The count feels heavy because several tools overlap (multiple edit variants, two search tools, multiple read/write variants), but each has a plausible use case.
The tool surface covers the full filesystem lifecycle: read, write, edit, list, search, create, copy, move, delete, batch operations, compression, sync, and disk usage. There are no obvious dead ends for common file operations.
Maintenance
Related MCP Connectors
Cloud-hosted MCP server for durable AI memory
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Hosted MySQL MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.15306MIT
- AlicenseCqualityDmaintenanceA comprehensive MCP server that provides AI assistants with tools for file system management, Git integration, and shell command execution. It features specialized code utilities for analysis, formatting, and linting to enhance development workflows within Claude Desktop.287MIT
- AlicenseAqualityDmaintenanceA comprehensive MCP server that enables AI models to perform local file operations, command execution, and task management across multiple platforms. It features advanced capabilities like row-level file editing, directory searching, and system monitoring with built-in security filters.1316 npmMulan Permissive Software , Version 2
- AlicenseNot gradedqualityDmaintenanceA tuned filesystem MCP server for Codex-style development, offering fast file operations, bounded output, and safe edits.MIT