← Back to Plugins
MCP Server MCP

DBHub

github By github 👁 1 views ▲ 0 votes

Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB

Homepage Verified source GitHub

Install

npx -y @bytebase/[email protected]

Configuration Example

{
  "remotes": [],
  "packages": [
    {
      "registryType": "npm",
      "identifier": "@bytebase/dbhub",
      "version": "1.2.1",
      "transport": {
        "type": "stdio"
      },
      "environmentVariables": [
        {
          "description": "Database connection string (e.g., postgres://user:pass@host:5432/db)",
          "format": "string",
          "isSecret": true,
          "name": "DSN"
        },
        {
          "description": "Database type: postgres, mysql, mariadb, sqlserver, sqlite",
          "format": "string",
          "name": "DB_TYPE"
        },
        {
          "description": "Database hostname",
          "format": "string",
          "name": "DB_HOST"
        },
        {
          "description": "Database port",
          "format": "number",
          "name": "DB_PORT"
        },
        {
          "description": "Database username",
          "format": "string",
          "name": "DB_USER"
        },
        {
          "description": "Database password",
          "format": "string",
          "isSecret": true,
          "name": "DB_PASSWORD"
        },
        {
          "description": "Database name or SQLite file path",
          "format": "string",
          "name": "DB_NAME"
        },
        {
          "description": "Transport mode: stdio or http",
          "format": "string",
          "name": "TRANSPORT"
        },
        {
          "description": "HTTP server port (default: 8080)",
          "format": "number",
          "name": "PORT"
        },
        {
          "description": "Instance identifier for tool names",
          "format": "string",
          "name": "ID"
        },
        {
          "description": "SSH server hostname",
          "format": "string",
          "name": "SSH_HOST"
        },
        {
          "description": "SSH server port (default: 22)",
          "format": "number",
          "name": "SSH_PORT"
        },
        {
          "description": "SSH username",
          "format": "string",
          "name": "SSH_USER"
        },
        {
          "description": "SSH password",
          "format": "string",
          "isSecret": true,
          "name": "SSH_PASSWORD"
        },
        {
          "description": "Path to SSH private key",
          "format": "string",
          "name": "SSH_KEY"
        },
        {
          "description": "SSH key passphrase",
          "format": "string",
          "isSecret": true,
          "name": "SSH_PASSPHRASE"
        }
      ]
    }
  ]
}
mcp model-context-protocol npm

Comments

Sign in to leave a comment

Loading comments...