This server offers secure, read-only access to directory files via the MCP, supporting file searching, .gitignore compliance, path traversal protection, and MIME type detection using the 'file://' URI scheme.
A Model Context Protocol (MCP) server that provides secure, read-only access to files in a specified directory.
Using UV:
uv add mcp-filesystem-python
Run the server:
uv run src/filesystem/server.py /path/to/directory
Example configurations for Claude Desktop can be found in the `examples` directory:
These files should be placed at:
Make sure to:
uv sync
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!