Multi-database MCP server for PostgreSQL, MySQL, and ClickHouse
{
"mcpServers": {
"db-connect-mcp": {
"env": {
"DATABASE_URL": "postgresql+asyncpg://user:pass@host:5432/mydb"
},
"args": [
"-m",
"db_connect_mcp"
],
"command": "python"
}
}
}Multi-database MCP server for PostgreSQL, MySQL, and ClickHouse
Is it safe?
No known CVEs for db-connect-mcp.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 5 days ago. 3 stars.
Will it work with my client?
Transport: stdio, http. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
Context cost
8 tools. ~500 tokens (0.3% of 200K).
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx db-connect-mcp 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
list_schemasList all schemas in the database
list_tablesList all tables in the database with metadata (size, row counts, comments)
describe_tableGet detailed column information, indexes, and constraints for a table
view_relationshipsUnderstand foreign key relationships between tables
profile_columnStatistical analysis of column data including count, unique values, nulls, numeric statistics, value frequency distribution, and cardinality analysis
sample_dataPreview table data with configurable limits
execute_queryExecute read-only SQL queries safely (SELECT and WITH queries only)
profile_databaseGet high-level database metrics and largest tables
This server is missing a description.If you've used it, help the community.
Add informationLast scanned 13h ago
No known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.