index.mdx•3.6 kB
---
title: "Introduction"
---
<img
className="block dark:hidden"
src="/images/logo/full-light.svg"
/>
<img
className="hidden dark:block"
src="/images/logo/full-dark.svg"
/>
DBHub is a universal database gateway that implements the MCP (Model Context Protocol) server interface. It enables AI-powered tools like Claude Desktop, Claude Code, Cursor, and VS Code Copilot to securely connect to and interact with your databases.
```
+------------------+ +--------------+ +------------------+
| | | | | |
| | | | | |
| Claude Desktop +--->+ +--->+ PostgreSQL |
| | | | | |
| Claude Code +--->+ +--->+ SQL Server |
| | | | | |
| Cursor +--->+ DBHub +--->+ SQLite |
| | | | | |
| VS Code +--->+ +--->+ MySQL |
| | | | | |
| Other Clients +--->+ +--->+ MariaDB |
| | | | | |
| | | | | |
+------------------+ +--------------+ +------------------+
MCP Clients MCP Server Databases
```
## Supported Databases
PostgreSQL, MySQL, SQL Server, MariaDB, and SQLite.
## Why DBHub?
DBHub brings powerful database capabilities to AI coding assistants:
- **Universal Gateway**: Single interface for PostgreSQL, MySQL, MariaDB, SQL Server, and SQLite
- **Secure Access**: Read-only mode, SSH tunneling, and SSL/TLS encryption support
- **Multi-Database**: Connect to multiple databases simultaneously with TOML configuration
- **Production-Ready**: Row limiting, lock timeout control, and connection pooling
- **MCP Native**: Full implementation of Model Context Protocol with resources, tools, and prompts
## Key Features
### Database Exploration
AI assistants can discover and explore your database schema:
- List schemas, tables, and columns
- View table structures and relationships
- Inspect indexes and stored procedures
- Understand database constraints
### SQL Execution
Execute SQL queries directly from AI tools:
- Run SELECT queries for data analysis
- Execute DDL/DML in read-write mode
- Support for parameterized queries
- Multi-statement execution with transaction support
### AI-Powered Prompts
Built-in prompts help AI assistants:
- Generate optimized SQL queries
- Explain database elements and relationships
- Suggest schema improvements
- Debug complex queries
### Security Features
- **Read-only Mode**: Restrict operations to SELECT queries only
- **SSH Tunneling**: Secure connections through bastion hosts
- **SSL/TLS**: Encrypted database connections
- **Row Limiting**: Prevent accidental large data retrieval
### Admin Console
Monitor and manage your database connections through the built-in admin console:
- View all configured data sources
- Track recent SQL requests
<img
src="/images/console.webp"
alt="DBHub Admin Console"
/>
## Getting Started
<CardGroup cols={2}>
<Card title="Installation" icon="download" href="/installation">
Install DBHub using Docker, NPM, or pre-built binaries
</Card>
<Card title="Quickstart" icon="rocket" href="/quickstart">
Get DBHub running with your first database connection
</Card>
</CardGroup>