MCP低风险未认领

DB MCP Server

Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.

stucchistucchi/db★ 2更新于 2026年3月24日

server.json

{
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
  "name": "io.github.stucchi/db",
  "description": "Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.",
  "title": "DB MCP Server",
  "repository": {
    "url": "https://github.com/stucchi/db-mcp-server",
    "source": "github"
  },
  "version": "1.2.1",
  "icons": [
    {
      "src": "https://raw.githubusercontent.com/stucchi/db-mcp-server/master/assets/icon.png",
      "mimeType": "image/png",
      "sizes": [
        "1024x1024"
      ]
    }
  ],
  "packages": [
    {
      "registryType": "pypi",
      "identifier": "db-mcp-server",
      "version": "1.2.1",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "Database type",
          "isRequired": true,
          "choices": [
            "mysql",
            "postgresql",
            "mongodb",
            "sqlite"
          ],
          "name": "DB_TYPE"
        },
        {
          "description": "Database name",
          "isRequired": true,
          "name": "DB_DATABASE"
        },
        {
          "description": "Access mode",
          "default": "read-only",
          "choices": [
            "read-only",
            "read-write"
          ],
          "name": "DB_MODE"
        },
        {
          "description": "Database host (MySQL/PostgreSQL)",
          "default": "localhost",
          "name": "DB_HOST"
        },
        {
          "description": "Database port (MySQL: 3306, PostgreSQL: 5432)",
          "format": "number",
          "name": "DB_PORT"
        },
        {
          "description": "Database user (MySQL default: root, PostgreSQL default: postgres)",
          "name": "DB_USER"
        },
        {
          "description": "Database password (MySQL/PostgreSQL, optional)",
          "isSecret": true,
          "name": "DB_PASSWORD"
        },
        {
          "description": "MongoDB connection URL (required for MongoDB, e.g. mongodb://...)",
          "isSecret": true,
          "name": "DB_URL"
        },
        {
          "description": "SSH bastion host for tunneling (MySQL/PostgreSQL only)",
          "name": "SSH_HOST"
        },
        {
          "description": "SSH port",
          "format": "number",
          "default": "22",
          "name": "SSH_PORT"
        },
        {
          "description": "SSH username (default: current OS user)",
          "name": "SSH_USER"
        },
        {
          "description": "Path to SSH private key (e.g. ~/.ssh/id_rsa)",
          "format": "filepath",
          "name": "SSH_KEY"
        },
        {
          "description": "SSH password (if no key provided)",
          "isSecret": true,
          "name": "SSH_PASSWORD"
        }
      ]
    }
  ]
}

权限

声明检测
运行代码—python
安装—pypi:db-mcp-server@1.2.1
安装时运行脚本—无
网络无无
需要的凭据DB_PASSWORDDB_URLSSH_PASSWORDDB_PASSWORDDB_URLSSH_PASSWORD
工作区外的路径—无
智能体工具—无

检查

低风险 · 没有发现需要提醒的地方。

未经人工审核 · 已做规则检查;模型审核尚未开启。

版本

  1. #11.2.1最新2026年10月7日