filesystem-mcp
A comprehensive Model Context Protocol (MCP) server for advanced file system operations. This server provides structured file management capabilities including file operations, directory management, file watching, search functionality, and archiving operations.
Install / Use
claude mcp add Hela-Ecosystem -- npx -y github:Hela-Ecosystem/filesystem-mcpIf the server publishes to npm under a different name, use that package instead โ check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of filesystem-mcp
filesystem-mcp scores 83/100 on our quality scale, 2996th of 4,708 Development & Engineering skills we index.
Its MCP Server is 29 KB long, well organised into 63 sections with 43 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 3 days ago, so filesystem-mcp is actively maintained.
- It is released under GPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit โ read the skill file before letting an agent act on it.
filesystem-mcp compared with similar skills
All 4 of these similar skills score higher than filesystem-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| filesystem-mcp (this skill)by Hela-Ecosystem | 83 | 3 | 3d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 121.0k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.5k | today | CLAUDE.md |
| hyperframesby heygen-com | 100 | 89.4k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.4k | today | CLAUDE.md |
Frequently asked questions
- How do I install filesystem-mcp?
- Run
claude mcp add Hela-Ecosystem -- npx -y github:Hela-Ecosystem/filesystem-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does filesystem-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is filesystem-mcp safe to use?
- It is GPL-3.0-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is filesystem-mcp still maintained?
- The repository was last updated 3 days ago, so filesystem-mcp is actively maintained.
Skill content
View source on GitHubFileSystem MCP Server
<!-- hela:version:start -->MCP server: hela-membrane ยท Version: 3.0.6 ยท Canonical tools: 16. Current tool reference.
Part of the HeLa MCP Ecosystem โ This server is HeLa Membrane (
hela-membrane) โ the Workspace FS component of the HeLa cellular architecture. See the ecosystem docs for profiles, workflows, and multi-client setup.
A comprehensive Model Context Protocol (MCP) server for advanced file system operations. This server provides structured file management capabilities including file operations, directory management, file watching, search functionality, and archiving operations.

