DB Connect MCP
Read-only MCP access to PostgreSQL, MySQL, MariaDB, and ClickHouse for database exploration and SQL analysis.
Install DB Connect MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"db-connect-mcp": {
"command": "uvx",
"args": [
"db-connect-mcp"
],
"env": {
"DATABASE_URL": "YOUR_VALUE_HERE",
"ENABLE_PG_STAT_STATEMENTS": "YOUR_VALUE_HERE",
"DB_HYPOPG_ENABLED": "YOUR_VALUE_HERE",
"MCP_ALLOWED_HOSTS": "YOUR_VALUE_HERE",
"MCP_ALLOWED_ORIGINS": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.
Overview
Use cases
- Explore schemas and table relationships
- Profile columns and sample records
- Run bounded read-only SQL analysis
- Inspect query plans before tuning
- Connect to firewalled databases through SSH
Key features
- PostgreSQL, MySQL/MariaDB, and ClickHouse support
- Read-only SQL validation and result limits
- Schema, table, column, and relationship exploration
- Column statistics and data sampling
- SSH tunnel management
- Optional query-plan and hypothetical-index analysis
Tools4
What DB Connect MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 11d ago via OSV.dev · db-connect-mcp (PyPI)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How DB Connect MCP works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about DB Connect MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/db-connect-mcp)<a href="https://allmcps.com/mcp/db-connect-mcp"><img src="https://allmcps.com/api/badge/db-connect-mcp?style=directory" alt="DB Connect MCP on AllMCPs" /></a>