MCP Filesystem Python
MCP 文件系统 Python
模型上下文协议 (MCP) 服务器提供对指定目录中的文件的安全、只读访问。
特征
使用 `file://` URI 方案将文件公开为 MCP 资源
通过 MCP 工具提供文件搜索功能
尊重 .gitignore 模式
安全功能包括路径遍历保护
MIME类型检测
Related MCP server: Project Content Server
安装
使用紫外线:
uv add mcp-filesystem-python用法
运行服务器:
uv run src/filesystem/server.py /path/to/directoryClaude 桌面集成
配置示例
可以在“examples”目录中找到 Claude Desktop 的示例配置:
`examples/claude_desktop_config.json`:macOS/Linux 示例
`examples/claude_desktop_config_windows.json`:Windows 示例
这些文件应放置在:
macOS:`~/Library/Application Support/Claude/claude_desktop_config.json`
Windows:`%AppData%\Claude\claude_desktop_config.json`
请确保:
用您的实际路径替换路径
对于 macOS/Linux,使用正斜杠 (`/`);对于 Windows,使用反斜杠 (`\\`)
使用绝对路径(而不是相对路径)
发展
克隆存储库
创建虚拟环境和同步要求,
uv sync
执照
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot gradedqualityAmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.99,70489,748MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.15MIT
- AlicenseAqualityDmaintenanceAn MCP server that allows Claude AI to perform filesystem operations including reading, writing, listing, moving files, and searching directories within specified allowed paths.9392ISC
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for reading, writing, and editing files on the local filesystem.1,608Apache 2.0
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mtunell/mcp-filesystem-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server