MCP File System Server

by gleb-roma

Not rated
GitHub

About

A server for secure, sandboxed file system operations.

Details

Author
gleb-roma
Categories
File Management, Security, Developer Tools

Setup

Install MCP File System Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/gleb-roma/mcp_file_system

Follow the installation instructions in the repository README, then restart your MCP client.

A server for secure, sandboxed file system operations.

A Model Context Protocol (MCP) server that provides secure file system operations through a sandboxed environment.

- Secure File Operations: All operations are confined to a configurable base directory
- Path Traversal Protection: Prevents access to files outside the allowed directory
- Comprehensive Tools: Read, write, list, delete, move, and copy files
- Error Handling: Robust error handling with informative messages

export MCP_FILE_SYSTEM_BASE_DIR="/path/to/your/sandbox"

- read_file(file_path: str)- Read file contents
- write_file(file_path: str, content: str)- Write content to file
- list_directory(directory_path: str)- List directory contents
- delete_file(file_path: str)- Delete a file
- move_file(source_path: str, destination_path: str)- Move/rename a file
- copy_file(source_path: str, destination_path: str)- Copy a file

The server uses theMCP_FILE_SYSTEM_BASE_DIRenvironment variable to set the base directory for all file operations. If not set, it defaults to/tmp/mcp_file_system.

- All paths are resolved relative to the base directory
- Path traversal attacks (using..) are prevented
- Access outside the base directory is blocked
- File operations are sandboxed

Run in development mode with auto-reload:

To use this server with Claude Desktop, add the following to your~/Library/Application Support/Claude/claude_desktop_config.json:

{ "mcpServers": { "file-system": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/mcp_file_system", "run", "src/main.py" ] } } }

Replace/ABSOLUTE/PATH/TO/mcp_file_systemwith the actual absolute path to your project directory.

A secure server for filesystem operations with controlled access to specified directories.

Provides secure access to the local filesystem via the Model Context Protocol (MCP).

A local server that allows AI to execute Windows CMD commands, read/write files, and manage directories within a specified path.

An AI-powered MCP server for advanced file system operations, including search, comparison, and security analysis.

Securely browse and read files within an Android project, with built-in validation and access controls for sensitive directories.

An MCP server for viewing, editing, and creating text files, based on the Claude built-in text editor tool.

A cross-platform filesystem server for Linux, macOS, and Windows with secure path restrictions.

Visualize directory structures with real-time updates, configurable depth, and smart exclusions for efficient project navigation.

A Node.js MCP server for managing local files, processes, and terminal sessions.

A high-performance Model Context Protocol (MCP) server that provides secure filesystem access and AI-optimized code development tools for Claude and other AI assistants.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.