modelcontextprotocol/servers
官方参考实现,让 AI 通过标准协议读写本地文件、跑 Git 命令、抓网页。
真机实测 跑通
tools 14 README 说 7
≈ tokens 3.6k schema 13KB · 单工具 260
二次启动 4415ms 首跑含 npx 下载
真实工具名(14 个)
read_fileread_text_fileread_media_fileread_multiple_fileswrite_fileedit_filecreate_directorylist_directorylist_directory_with_sizesdirectory_treemove_filesearch_filesget_file_infolist_allowed_directories
实测于 2026-12-06 · 起进程发 initialize + tools/list,量返回 JSON 字节数 ÷ 3.6
解决什么问题
模型本身碰不到你的磁盘和仓库,得靠一个本地进程把文件读写暴露成工具。
- 文件读写与目录遍历
- 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(1d) |
|---|---|
| Star | 62,000 |
| 待处理 issue | 320 |
| 协议 | MIT |
| 已归档 | 否 |
| 数据抓取于 | 2026-12-05 |
原文摘录
以下为仓库 README 原文,未做改写,用于核对上面的摘要。
Reference implementations for the Model Context Protocol, including filesystem, git and fetch servers.