Filesystem

•

Provides secure and high-performance file system access and manipulation capabilities for Model Context Protocol (MCP) clients.

This Rust-native server re-implements the Model Context Protocol's filesystem server, prioritizing speed, memory safety, and protocol compatibility. It offers a comprehensive suite of file system operations, including reading, writing, editing, moving, and deleting files and directories, alongside advanced tools for line-based edits, bulk search/replace, and content-aware file searching with regular expressions. Designed with robust path validations and allowlists, it ensures secure operations. The server supports both local stdio and remote HTTP streaming transport modes, making it versatile for various integration scenarios with AI agents and development environments like Claude Code and Codex.

Key Features

01High-performance file system operations (read, write, edit, move, copy, delete)
02Content searching with `grep_files` supporting regex and glob patterns
032 GitHub stars
04Robust security features including directory allowlists, path escape protection, and symlink handling
05Advanced editing tools: line-based `edit_lines` and mass `bulk_edits` with diff support
06Dual transport modes: stdio for local clients and HTTP streaming for remote/web integrations

Use Cases

01Enabling AI agents (like Claude Code or Codex) to programmatically interact with and modify local or remote file systems.
02Performing precise, line-based code modifications or bulk refactoring operations across multiple files in a codebase.
03Searching for specific code patterns or content within files using regular expressions and glob filters.