New advertisers: 50% off your first month with code FIRSTMONTHSee slots
geekgod382 avatar

Pathgate

geekgod382/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
View on GitHub

What it does

  • Reads data with read_file_tool, list_directory_tool, search_files_tool, and get_file_info_tool, returning content, size, encoding, and metadata
  • Writes changes with write_file_tool, create_directory_tool, move_file_tool, and copy_file_tool; deletion is handled by delete_file_tool and delete_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 tools

Public 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


View the full README on GitHub

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