Back to Home
harmonsir icon

mcp-filesystem-python

Verified Safe

by harmonsir

Overview

A Python-based filesystem MCP Agent designed to perform user-requested file and directory operations with a focus on security and resource limits.

Installation

Run Command
python core_main.py --transport streamable-http

Environment Variables

  • MCP_FILESYSTEM_ROOT
  • MCP_FILESYSTEM_SANDBOX

Security Notes

The server implements a robust sandbox mechanism (`resolve_path` and `_is_subpath`) to prevent path traversal attacks, defaulting to `True`. Disabling the sandbox via `--sandbox false` or `MCP_FILESYSTEM_SANDBOX=false` allows access to absolute paths outside the configured root, but this is explicitly prompted during interactive startup. There are no obvious 'eval' calls, obfuscation, or hardcoded secrets. File content reads are capped at ~32KB for batch operations, mitigating excessive data exfiltration risks.

Similar Servers

Stats

Interest Score10
Security Score9
Cost ClassLow
Avg Tokens3000
Stars2
Forks1
Last Update2025-12-15

Tags

filesystemMCP AgentPythondirectory managementfile operations