template-mcp-server vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
template-mcp-server by mcpdotdirect | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 74 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 45 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具效率工具其它 | 本地文件系统开发者工具效率工具 |
| 实现语言 | JavaScript | TypeScript |
| 最近提交 | 6 个月前 | 本月 |
template-mcp-server · 概述
使用 FastMCP 构建 MCP 服务器的模板,支持 stdio 和 HTTP 传输方式。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
template-mcp-server · 使用场景
- 以最少的设置快速启动新的 MCP 服务器项目
- 使用 HTTP 传输创建团队共享的 MCP 工具
- 使用 stdio 传输开发个人生产力工具
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
template-mcp-server · 安装
安装
使用 npx 或 npm 创建新的 MCP 服务器项目:
# 使用 npx
npx @mcpdotdirect/create-mcp-server
# 或使用 npm
npm init @mcpdotdirect/mcp-server创建项目后,安装依赖:
npm installClaude Desktop 配置
添加到您的 Claude Desktop config.json:
{
"mcpServers": {
"my-mcp-server": {
"command": "npm",
"args": ["start"]
}
}
}filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。