fast-filesystem-mcp
A completely stabilized filesystem MCP server optimized for Claude with overflow-proof design. Supports simultaneous multi-block editing with zero-failure guarantee, advanced error recovery, and performance-tuned parameters for maximum reliability.
README
Fast Filesystem MCP
Advanced filesystem operations for Claude Desktop with large file handling capabilities and Claude-optimized features.
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.
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
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
https://github.com/efforthye/fast-filesystem-mcp
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。