What directories can the server access?
Directories are specified at startup via the `-d` or `--directories` argument. The server will only operate within those paths.
@hypercat
Basic information
This is a robust Python-based MCP Filesystem Server. It enables AI models and applications to securely interact with the host system's file directories through a defined set of tools, allowing for operations like reading, writing, moving, and listing files and directories.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"PyMCP-FS": {
"command": "uv",
"args": [
"pip",
"install",
"-r",
"pyproject.toml"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Python (MCP) Filesystem Server is a Python-based Model Context Protocol (MCP) server that enables AI models and applications to securely interact with host file directories via a defined set of tools. It uses the fastmcp library and confines all file operations to a configurable list of allowed directories.
Clone the repository and initialize with uv pip install -r pyproject.toml. Run python3 main.py -d /path/to/allowed/dir1 /path/to/another/allowed/dir2 [--log-level LEVEL] [--log-file PATH]. The server listens for MCP messages on stdin and responds on stdout. A test script (test_mcp_server.py) is provided to verify functionality.
Directories are specified at startup via the `-d` or `--directories` argument. The server will only operate within those paths.
Python 3.8 or higher is required, along with the `fastmcp` library.
Symlink targets are validated to ensure they do not point outside the configured allowed directories, preventing path escape.
The server uses standard input/output (stdin/stdout) for MCP communication, adhering to JSON‑RPC 2.0 messages.
Log level can be set via `--log-level` (DEBUG, INFO, WARNING, ERROR; default INFO). An optional `--log-file` writes logs to a rotating file.

DeviceLink lets you share folders from your computer with AI assistants, securely and in real-time. Nothing is uploaded. Your files stay on your machine, and are only accessible while the device sharing them is connected

Model Context Protocol Servers
MCP Server for reading many files at the same time
MCP server to integrate AWS S3 and LLM
The SSE version of the MCP service is modified from the Filesystem MCP server
Comments