modelcontextprotocol/servers
官方参考实现,让 AI 通过标准协议读写本地文件、跑 Git 命令、抓网页。
解决什么问题
模型本身碰不到你的磁盘和仓库,得靠一个本地进程把文件读写暴露成工具。
- 文件读写与目录遍历
- Git 操作
- 网页抓取
适用客户端
- claude-desktop
- cursor
- vscode
- cli
安装命令
npx -y @modelcontextprotocol/server-filesystem /path/to/dir docker run -i --rm mcp/filesystem /path/to/dir 一键配置
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"]
}
}
} 安全标记
- 需要 API Key: 否
- 本地运行: 是
- 访问网络: 否
- 需要 root: 否
维护状态
| 最近提交 | 2026-12-04(0d) |
|---|---|
| Star | 62,000 |
| 待处理 issue | 320 |
| 协议 | MIT |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-05 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
Reference implementations for the Model Context Protocol, including filesystem, git and fetch servers.