mcp-gateway vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
mcp-gateway by MikkoParkkola | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 25 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 46 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具安全 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Rust | TypeScript |
| 最近提交 | 本月 | 本月 |
mcp-gateway · 概述
通用MCP网关,通过Meta-MCP实现工具复用,节省95%的上下文token。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-gateway · 使用场景
- 连接大量MCP服务器而不耗尽上下文窗口
- 使用OpenAPI导入将REST API转换为MCP能力
- 通过集中验证和哈希固定保护AI工具访问安全
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-gateway · 安装
安装方法
**Homebrew (macOS/Linux,推荐)**
brew install MikkoParkkola/tap/mcp-gateway**Cargo**
cargo install mcp-gateway**直接二进制下载**
# macOS Apple Silicon
curl -L https://github.com/MikkoParkkola/mcp-gateway/releases/latest/download/mcp-gateway-darwin-arm64 -o mcp-gateway && chmod +x mcp-gateway**Docker**
docker run -v $(pwd)/gateway.yaml:/config.yaml ghcr.io/mikkoparkkola/mcp-gateway:latest --config /config.yaml设置
mcp-gateway setup wizard --configure-client
mcp-gateway serve
mcp-gateway doctorfilesystem · 安装
安装
使用 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 中安装。