文件系统 MCP
让 AI 安全地读取、搜索与编辑本地文件,支持目录范围白名单。
安装命令
终端
npx -y @modelcontextprotocol/server-filesystem /path/to/dir在 Cursor 中配置(mcp.json)
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/dir"
]
}
}
}