DBHubServer

bytebase
GitHub
databaseMCPuniversal gateway

Loading subscription status...

💡 Description

DBHub is a universal database gateway that implements the server interface of the Model Context Protocol (MCP). This gateway allows MCP-compatible clients to connect to and explore various databases.

📝 JSON Entries

{
  "mcpServers": [
    {
      "dbhub-postgres-docker": {
        "args": [
          "run",
          "-i",
          "--rm",
          "bytebase/dbhub",
          "--transport",
          "stdio",
          "--dsn",
          "postgres://user:password@localhost:5432/dbname?sslmode=disable"
        ],
        "command": "docker"
      }
    },
    {
      "dbhub-postgres-npx": {
        "args": [
          "-y",
          "@bytebase/dbhub",
          "--transport",
          "stdio",
          "--dsn",
          "postgres://user:password@localhost:5432/dbname?sslmode=disable"
        ],
        "command": "npx"
      }
    },
    {
      "dbhub-demo": {
        "args": [
          "-y",
          "@bytebase/dbhub",
          "--transport",
          "stdio",
          "--demo"
        ],
        "command": "npx"
      }
    }
  ]
}

🛠️ Tools

DockernpxClaude Desktop

Features

  • Supports connections to multiple database types
  • Read-only mode for safety
  • SSL connections for secure data transmission

💬 Example Queries

  • Explore tables in the database
  • Access schema information for a specific table
  • Execute read-only SQL queries with safety measures