MCP Filesystem Python
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%Claudeclaude_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
MCP Filesystem Python
Project Details
- punkpeye/mcp-filesystem-python
- MIT License
- Last Updated: 4/20/2025
Recomended MCP Servers
MCP web research server (give Claude real-time info from the web)
A Model Context Protocol server for retrieving and analyzing issues from Sentry.io
A MCP Server for the RAG Web Browser Actor

Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP server for using the AdsPower LocalAPI
A Model Context Protocol (MCP) server that provides basic mathematical and statistical functions to Large Language Models (LLMs)....
A MCP Server used to collect MCP Servers over the internet.
A middleware server that enables multiple isolated instances of the same MCP servers to coexist independently with unique...
Query and Summarize your chat messages.
Full implementation of Todoist Rest API & support Todoist Sync API for MCP server
Vapi MCP Server