Add your description here
Project description
Filesystem MCP Server (v0.1)
A simple MCP server for filesystem operations with directory sandboxing and read-only mode support.
Early version (0.1) - not thoroughly tested/reviewed, use with caution
Quick Start
Install dependencies:
git clone <repo_url>
uv sync
Run the server:
# Normal mode - full filesystem access
uv run main.py /path/to/allowed/directory
# Read-only mode - no write operations
uv run main.py --read-only /path/to/allowed/directory
Features
- Directory sandboxing (operations restricted to allowed paths)
--read-onlyflag disables write operations- Gitignore support for searches
- Human-readable error messages
Usage Examples
Normal Mode
uv run main.py ~/projects
# Provides: create_file, delete_file, move_file, edit_file, create_directory + read tools
Read-Only Mode
uv run main.py --read-only ~/projects
# Provides only: read_text_file, list_directory, search_files, grep, directory_tree
Multiple Directories
uv run main.py /home/user/docs /tmp/workspace
uv run main.py --read-only /var/log /etc/config
Available Tools
Read Operations (always available):
read_text_file- Read file contentslist_directory- List directory contentsdirectory_tree- JSON directory structuresearch_files- Find files by patterngrep- Search text in filesread_multiple_files- Bulk file reading
Write Operations (disabled in --read-only):
create_file- Create new filesdelete_file- Delete filesmove_file- Move/rename filesedit_file- Edit file contentscreate_directory- Create directories
Dependencies
From pyproject.toml:
fastmcp>=2.11.2- MCP frameworkpathspec>=0.12.1- Gitignore patterns
Security Notes
- All paths resolved with
Path.resolve()to prevent traversal - Operations restricted to allowed directories only
- Binary files rejected for text operations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_fs_mcp_py-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_fs_mcp_py-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f073009bf71f275802b1aefe223da27558dcbe34549765ac0cb9ee76ae9e6010
|
|
| MD5 |
5fe2780806b655e0ba511c9ffbc85741
|
|
| BLAKE2b-256 |
8bc14f304218a0117bed5641fce5f4824e9a8d4f1bed198d165a895b703ed568
|
File details
Details for the file iflow_mcp_fs_mcp_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_fs_mcp_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec26611160573d4b12599317fc03371422b6cf9b9036044b9f004f4f7cc87fe7
|
|
| MD5 |
66d1528225b6ef6a9c2810392fc3425c
|
|
| BLAKE2b-256 |
d46354c51f808aa0d9a60d9bd2457acb8d22c56bd11e98f93ff76e87979ae9d0
|