Skip to main content
Glama
yugui923

db-connect-mcp

by yugui923

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSH_HOSTNoSSH bastion host address (required for SSH tunnel)
SSH_PORTNoSSH bastion port (default: 22)22
DATABASE_URLNoDatabase 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_PASSWORDNoSSH bastion password
SSH_USERNAMENoSSH bastion username (required for SSH tunnel)
SSH_PRIVATE_KEYNoSSH private key content as string (raw PEM or base64-encoded)
SSH_PRIVATE_KEY_PATHNoPath to SSH private key file

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 schema (and optionally table) to avoid the per-call table cap.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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