简介
Filesystem MCP 是官方本地文件访问 MCP 服务器,GitHub 4,000+ stars。在指定根目录范围内安全地读写、搜索和管理文件。Agent 无法访问根目录之外的文件。支持只读模式。
Official MCP server that gives AI agents safe, scoped access to your local filesystem. Read, write, search, and manage files and directories with configurable permissions. 4,000+ stars.
这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。
将以下配置添加到 .mcp.json:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/你的/项目/路径"]
}
}
}Filesystem MCP 是官方本地文件访问 MCP 服务器,GitHub 4,000+ stars。在指定根目录范围内安全地读写、搜索和管理文件。Agent 无法访问根目录之外的文件。支持只读模式。
Part of MCP Servers. Licensed under MIT.