Back to Home
manju07 icon

file-system-mcp-server

by manju07

Overview

A minimal Model Context Protocol (MCP) server that provides secure file read and write operations within a sandbox directory for AI agents.

Installation

Run Command
python server.py

Environment Variables

  • GOOGLE_API_KEY

Security Notes

The `resolve_sandbox_path` function in `server.py` is vulnerable to directory traversal. While it correctly handles absolute paths by taking only the file name relative to the sandbox, it fails to sufficiently normalize or validate relative paths (e.g., `../../../filename`) against the sandbox boundary. This allows an attacker to read or write files outside the intended `sandbox/` directory by crafting malicious relative paths.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Stars0
Forks0
Last Update2025-11-29

Tags

MCPFile SystemSandboxAI AgentPython