Pathgate
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pathgate list files in my Documents folder"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Pathgate
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.
What it does
The server exposes:
File resources via
file://...Directory resources via
directory://...Tools for reading, writing, listing, creating, deleting, moving, copying, searching, and inspecting files/directories
Built-in prompts for directory analysis and file discovery
Related MCP server: MCP Filesystem Server
Security model
Access is restricted by allow-listed paths. At startup, the server resolves the supplied paths and only permits operations within those directories.
Paths are checked with
os.path.realpath()and prefix matchingSymlinks are resolved before comparison
The server can be run in read-only mode to disable mutating operations
Installation
Pathgate package is published on PyPI. To use it, for example with Claude Desktop, add this in the claude_desktop_config.json
{
"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>Paths should be separated by spaces
uvx pathgate install C:\Users\me\Documents C:\Users\me\ProjectsWhen no paths are given, it prompts you for them.
Options
--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.
Updating
You don't need to manually update it. The command does that for you.
Usage
Start with allowed directories
uvx pathgate "C:\Users\<username>\Documents" "C:\Users\<username>\Projects"Read-only mode
uvx pathgate --read-only "C:\Users\<username>\Documents"Environment variable alternative
$env:FS_MCP_ALLOWED_PATHS = "C:\Users\<username>\Documents;C:\Users\<username>\Projects"
uvx pathgateOn macOS/Linux, use : instead of ; for the path separator.
Tools
The current implementation exposes these tools:
read_file_tool— read a file and return its content, size, and encodingwrite_file_tool— write content to a filelist_directory_tool— list directory contents, optionally recursivelycreate_directory_tool— create a directory tree if neededdelete_file_tool— delete a single filedelete_directory_tool— delete a directory, optionally recursivelymove_file_tool— move or rename a file/directorycopy_file_tool— copy a file/directorysearch_files_tool— search for files matching a patternget_file_info_tool— return metadata for a file or directory
Example requests
Once connected, clients can ask:
List the files in C:\Users\<username>\DocumentsRead C:\Users\<username>\Documents\notes.txtSearch for *.py files under C:\Users\<username>\ProjectsCreate a file at C:\Users\<username>\Documents\todo.txt with the content "Ship release"Project layout
pathgate/
├── pathgate/
│ ├── __init__.py
│ ├── __main__.py
│ ├── config.py
│ ├── prompts.py
│ ├── install.py
│ ├── resources.py
│ ├── server.py
│ ├── tool_schemas.py
│ └── tools.py
├── tests/
│ └── test_server.py
├── pyproject.toml
├── README.md
└── LICENSERequirements
Python 3.10+
mcp>=2
References
Available Tools
10 toolscopy_file_toolC
Copy a file or directory
Inputs: source (required), destination (required).
create_directory_toolB
Create a new directory (creates parent directories if needed)
Inputs: path (required).
delete_directory_toolC
Delete a directory
Inputs: path (required), recursive.
delete_file_toolC
Delete a file
Inputs: path (required).
get_file_info_toolC
Get detailed information about a file or directory
Inputs: path (required).
list_directory_toolB
List contents of a directory
Inputs: path (required), recursive.
move_file_toolC
Move or rename a file or directory
Inputs: source (required), destination (required).
read_file_toolC
Read the contents of a file
Inputs: path (required), encoding.
search_files_toolC
Search for files matching a pattern
Inputs: pattern (required), directory (required), recursive.
write_file_toolB
Write content to a file (creates or overwrites)
Inputs: path (required), content (required), encoding.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool maps to a distinct filesystem operation: read, write, copy, move, delete, list, create directory, delete directory, search, and metadata inspection. The split between file and directory deletion is resource-based rather than ambiguous, and metadata vs. content retrieval is clearly differentiated.
All ten tools follow the same snake_case verb_noun_tool pattern, such as copy_file_tool, read_file_tool, and create_directory_tool. There are no mixed conventions or vague standalone verbs.
Ten tools is well-scoped for a filesystem server, covering the core operations without bloat. Each tool earns its place and the set remains easy to scan.
The surface covers the main filesystem lifecycle: read, write, copy, move, delete, list, create, and search. Minor gaps remain, such as explicit append/truncate or existence/permission checks, but the core workflows are complete.
Maintenance
Related MCP Connectors
Manage files and folders directly from your workspace. Read and write files, list directories, cre…
Securely search and manage workspace context files for AI agents and teams.
Persistent file storage for AI agents via MCP and curl. Upload, download, and version files.
Search, organize and share the files in your S3-compatible buckets from your AI assistant.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides secure file system operations for AI assistants including directory listing, file reading/writing, deletion, searching, and copying. Features safety controls like path validation, permission checks, and file size limits.-
- AlicenseNot gradedqualityDmaintenanceProvides file system operations (list, read, write, search) via MCP, enabling an AI agent to manage files through natural language.ISC
- AlicenseAqualityDmaintenanceEnables AI assistants to read, write, and manage files on the local system with security features like path restrictions and optional read-only mode.92MIT
- AlicenseBqualityBmaintenanceEnables advanced file system operations such as file read/write, directory management, search, archiving, and file watching through natural language.163GPL 3.0