MCP Catalogs
首页

filesystem vs postgresql-ssh-mcp

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

filesystem
by modelcontextprotocol
postgresql-ssh-mcp
by Zlash65
Stars★ 85,748★ 6
30天用量
综合分7739
官方
分类
本地文件系统开发者工具效率工具
数据库开发者工具安全
实现语言TypeScriptTypeScript
最近提交本月5 个月前

filesystem · 概述

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

postgresql-ssh-mcp · 概述

PostgreSQL MCP 服务器,具有 SSH 隧道功能,可通过堡垒主机安全访问数据库。

filesystem · 使用场景

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

postgresql-ssh-mcp · 使用场景

  • 安全地让 AI 助手连接到位于堡垒主机后面的 PostgreSQL 数据库
  • 无需手动 SSH 隧道设置即可让 Claude Desktop 查询数据库
  • 通过安全的 HTTP 端点为 ChatGPT 提供数据库访问

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

postgresql-ssh-mcp · 安装

Claude Desktop (STDIO)

添加到您的 Claude Desktop 配置中:

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@zlash65/postgresql-ssh-mcp"],
      "env": {
        "DATABASE_URI": "postgresql://user:password@localhost:5432/mydb"
      }
    }
  }
}

ChatGPT (HTTP 服务器)

DATABASE_URI="postgresql://user:pass@localhost:5432/mydb" npx @zlash65/postgresql-ssh-mcp-http

然后配置 ChatGPT 连接到 HTTP 端点。

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