MCP Catalogs
首页

go-mcp-server vs filesystem

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

go-mcp-server
by cbrgm
filesystem
by modelcontextprotocol
Stars★ 6★ 85,748
30天用量
综合分3777
官方
分类
AI / LLM 工具开发者工具其它
本地文件系统开发者工具效率工具
实现语言GoTypeScript
最近提交本月本月

go-mcp-server · 概述

一个用Go语言实现的茶叶主题MCP服务器,提供工具、资源和提示功能,支持stdio和HTTP传输。

filesystem · 概述

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

go-mcp-server · 使用场景

  • 学习MCP实现的教育工具
  • 茶叶信息检索系统
  • MCP协议演示测试服务器

filesystem · 使用场景

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

go-mcp-server · 安装

安装

  1. 克隆仓库:
git clone https://github.com/cbrgm/go-mcp-server.git
cd go-mcp-server
  1. 构建二进制文件:
go build ./cmd/go-mcp-server
  1. 运行服务器:
# 默认stdio传输模式
./go-mcp-server

# HTTP传输模式
./go-mcp-server -transport http -port 8080

**Claude Desktop配置:**

{
  "mcpServers": {
    "tea": {
      "command": "go",
      "args": ["run", "./cmd/go-mcp-server"],
      "cwd": "/path/to/go-mcp-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 公开数据自动生成,定期更新。