Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

rust-mcp-filesystem

MCP.Pizza Chef: rust-mcp-stack

Rust MCP Filesystem is a high-performance, asynchronous MCP server built in Rust for efficient and safe filesystem operations. It offers advanced glob search, read-only default mode for security, and improved performance over its JavaScript predecessor. Designed for modern filesystem interactions, it enables seamless integration of filesystem data into LLM workflows with speed and reliability.

Use This MCP server To

Serve filesystem data to LLMs for real-time context access Perform asynchronous file read operations with high efficiency Execute advanced glob pattern searches on filesystems Provide secure, read-only filesystem views by default Enable LLMs to query and navigate project directories Integrate filesystem state into AI-enhanced development tools Support multi-step reasoning with live filesystem data Replace JavaScript MCP filesystem servers with Rust for performance

README

Rust MCP Filesystem Logo

Rust MCP Filesystem

Rust MCP Filesystem is a blazingly fast, asynchronous, and lightweight MCP (Model Context Protocol) server designed for efficient handling of various filesystem operations.
This project is a pure Rust rewrite of the JavaScript-based @modelcontextprotocol/server-filesystem, offering enhanced capabilities, improved performance, and a robust feature set tailored for modern filesystem interactions.

๐Ÿš€ Refer to the project documentation for installation and configuration instructions.

Features

  • โšก High Performance: Built in Rust for speed and efficiency, leveraging asynchronous I/O to handle filesystem operations seamlessly.
  • ๐Ÿ”’ Read-Only by Default: Starts with no write access, ensuring safety until explicitly configured otherwise.
  • ๐Ÿ” Advanced Glob Search: Supports full glob pattern matching allowing precise filtering of files and directories using standard glob syntax.For example, patterns like *.rs, src/**/*.txt, and logs/error-???.log are valid and can be used to match specific file types, recursive directory searches, or patterned filenames.
  • ๐Ÿ“ Nested Directories: Improved directory creation, allowing the creation of nested directories.
  • ๐Ÿ“ฆ Lightweight: Standalone with no external dependencies (e.g., no Node.js, Python etc required), compiled to a single binary with a minimal resource footprint, ideal for both lightweight and extensive deployment scenarios.
๐Ÿ‘‰ Refer to capabilities for a full list of tools and other capabilities.

๐Ÿ”ง Installation & Configuration

For detailed setup instructions, please visit the project documentation.

Purpose

This project aims to provide a reliable, secure, and feature-rich MCP server for filesystem management, reimagining the capabilities of @modelcontextprotocol/server-filesystem in a more performant and type-safe language. Whether youโ€™re building tools for file exploration, automation, or system integration, rust-mcp-filesystem offers a solid foundation.

๐Ÿงฐ Built With

The project leverages the rust-mcp-sdk and rust-mcp-schema to build this server. check out those repositories if youโ€™re interested in crafting your own Rust-based MCP project or converting existing ones to Rust for enhanced performance and safety.

License

This project is licensed under the MIT License. see the LICENSE file for details.

Acknowledgments

Inspired by @modelcontextprotocol/server-filesystem and built with the power of Rust.

rust-mcp-filesystem FAQ

How do I install rust-mcp-filesystem?
Follow the installation guide in the project documentation at https://rust-mcp-stack.github.io/rust-mcp-filesystem.
Is rust-mcp-filesystem secure by default?
Yes, it starts in read-only mode to prevent unintended writes until explicitly configured.
Can rust-mcp-filesystem handle large files asynchronously?
Yes, it leverages Rust's asynchronous I/O for efficient handling of large filesystem operations.
Does rust-mcp-filesystem support advanced file searching?
Yes, it includes advanced glob pattern search capabilities for flexible file queries.
How does rust-mcp-filesystem improve over the JavaScript version?
It offers better performance, robustness, and is built with Rust's safety and concurrency features.
Can I configure rust-mcp-filesystem for write access?
Yes, but write access is disabled by default for safety and must be explicitly enabled.
Is rust-mcp-filesystem compatible with multiple LLM providers?
Yes, it is designed to work with various LLMs like OpenAI, Claude, and Gemini through MCP.
Where can I find configuration options for rust-mcp-filesystem?
Configuration details are available in the official project documentation online.