MCP Catalogs
首页

hasmcp-ce vs filesystem

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

hasmcp-ce
by hasmcp
filesystem
by modelcontextprotocol
Stars★ 27★ 85,748
30天用量
综合分4077
官方
分类
开发者工具api-integration运维基建
本地文件系统开发者工具效率工具
实现语言GoTypeScript
最近提交4 个月前本月

hasmcp-ce · 概述

HasMCP-CE 无需编写代码即可将 API 端点转换为 MCP 服务器。

filesystem · 概述

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

hasmcp-ce · 使用场景

  • 将现有的 REST API 端点转换为 MCP 服务器,以便与 AI 模型集成
  • 为内部 API 创建 MCP 服务器,而无需编写自定义 MCP 实现
  • 管理多个作为 MCP 工具的 API 端点,带有认证和代理功能

filesystem · 使用场景

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

hasmcp-ce · 安装

安装

使用 Docker(推荐)

  1. 创建目录:
mkdir hasmcp
cd hasmcp
mkdir -p _certs _storage
chmod 0777 _certs _storage
  1. 下载环境文件:
wget https://github.com/hasmcp/hasmcp-ce/blob/main/backend/cmd/server/.env.example -O .env
  1. 使用 Docker 运行:
docker stop hasmcp-ce || true; \
  docker rm hasmcp-ce || true; \
  docker image prune -f; \
  docker pull hasmcp/hasmcp-ce:latest; \
  docker run --env-file .env -p 80:80 -p 443:443 --name hasmcp-ce \
    -v ./_certs:/_certs \
    -v ./_storage:/_storage \
    -d --restart always hasmcp/hasmcp-ce:latest

Claude Desktop 配置

添加到 Claude Desktop config.json:

{
  "mcpServers": {
    "hasmcp": {
      "command": "docker",
      "args": ["run", "--rm", "hasmcp/hasmcp-ce:latest"]
    }
  }
}

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 中安装。

对比内容由 README + GitHub 公开数据自动生成,定期更新。