MCP Catalogs
首页

filesystem vs mcp-gateway

并排对比,帮你在这两个 MCP server 之间做选择。

filesystem
by modelcontextprotocol
mcp-gateway
by theognis1002
Stars★ 85,748★ 41
30天用量
综合分7747
官方
分类
本地文件系统开发者工具效率工具
运维基建安全开发者工具
实现语言TypeScriptGo
最近提交本月3 个月前

filesystem · 概述

功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。

mcp-gateway · 概述

生产就绪的 MCP 服务器 API 网关,提供认证、日志、限流和多协议支持。

filesystem · 使用场景

  • 使 AI 模型能够读取和写入项目文件进行开发
  • 允许 Claude 或其他 MCP 客户端浏览和分析代码库
  • 为内容生成提供对特定目录的安全沙盒访问

mcp-gateway · 使用场景

  • 企业部署 MCP 服务器,具有集中式安全和监控功能
  • 将现有 REST API 集成到 MCP 生态系统中
  • 创建具有自定义工具和资源的虚拟 MCP 服务器
  • 在不同环境中支持多协议 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 中安装。

mcp-gateway · 安装

Docker 安装(推荐)

# 克隆仓库
git clone https://github.com/mcp-gateway/mcp-gateway.git
cd mcp-gateway

# 复制环境变量文件
cp .env.example .env

# 使用 Docker Compose 运行
docker compose up --build

启动网关后,通过 http://localhost:3000 访问管理界面,凭据为 admin@admin.com / qwerty123

Claude Desktop 集成

添加到您的 Claude Desktop config.json:

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "docker",
      "args": ["run", "--rm", "-p", "8080:8080", "mcp-gateway/mcp-gateway:latest"]
    }
  }
}
对比内容由 README + GitHub 公开数据自动生成,定期更新。