filesystem-mcp-server
Verified Safeby Vishakhavel
Overview
Provides an agent or external system with controlled file system access (listing, reading, searching) over a JSON-RPC stdin/stdout interface.
Installation
ts-node src/server.tsEnvironment Variables
- MCP_FS_ROOT
- MAX_READ_BYTES
Security Notes
The server implements robust path traversal protection using `resolveSafePath` to confine all file operations strictly within a configured `ROOT_DIR`. File read operations are limited by `MAX_READ_BYTES` to prevent excessive memory usage or denial-of-service, and the search tool crudely filters out common binary file types. Communication occurs via stdin/stdout, which inherently limits direct network attack vectors. The default `ROOT_DIR` (`/Users/vichu/Desktop/`) is user-specific and highlights the critical need for users to configure the `MCP_FS_ROOT` environment variable to a sensible, isolated directory.
Similar Servers
vulcan-file-ops
Transforms desktop AI assistants into powerful development partners by providing secure, user-controlled filesystem operations and code manipulation capabilities.
fastfs-mcp
Enables AI assistants (like Claude) to interact with local filesystems, manage Git repositories, and engage users through interactive prompts via a standardized JSON-based protocol.
filesys
A secure MCP server providing filesystem operations with controlled access to specified directories for agent-based interactions.
filesystem-mcp
This server provides tools for reading, creating, editing files, and listing directories on the local filesystem, enabling automation of tasks like configuration updates, report generation, and code refactoring.