Skip to main content

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-only flag 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 contents
  • list_directory - List directory contents
  • directory_tree - JSON directory structure
  • search_files - Find files by pattern
  • grep - Search text in files
  • read_multiple_files - Bulk file reading

Write Operations (disabled in --read-only):

  • create_file - Create new files
  • delete_file - Delete files
  • move_file - Move/rename files
  • edit_file - Edit file contents
  • create_directory - Create directories

Dependencies

From pyproject.toml:

  • fastmcp>=2.11.2 - MCP framework
  • pathspec>=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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_fs_mcp_py-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_fs_mcp_py-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for iflow_mcp_fs_mcp_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f073009bf71f275802b1aefe223da27558dcbe34549765ac0cb9ee76ae9e6010
MD5 5fe2780806b655e0ba511c9ffbc85741
BLAKE2b-256 8bc14f304218a0117bed5641fce5f4824e9a8d4f1bed198d165a895b703ed568

See more details on using hashes here.

File details

Details for the file iflow_mcp_fs_mcp_py-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_fs_mcp_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec26611160573d4b12599317fc03371422b6cf9b9036044b9f004f4f7cc87fe7
MD5 66d1528225b6ef6a9c2810392fc3425c
BLAKE2b-256 d46354c51f808aa0d9a60d9bd2457acb8d22c56bd11e98f93ff76e87979ae9d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page