filesystem vs template-mcp-server
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | template-mcp-server by redhat-data-and-ai | |
|---|---|---|
| Stars | ★ 85,748 | ★ 54 |
| 30天用量 | — | — |
| 综合分 | 77 | 48 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具运维基建AI / LLM 工具 |
| 实现语言 | TypeScript | Python |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
template-mcp-server · 概述
生产就绪的 Python 模板,用于构建具有 FastMCP、FastAPI、OAuth 和部署示例的 MCP 服务器。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
template-mcp-server · 使用场景
- 使用经过验证的模式快速部署新的 MCP 服务器
- 为特定领域应用程序创建自定义 MCP 工具
- 使用 OAuth 认证实现安全的 MCP 服务
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 中安装。
template-mcp-server · 安装
安装
快速开始
git clone https://github.com/redhat-data-and-ai/template-mcp-server
cd template-mcp-server
make install # 创建 venv,安装依赖项 + pre-commit 钩子
make local # 在 localhost:5001 启动服务器手动设置
# 创建 venv 并安装
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pre-commit install
# 配置并运行
cp .env.example .env
template-mcp-server