Filesystem MCP server with allow-listed directories
pathgate is a Python Model Context Protocol (MCP) server that exposes a controlled filesystem interface to MCP clients such as Claude Desktop, Cursor, VS Code, and inspector tools. The server only permits access to directories that are explicitly allow-listed at startup.
Access is restricted by allow-listed paths. At startup, the server resolves the supplied paths and only permits operations within those directories.
Pathgate package is published on PyPI. To use it, for example with Claude Desktop, add this in the
{ "mcpServers": { "pathgate": { "command": "uvx", "args": ["pathgate@latest", "C:\\Users\\me\\Documents"] } } } Or, you can use the install command to directly write the config file
uvx pathgate install paths should have nothing between them
uvx pathgate install C:\Users\me\Documents C:\Users\me\Projects When no paths are given, it prompts you for them.
--read-only: writes the safer variant of the entry. --dry-run: shows what it would write and changes nothing. --yes: skips the confirmation prompt. --name: sets a different entry name (default pathgate). --config PATH: I build this mcp server for Claude primarily. Using this option edits a specific file, which also works for other clients that use the same mcpServers shape.
You don't need to manually update it. The command does that for you.
uvx pathgate "C:\Users\ \Documents" "C:\Users\ \Projects" Read-only mode uvx pathgate --read-only "C:\Users\ \Documents" Environment variable alternative $env:FS_MCP_ALLOWED_PATHS = "C:\Users\ \Documents;C:\Users\ \Projects" uvx pathgate On macOS/Linux, use : instead of ; for the path separator.
The current implementation exposes these tools:
List the files in C:\Users\ \Documents Read C:\Users\ \Documents\notes.txt Search for *.py files under C:\Users\ \Projects Create a file at C:\Users\ \Documents\todo.txt with the content "Ship release" Project layout pathgate/ ├── pathgate/ │ ├── __init__.py │ ├── __main__.py │ ├── config.py │ ├── prompts.py │ ├── resources.py │ ├── server.py │ ├── tool_schemas.py │ └── tools.py ├── tests/ │ └── test_server.py ├── pyproject.toml ├── README.md └── LICENSE Requirements Python 3.10+ mcp>=2 References Model Context Protocol Python SDK Key dates PyPI data Data sourced directly from PyPI's database. Released: Nov 10, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. geekgod382 License MIT
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




