文件系统
Filesystem安全地访问本地文件系统,支持读写文件、目录操作。可配置允许访问的目录范围。
安装命令
npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir 配置示例
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/你的用户名/projects"]
}
}
} 包含工具
read_filewrite_filelist_directorycreate_directorymove_file
常见问题(FAQ)
文件系统 MCP 是做什么的?
文件系统 是一个 MCP 服务器,主要能力是:安全地访问本地文件系统,支持读写文件、目录操作。可配置允许访问的目录范围。
文件系统 如何安装到 Claude Code?
执行安装命令并加入 MCP 配置即可:npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/dir
文件系统 提供哪些工具?
当前包含工具:read_file、write_file、list_directory、create_directory、move_file
文件系统 适合新手吗?
适合程度取决于你的使用场景。当前难度标记为 beginner,建议先用只读或测试环境验证。