MCP Catalogs
首页

hamr vs filesystem

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

hamr
by AKhilRaghav0
filesystem
by modelcontextprotocol
Stars★ 18★ 85,748
30天用量
综合分4377
官方
分类
开发者工具运维基建AI / LLM 工具
本地文件系统开发者工具效率工具
实现语言GoTypeScript
最近提交1 个月前本月

hamr · 概述

Go语言MCP服务器框架,通过结构体标签自动生成模式,优化令牌成本。

filesystem · 概述

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

hamr · 使用场景

  • 为AI助手构建高效令牌的MCP服务器,具有最小开销
  • 创建基于Go的MCP服务器,无需手动编写JSON模式
  • 使用实时工具调用跟踪为MCP服务器开发监控仪表板

filesystem · 使用场景

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

hamr · 安装

安装

安装CLI:

go install github.com/AKhilRaghav0/hamr/cmd/hamr@latest

创建新项目:

hamr init my-server
cd my-server
go run .

添加到现有Go项目:

go get github.com/AKhilRaghav0/hamr

Claude桌面配置

{
  "mcpServers": {
    "my-server": {
      "command": "go",
      "args": ["run", "/path/to/my-server"]
    }
  }
}

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 公开数据自动生成,定期更新。