From dbhub
Connects DBHub to PostgreSQL, MySQL, SQLite, or SQL Server; fixes failing connections, changes DSN, grants write access, and configures multiple databases.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dbhub:setupThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The database connection string (DSN) is entered in the plugin's configuration dialog and stored in Claude Code's secure storage. This plugin is read-only and caps results at 1000 rows.
The database connection string (DSN) is entered in the plugin's configuration dialog and stored in Claude Code's secure storage. This plugin is read-only and caps results at 1000 rows.
Help the user build their DSN if they don't have one:
postgres://user:password@localhost:5432/dbnamemysql://user:password@localhost:3306/dbnamemariadb://user:password@localhost:3306/dbnamesqlserver://user:password@localhost:1433/dbnamesqlite:///absolute/path/to/database.db (no credentials)Append ?sslmode=require for SSL (sslmode=disable for local databases). URL-encode special characters in the password. Recommend a least-privilege, read-only database account. Full DSN options (SQL Server named instances/NTLM, PostgreSQL cert verification): https://dbhub.ai/installation
Point them at the config dialog: run /plugin, open dbhub → configuration, and set the connection string there. The user should not paste the password into the chat.
Reconnect: run /mcp and reconnect the dbhub server (or restart Claude Code).
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"setup-check","version":"0"}}}' | DBHUB_DSN='<dsn>' npx -y @bytebase/dbhub@latest --transport stdio --config <plugin-root>/dbhub.toml
A JSON initialize response means the config parsed and the server started; a connection error points at host/port/credentials/SSL.sslmode, un-encoded special characters in the password, a SQLite path that isn't absolute.sh: dbhub: command not found, the npx cache entry is corrupted (concurrent npx runs can race during install). Find and remove the entry for @bytebase/dbhub under ~/.npm/_npx/*/package.json, then reconnect — npx will reinstall it cleanly.node --version).The plugin covers one database, read-only. For write access, multiple databases, SSH tunnels, or custom tools, register DBHub directly with your own TOML config:
claude mcp add dbhub -- npx -y @bytebase/dbhub@latest --transport stdio --config /path/to/dbhub.toml
Offer to write that TOML for the user — format reference: https://dbhub.ai/config/toml. Suggest disabling this plugin's server afterwards to avoid two overlapping DBHub instances.
npx claudepluginhub bytebase/dbhub --plugin dbhubProvisions instant temporary Postgres databases via Neon's Claimable Postgres (neon.new) with no signup. Supports REST API, CLI, SDK. Use when users need a quick test database.
Manages persistent PostgreSQL databases via Ghost — spin up, fork, share, and pass database snapshots between agents. Useful for agent workflows needing on-demand Postgres.
Connects to SQL and NoSQL databases (PostgreSQL, MySQL, SQLite, MongoDB, Redis) to run queries, manage schemas, export/import data, and perform backup/restore operations.