
Pathgate
Local filesystem read, write, and search access limited to user-approved directories.
- GitHub stars
- 2
- tools
- 10
- transport
- STDIO
- last updated
- Nov 14, 2026
What it does
- Reads data with
read_file_tool,list_directory_tool,search_files_tool, andget_file_info_tool, returning content, size, encoding, and metadata - Writes changes with
write_file_tool,create_directory_tool,move_file_tool, andcopy_file_tool; deletion is handled bydelete_file_toolanddelete_directory_tool - Restricts every operation to allow-listed paths resolved through symlinks, and a read-only mode disables mutating tools
- Designed for Claude Desktop, Cursor, and VS Code users who need file management inside specific project folders
Tools
10 toolsPublic tool metadata for what this MCP can expose to an agent.
read_file_toolRead a file and return its content, size, and encoding.
Read a file and return its content, size, and encoding.
No parameter schema in public metadata yet.
write_file_toolWrite content to a file.
Write content to a file.
No parameter schema in public metadata yet.
list_directory_toolList directory contents, optionally recursively.
List directory contents, optionally recursively.
No parameter schema in public metadata yet.
create_directory_toolCreate a directory tree if needed.
Create a directory tree if needed.
No parameter schema in public metadata yet.
delete_file_toolDelete a single file.
Delete a single file.
No parameter schema in public metadata yet.
delete_directory_toolDelete a directory, optionally recursively.
Delete a directory, optionally recursively.
No parameter schema in public metadata yet.
move_file_toolMove or rename a file/directory.
Move or rename a file/directory.
No parameter schema in public metadata yet.
copy_file_toolCopy a file/directory.
Copy a file/directory.
No parameter schema in public metadata yet.
search_files_toolSearch for files matching a pattern.
Search for files matching a pattern.
No parameter schema in public metadata yet.
get_file_info_toolReturn metadata for a file or directory.
Return metadata for a file or directory.
No parameter schema in public metadata yet.
Readme
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
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 matching - Symlinks 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
Details
- Repository
- github.com/geekgod382/pathgate
- Categories
- Developer Tools, Productivity & Notes, Security
- Package
pathgate- Transport
- STDIO
- Registry
- MCP registry, active
Similar to Pathgate
More Developer Tools
FilesystemMCP servermark3labs699 starsRead, write, and search access to local directories on the host filesystem.
Desktop CommanderMCP serverwonderwhy-er10.4K starsTerminal commands, file operations, and process control for local machines, exposed as MCP tools.
Filesystem MCPMCP serverj0hanz35 starsSecure file access for AI assistants across chosen folders, with exact-match edits and undo.
KARP InspectorMCP serversouldriver0071 starLocal access to files, a knowledge graph, and code search for Claude Desktop.
filesystemSkilloimiragieo/agent-studio732 installsConcise guidance for reading, writing, searching, and navigating files with Claude Code's built-in tools.
Venira McpMCP servern0moreher01 starWorkspace-scoped file, search, shell, checkpoint, and CI access for coding agents, run locally.