Install
$ npx @bytebase/dbhub@latest --transport http --port 8080 --dsn "postgres://user:password@localhost:5432/dbname"Start the DBHub MCP server first, then install the bundled Claude Code plugin from the repo (plugin/.claude-plugin/plugin.json).
Best for
Querying an unfamiliar production-shaped schema, where the agent guessing table and column names is the failure you are trying to prevent.
Not ideal for
Setups without MCP. It requires the DBHub MCP server plus a DSN, and it can execute SQL — so scope the connection to a read-only role unless writes are the point.
About this skill
Guide for querying databases through the DBHub MCP server. Use whenever you need to explore database schemas, inspect tables, or run SQL queries via DBHub tools (search_objects, execute_sql, and the opt-in explain_sql and health_check). Activates on any database query task, schema exploration, data retrieval, or SQL execution through MCP — even if the user just says "check the database" or "find me some data". Ensures the correct explore-first workflow instead of guessing table structures.
Score breakdown
Score breakdown
rubric 1.0Composite 0–100 score derived from 9 verifiable signals. See the rubric →
Related skills
PlanetScale's schema branching and index-aware queries, packaged for agents.
Supabase done right. RLS policies, edge functions, realtime, auth — in idiomatic patterns.
Prisma migrations and queries by the book. Index-aware, migration-safe, type-correct.