Skip to main content
Claude Desktop with DBHub
  • MacOS/Linux
  • Windows
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub",
        "--transport",
        "stdio",
        "--dsn",
        "postgres://user:password@localhost:5432/dbname"
      ]
    }
  }
}

Demo Mode

For testing, you can use the built-in demo database:
{
  "mcpServers": {
    "dbhub": {
      "command": "npx",
      "args": [
        "@bytebase/dbhub",
        "--transport",
        "stdio",
        "--demo"
      ]
    }
  }
}

Troubleshooting

  • Verify your DSN connection string is correct
  • Check that the database is accessible from your machine
  • Review Claude Desktop logs: ~/Library/Logs/Claude/mcp*.log (MacOS)