DBHub

Give every AI assistant on your team safe, structured access to your databases through one small server. DBHub exposes just two tools by default, one to run SQL and one to search schemas, which costs about 1.4k tokens of context where alternatives load nearly 20k. Point Claude Code, Claude Desktop, Cursor, VS Code, or Copilot CLI at it and they can explore tables, columns, indexes, and procedures step by step, then run queries under read-only mode, row limits, and timeouts. Define several sources in one TOML file and DBHub serves PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, and SQLite side by side. Write custom tools for the queries you repeat, with typed parameters and allowed values, so models call a clean function instead of improvising SQL. Opt in to query plans and connection-pool health checks when you need them. A built-in workbench in the browser runs statements, fills in custom tool forms, and lists a trace of every recent request with timing and client. SSH tunnels and SSL reach databases behind bastion hosts, and a bearer token protects the HTTP endpoint. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

DBHub
DBHub
DBHub
DBHub
DBHub
DBHub

Benefits

  • Tiny Footprint, More Context
  • Only two tools load by default at about 1.4k tokens, so your model keeps its context window for real work instead of long tool descriptions.
  • One Server, Many Databases
  • Connect PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, and SQLite at once from a TOML file, and replace a separate MCP server for each database.
  • Guardrails For Production Data
  • Read-only mode, row caps, query timeouts, SSH tunneling, SSL, and an optional bearer token let teams point assistants at real data with confidence.
  • Test Tools Without A Client
  • The browser workbench runs SQL, fills custom tool parameters, and shows a request trace, so you can check behavior before connecting any assistant.

Features

  • Execute SQL Tool
  • Run queries with transaction support and safety controls, with results capped by a per-source row limit and flagged when truncated.
  • Progressive Schema Search
  • Search schemas, tables, columns, indexes, and procedures with progressive disclosure, so assistants fetch only the detail they need.
  • Custom Parameterized Tools
  • Define reusable SQL operations in TOML with typed parameters, defaults, and allowed values, then expose them to assistants as named tools.
  • Request Trace Page
  • Review recent requests per source with time, tool, SQL, result, duration, and client to see what assistants actually ran.
  • Opt-In Plan And Health
  • Enable explain_sql for execution plans without running the query, and health_check for pool state and cache hit ratio.
  • Per-Source Tool Settings
  • Set read-only mode, row limits, and timeouts separately for each database source in one configuration file.

Apps Similar to DBHub