MCP Filesystem Python
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Filesystem Python list all Python files in the project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: mcp-file-lens
Installation
Using UV:
uv add mcp-filesystem-pythonUsage
Run the server:
uv run src/filesystem/server.py /path/to/directoryClaude 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
Available Tools
3 toolsdelete-fileB
Delete a file or directory
Inputs: path (required), recursive.
search-filesA
Search for files containing specific text
Inputs: query (required), file_pattern.
write-fileB
Write content to a file
Inputs: path (required), content (required), create_dirs.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: deleting, searching, and writing files. No overlap or ambiguity.
All tool names follow a consistent verb-noun pattern with hyphens (e.g., delete-file, search-files). No mixing of conventions.
With only 3 tools, the server is on the lower end of the ideal range. While each tool is distinct, the count feels thin for a filesystem server.
Fundamental operations like reading file content or listing directories are missing. Agents cannot perform basic file access, leading to significant gaps.
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Browse and manage files in your Moxt AI workspace from any MCP client.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA secure MCP server enabling read-only access and file search capabilities within a specified directory, while respecting .gitignore patterns.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides a flexible lens into directory structures and files, enabling LLM clients to efficiently navigate and understand codebases with minimal noise. It offers secure, gitignore-aware file access with tools like directory listing, file reading, and grep-like search.1MIT
- AlicenseBqualityDmaintenanceA read-only MCP server that exposes a local code workspace to AI clients via stdio, providing file browsing and text search capabilities with path safety rules.1MIT
- AlicenseAqualityNot gradedmaintenanceRead-only filesystem MCP server with .gitignore filtering, multi-root support, and cache for efficient file exploration.48 npmMIT