npx -y @modelcontextprotocol/server-filesystem /path/to/dir
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/dir"
]
}
}
}传输方式:stdio
read_file读取文件内容
write_file写入/创建文件
list_directory列出目录
move_file移动/重命名