DB Connect MCP server
Multi-database MCP server for PostgreSQL, MySQL, and ClickHouse
6 stars68 downloads/wk
Reviews
Write oneNobody has reviewed DB Connect MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
DB Connect MCP tools (9, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
analyze_columnGet comprehensive column statistics including percentiles and distributions
describe_tableGet comprehensive table information including columns, indexes, and constraints
execute_querywrite actionExecute a read-only SQL query (SELECT, WITH, EXPLAIN)
explain_queryGet query execution plan to analyze performance
get_database_infoGet database information including version, size, and capabilities
get_table_relationshipsGet foreign key relationships for a table
list_schemasList all schemas/databases in the database instance
list_tablesList all tables and views in a schema
sample_dataSample data from a table efficiently
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan23 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 1 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Install DB Connect MCP in Claude Code, Cursor or VS Code
claude mcp add db-connect-mcp -- uvx db-connect-mcp
What the publisher says
From the DB Connect MCP repository's README, as published. We do not edit it. Read it on GitHub
db-connect-mcp - Multi-Database MCP Server
<!-- mcp-name: io.github.yugui923/db-connect-mcp -->
A read-only MCP (Model Context Protocol) server for exploratory data analysis across multiple database systems. This server provides safe, read-only access to PostgreSQL, MySQL, and ClickHouse databases with comprehensive analysis capabilities.
Demo
Quick Start
- Install:
pip install db-connect-mcp- Add to Claude Desktop claudedesktopconfig.json:
{
"mcpServers": {
"db-connect": {
"command": "python",
"args": ["-m", "db_connect_mcp"],
"env": {
"DATABASE_URL": "postgresql://user:pass@localhost:5432/mydb"
}
}
}
}- Restart Claude Desktop and start querying your database!
Note: Using python -m dbconnectmcp ensures the command works even if Python's Scripts directory isn't in your PATH.
Features
🗄️ Multi-Database Support
- PostgreSQL - Full support with advanced metadata and statistics
- MySQL - Complete support for MySQL and MariaDB databases
- ClickHouse - Support for analytical workloads and columnar storage
🔍 Database Exploration
- List schemas - View all schemas in the database
- List tables - See all tables with metadata (size, row counts, comments)
- Describe tables - Get detailed column information, indexes, and constraints
- View relationships - Understand foreign key relationships between tables
📊 Data Analysis
- Column profiling - Statistical analysis of column data
- Basic statistics (count, unique values, nulls)
- Numeric statistics (mean, median, std dev, quartiles)
- Value frequency distribution
- Cardinality analysis
- Data sampling - Preview table data with configurable limits
- Custom queries - Execute read-only SQL queries safely
- Object search - Find schemas, tables, views, columns, and indexes without loading the full catalog
- Query plans - Inspect estimated plans or opt into EXPLAIN ANALYZE where supported
🔒 Safety Features
- Read-only enforcement - All connections are read-only at multiple levels
- Query validation - Only SELECT and WITH queries are allowed
- Automatic limits - Queries are automatically limited to prevent large result sets
- Connection string safety - Automatically adds read-only parameters
- Database-specific safety - Each adapter implements appropriate safety measures
🔭 Observability
db-connect-mcp inherits the MCP SDK's built-in OpenTelemetry server instrumentation. The API is a no-op until the launching process configures an SDK and exporter. Review exporter sampling and redaction before production use, because database identifiers and error details may be sensitive.
💡 Best Practices
Tip: db-connect-mcp works best with databases that have proper comments on tables and columns. When your database includes descriptive comments, the MCP server can provide richer context to AI assistants, leading to better understanding of your data model and more accurate query suggestions.
Adding comments in PostgreSQL:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
DB Connect MCP: common questions
- Is DB Connect MCP server safe?
- Mostly: it is graded B (83/100). Read the DB Connect MCP safety report
- How do I install DB Connect MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does DB Connect MCP need an API key?
- Yes. The registry entry asks for
DATABASE_URL. - Is DB Connect MCP maintained?
- The last commit was 15 days ago (2026-09-28). The latest release is v0.3.1.
- What can I use instead of DB Connect MCP?
- Servers from other publishers that do the same job: DBHub MCP server, Dbmcp MCP server and ArcadeDB MCP Server. Compare all DB Connect MCP alternatives.
Alternatives to DB Connect MCP
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- DbmcpDatabase MCP server for MySQL, MariaDB, PostgreSQL & SQLite with PII redaction and write-preventionnot reviewedGrowingB
ArcadeDB MCP ServerBuilt-in MCP server for ArcadeDB multi-model database (graph, document, vector, time-series)not reviewedGrowingB- ArcadeDBMulti-Model database with built-in MCP server for SQL, Cypher, Gremlin, and GraphQL.not reviewedGrowingB
- HomespunDeploy a multi-user web app from your agent: hosting, auth, database, and permissions.not reviewedGrowingB