Back to Home
Ferreyrajp icon

MCP-Filesystem-Server---Python

Verified Safe

by Ferreyrajp

Overview

Provides secure, tool-based access to the local filesystem for AI models via the Model Context Protocol (MCP), enabling AI agents to read, write, edit, and search files.

Installation

Run Command
python server.py /path/to/allowed/directory

Security Notes

The server implements robust security measures including explicit allowed directory lists, path normalization, symlink resolution (using `Path().resolve()`), null byte rejection, and atomic file writes. All tool functions utilize a central `validate_path` mechanism to ensure operations are confined to the permitted directories, significantly mitigating path traversal and unauthorized access risks. No `eval` or other dangerous dynamic code execution patterns were found.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens50000
Stars0
Forks0
Last Update2025-11-29

Tags

FilesystemMCPPythonSecurityAI Agent Tools