filesystem vs mcp-api-gateway
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | mcp-api-gateway by rflpazini | |
|---|---|---|
| Stars | ★ 85,748 | ★ 40 |
| 30天用量 | — | — |
| 综合分 | 77 | 45 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | 开发者工具api-integrationAI / LLM 工具 |
| 实现语言 | TypeScript | JavaScript |
| 最近提交 | 本月 | 2 个月前 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-api-gateway · 概述
通用MCP服务器,可将任何带Swagger/OpenAPI规范的API通过Docker转换为Claude Desktop工具。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-api-gateway · 使用场景
- 将企业API集成到Claude Desktop,无需自定义工具开发
- 使Claude能够在单个会话中与多个API服务交互
- 通过Claude中的自然语言提示自动化API交互
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 中安装。
mcp-api-gateway · 安装
使用Docker MCP工具包(推荐)
- 安装Docker Desktop
- 从Docker MCP工具包获取MCP服务器
- 添加到你的
claude_desktop_config.json中:
{
"mcpServers": {
"my-api": {
"command": "docker",
"args": [
"run", "--rm", "-i", "--pull", "always",
"-e", "API_1_NAME=my-api",
"-e", "API_1_SWAGGER_URL=https://api.example.com/swagger.json",
"-e", "API_1_BASE_URL=https://api.example.com/v1",
"-e", "API_1_HEADER_AUTHORIZATION=Bearer YOUR_TOKEN",
"rflpazini/mcp-api-gateway:latest"
]
}
}
}使用npx
API_1_NAME=my-api \
API_1_SWAGGER_URL=https://api.example.com/swagger.json \
API_1_BASE_URL=https://api.example.com/v1 \
npx mcp-api-gateway