Table of Contents
- Features
- Available Resources
- Installation
- Configuration
- Available Tools
- Usage Examples
- Development
- Security Considerations
- License
- Contributing
- Support
Features
Core File Operations
- File Reading: Read files with optional encoding and range support
- File Writing: Write content with encoding options and directory creation
- File Copying: Copy files with timestamp preservation and overwrite control
- File Moving: Move/rename files with conflict resolution
- File Deletion: Delete files and directories with recursive options
- File Information: Get detailed file metadata including permissions and timestamps
Directory Operations
- Directory Creation: Create directories with recursive parent creation
- Directory Listing: List contents with filtering, recursion, and depth control
- File Finding: Find files using glob patterns with advanced filtering
- Directory Size: Calculate directory sizes recursively with human-readable formatting
Advanced Operations
- Text Search: Search for patterns in files with context and filtering
- File Watching: Watch files and directories for changes with event handling
- File Comparison: Compare files with whitespace and case sensitivity options
- Archiving: Create and extract archives in multiple formats (ZIP, TAR, GZIP)
- Batch Operations: Perform operations on multiple files efficiently
Enterprise Features
- TypeScript: Fully typed with comprehensive error handling
- Input Validation: Zod schema validation for all parameters
- Error Recovery: Graceful error handling with detailed error messages
- Resource Management: Automatic cleanup of watchers and resources
- Performance: Optimized for large file operations and batch processing
- Intelligent Caching: TTL-based caching system for file metadata and search results
- MCP Resources: 7 specialized resources providing cached filesystem data and metadata
Available Resources
FileSystem MCP Server provides 7 specialized resources that offer cached file system data and intelligent metadata access with configurable TTL-based caching for optimal performance:
file://metadata/{path}
Returns cached metadata for files and directories including permissions, size, modification dates, and ownership.
Resource Details:
- Purpose: Access file/directory metadata without repeated stat calls
- Benefits: Faster file information queries, reduced I/O operations, metadata caching
- Cache TTL: 5 minutes - balances metadata freshness with performance
- Use Cases: File explorers, permission checking, size calculations, file monitoring
Response Format:
{
"path": "/home/user/document.txt",
"metadata": {
"size": 1024,
"permissions": "rw-r--r--",
"owner": "user",
"group": "users",
"modified": "2025-11-02T10:30:00.000Z",
"accessed": "2025-11-02T10:30:00.000Z",
"created": "2025-11-01T15:20:00.000Z"
},
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
file://directory/{path}
Provides cached directory listing with file details, sizes, and metadata for faster browsing.
Resource Details:
- Purpose: Access directory contents without repeated directory reads
- Benefits: Instant directory browsing, cached file listings, reduced I/O for navigation
- Cache TTL: 5 minutes - keeps directory structure reasonably current
- Use Cases: File managers, directory exploration, project navigation
Response Format:
{
"path": "/home/user/projects",
"contents": {
"success": true,
"data": {
"items": [
{
"name": "app.js",
"path": "/home/user/projects/app.js",
"type": "file",
"size": 2048,
"permissions": "rw-r--r--",
"modified": "2025-11-02T10:30:00.000Z"
}
]
}
},
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
file://search/cache/{query}
Caches results from file content and pattern searches across the filesystem.
Resource Details:
- Purpose: Cache expensive search operations across large codebases
- Benefits: Fast repeated searches, reduced filesystem traversal, search result persistence
- Cache TTL: 5 minutes - allows for reasonable search result freshness
- Use Cases: Code search, content finding, pattern matching, file discovery
Response Format:
{
"query": "function.*handleError",
"results": {
"success": true,
"data": {
"matches": [
{
"file": "/src/error-handler.js",
"line": 15,
"content": "function handleError(error) {",
"context": ["// Error handling function", "function handleError(error) {", " console.error(error);"]
}
]
}
},
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
file://watch/status/{path}
Shows current status and recent events for file system watchers.
Resource Details:
- Purpose: Monitor file watching status and recent change events
- Benefits: Track active watchers, view recent file changes, debug watch operations
- Cache TTL: 30 seconds - provides near real-time watch status
- Use Cases: Development monitoring, file change tracking, watch debugging
Response Format:
{
"path": "/home/user/projects",
"isWatching": true,
"lastEvents": [
{
"event": "change",
"filename": "app.js",
"timestamp": "2025-11-02T17:08:45.123Z"
}
],
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
file://recent/{type}
Lists recently accessed files of specified type (read/write/modified).
Resource Details:
- Purpose: Track recently accessed files for quick access and auditing
- Benefits: Quick access to recently worked files, usage tracking, productivity insights
- Cache TTL: 5 minutes - keeps recent file list reasonably current
- Use Cases: File history, recent documents, usage analytics
Response Format:
{
"type": "modified",
"files": [
{
"path": "/home/user/document.txt",
"accessed": "2025-11-02T17:05:00.000Z",
"size": 1024
}
],
"count": 1,
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
file://structure/{path}
Provides hierarchical directory structure with file counts and size summaries.
Resource Details:
- Purpose: Get complete directory tree structure with statistics
- Benefits: Project overview, size analysis, structure visualization, disk usage tracking
- Cache TTL: 5 minutes - balances structure accuracy with performance
- Use Cases: Project analysis, disk cleanup, directory visualization
Response Format:
{
"path": "/home/user/projects",
"structure": {
"name": "projects",
"type": "directory",
"path": "/home/user/projects",
"children": [
{
"name": "src",
"type": "directory",
"path": "/home/user/projects/src",
"size": 0
},
{
"name": "README.md",
"type": "file",
"path": "/home/user/projects/README.md",
"size": 2048
}
],
"stats": {
"totalFiles": 5,
"totalDirs": 3,
"totalSize": 15360
}
},
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
file://content/preview/{path}
Generates cached preview of file content (first lines/chars) for quick inspection.
Resource Details:
- Purpose: Preview file content without loading entire files
- Benefits: Quick file inspection, content type detection, safe file preview
- Cache TTL: 5 minutes - keeps previews reasonably fresh
- Use Cases: File exploration, content verification, type detection, safe browsing
Response Format:
{
"path": "/home/user/document.txt",
"preview": {
"path": "/home/user/document.txt",
"type": "file",
"preview": "This is the beginning of the document...\nIt contains important information...",
"canPreview": true,
"size": 1024,
"mimeType": "text/plain",
"encoding": "utf8"
},
"cached": false,
"timestamp": "2025-11-02T17:09:14.866Z"
}
Installation
- Clone the repository:
git clone https://github.com/Hela-Ecosystem/filesystem-mcp.git
cd filesystem-mcp
- Install dependencies:
npm install
- Build the project:
npm run build
- Test the server:
npm start
Configuration
HeLa policy flags (P0-A1 / P1-C1, all opt-in, default = legacy behavior)
| Variable | Default | Meaning |
|----------|---------|---------|
| HELA_ALLOWED_ROOTS (or ALLOWED_ROOTS) | unset = full access | Colon-separated workspace roots; when set, every path argument is canonicalized (symlink-aware, including non-existent tails) and tools outside the roots are denied. Directory listings, search and glob results skip symbolic links entirely, so a link inside a root cannot expose metadata or descendants outside it. Logged to stderr on startup either way. |
| HELA_ENVELOPE | unset = off | Set to true to wrap tool results in the canonical HeLaResult envelope (ok/summary/data/artifacts/provenance/warnings/sideEffects/execution; mutating tools also report sideEffects). Off = byte-identical legacy output. |
For Cursor IDE
Add this server to your Cursor MCP configuration (~/.cursor/mcp.json):
{
"mcpServers": {
"filesystem-mcp": {
"command": "node",
"args": ["/path/to/filesystem-mcp/dist/index.js"],
"env": {}
}
}
}
For Claude Desktop
Add this server to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"filesystem-mcp": {
"command": "node",
"args": ["/path/to/filesystem-mcp/dist/index.js"],
"env": {}
}
}
}
Available Tools
