filesystem-mcp-with-FastMCP-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@filesystem-mcp-with-FastMCP-serverList the files in my workspace"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ FastMCP Filesystem Server & AI Assistant
A high-performance, sandboxed filesystem manager built on the Model Context Protocol (MCP) with FastMCP, featuring a reactive Streamlit UI and OpenAI function calling.
Features • Claude Desktop Setup • Architecture • Tools • Quickstart
🛡️ Security & M8ven Trust Verification
This MCP server is listed and independently verified on the M8ven Trust Index:
🔒 Sandboxed Path Validation: Restricts all file mutations within the isolated workspace with path traversal (../) prevention.
⚡ Model Context Protocol (MCP): Native stdio/SSE tools compatible with Claude Desktop and FastMCP runtime.
📋 Trust Inspection: Check the latest security audit and independent review on M8ven.
Related MCP server: ai-distiller-mcp
🎯 What is This?
An enterprise-ready AI file manager built with Anthropic's Model Context Protocol (MCP) and FastMCP. It bridges LLM reasoning directly to local filesystem operations inside a hardened, sandboxed workspace with complete path-traversal prevention.
🤖 Autonomous AI Tool Calling: OpenAI GPT-4o function-calling automatically selects the optimal file tools based on natural language prompts.
🔒 Sandboxed File Operations: Strict path validation prevents any access outside the designated
workspace/boundary.🎨 Full-Stack Web Interface: Modern 3-tab Streamlit dashboard (Agent Chat, Live File Tree Explorer, Direct Quick-Action Tools).
⚡ Production FastMCP Engine: SSE (Server-Sent Events) and stdio transport with asynchronous I/O and zero memory leaks.
🔌 Connect to Claude Desktop (in 10s)
You can connect this MCP server directly to Anthropic Claude Desktop so Claude can inspect, create, read, and organize your files locally.
Add the following to your claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"filesystem-fastmcp": {
"command": "python",
"args": [
"-m",
"server.filesystem_mcp_server"
],
"cwd": "C:/path/to/filesystem-mcp-with-FastMCP-server"
}
}
}Restart Claude Desktop, and you will see the hammer icon 🔨 with all 8 filesystem tools ready to use!
🏗️ Architecture
flowchart TD
User([User Prompt]) --> UI[Streamlit Host App / Claude Desktop]
UI --> LLM[LLM Agent / GPT-4o / Claude 3.5 Sonnet]
LLM -->|Function Calling / MCP Protocol| FastMCP[FastMCP Server]
subgraph Sandbox [Security Boundary: workspace/]
FastMCP --> Validator[Path Traversal & Permission Guard]
Validator --> Read[File Read & Search Engine]
Validator --> Write[Atomic Write & Backup Engine]
Validator --> Meta[Directory Tree & Metadata Inspector]
end
Validator --> Log[Structured Audit Logger]🛠️ 8 Available MCP Tools
Tool | Parameters | Description |
|
| Lists all files and folders in the specified directory with sizes. |
|
| Reads text content safely with size limits. |
|
| Creates or atomically overwrites a file. |
|
| Safely removes a file inside the sandbox. |
|
| Returns metadata (size, created, modified, permissions). |
|
| Creates nested directory trees inside |
|
| Wildcard and regex file search across directories. |
|
| Duplicates files with metadata preservation. |
🚀 Quickstart
1. Clone & Setup Environment
git clone https://github.com/Bosaj/filesystem-mcp-with-FastMCP-server.git
cd filesystem-mcp-with-FastMCP-server
python -m venv .venv
# Windows:
.venv\Scripts\activate
# Linux/macOS:
source .venv/bin/activate
pip install -r requirements.txt2. Configure Environment Variables
cp .env.example .env
# Edit .env and set your OPENAI_API_KEY3. Run the Standalone FastMCP Server
python -m server.filesystem_mcp_server4. Run the Streamlit Interactive Web Interface
streamlit run host/app.py🧪 Testing & Verification
Run the automated test suite and lint checks:
pytest tests/ -v --cov=server --cov-report=term-missing
flake8 server/ host/
black --check server/ host/👥 Contributors & Authors
Oussama EL HADJI (@Bosaj) — Core Architecture, FastMCP server implementation, and CI/CD pipelines.
chakorabdellatif — Collaborative development and testing.
yassinebenacha — Frontend dashboard review.
📄 License
This project is licensed under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Browse and manage files in your Moxt AI workspace from any MCP client.
Manage portable AI agent playbooks, Agent Skills, MCP configurations, personas, and memory.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides file system operations (list, read, write, search) via MCP, enabling an AI agent to manage files through natural language.1,734 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides filesystem access to Claude via the MCP protocol, enabling local file operations through natural language.-
- AlicenseAqualityDmaintenanceProvides LLMs with local filesystem operations (read/write files, list directories) and command execution via MCP, enabling file management and task automation within AI clients.717 npmISC
- AlicenseNot gradedqualityDmaintenanceExposes file system operations to AI clients via MCP, enabling secure read, write, and management of files and folders.10 npmMIT