Filesystem Python
FreeNot checkedA secure, read-only MCP server for browsing and searching files in a specified directory with path traversal protection and .gitignore support.
About
A secure, read-only MCP server for browsing and searching files in a specified directory with path traversal protection and .gitignore support.
README
A Model Context Protocol (MCP) server that provides secure, read-only access to files in a specified directory.
Features
- Exposes files as MCP resources using `file://` URI scheme
- Provides file search capabilities through MCP tools
- Respects .gitignore patterns
- Security features including path traversal protection
- MIME type detection
Installation
Using UV:
uv add mcp-filesystem-python
Usage
Run the server:
uv run src/filesystem/server.py /path/to/directory
Claude Desktop Integration
Configuration Examples
Example configurations for Claude Desktop can be found in the `examples` directory:
- `examples/claude_desktop_config.json`: Example for macOS/Linux
- `examples/claude_desktop_config_windows.json`: Example for Windows
These files should be placed at:
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%AppData%\Claude\claude_desktop_config.json`
Make sure to:
- Replace the paths with your actual paths
- Use forward slashes (`/`) for macOS/Linux and backslashes (`\\`) for Windows
- Use absolute paths (not relative paths)
Development
- Clone the repository
- Create virtual environment and sync requirements,
uv sync
License
Install Filesystem Python in Claude Desktop, Claude Code & Cursor
unyly install mcp-filesystem-pythonInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-filesystem-python -- uvx --from git+https://github.com/gary109/mcp-filesystem-python mcp-filesystem-pythonFAQ
Is Filesystem Python MCP free?
Yes, Filesystem Python MCP is free — one-click install via Unyly at no cost.
Does Filesystem Python need an API key?
No, Filesystem Python runs without API keys or environment variables.
Is Filesystem Python hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Filesystem Python in Claude Desktop, Claude Code or Cursor?
Open Filesystem Python on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Filesystem Python with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
