db-connect-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SSH_HOST | No | SSH bastion host address (required for SSH tunnel) | |
| SSH_PORT | No | SSH bastion port (default: 22) | 22 |
| DATABASE_URL | No | Database connection URL (required). Supports PostgreSQL, MySQL, and ClickHouse. Examples: postgresql://user:pass@host:5432/db, mysql://user:pass@host:3306/db, clickhouse://default:@host:9000/default | |
| SSH_PASSWORD | No | SSH bastion password | |
| SSH_USERNAME | No | SSH bastion username (required for SSH tunnel) | |
| SSH_PRIVATE_KEY | No | SSH private key content as string (raw PEM or base64-encoded) | |
| SSH_PRIVATE_KEY_PATH | No | Path to SSH private key file |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_database_infoA | Get database information including version, size, and capabilities |
| list_schemasA | List all schemas/databases in the database instance |
| list_tablesB | List all tables and views in a schema |
| describe_tableC | Get comprehensive table information including columns, indexes, and constraints |
| execute_queryA | Execute a read-only SQL query (SELECT, WITH, EXPLAIN) |
| sample_dataC | Sample data from a table efficiently |
| search_objectsA | Search and explore database objects (schemas, tables, views, columns, indexes) with progressive disclosure for token efficiency. Use SQL LIKE pattern (% matches any sequence, _ matches one character) to match names. Three detail levels: 'names' (most token-efficient), 'summary' (default, key metadata), 'full' (includes comments and full type info). For column/index search, narrow with |
| get_table_relationshipsB | Get foreign key relationships for a table |
| analyze_columnB | Get comprehensive column statistics including percentiles and distributions |
| explain_queryB | Get query execution plan to analyze performance |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yugui923/db-connect-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server