Skip to main content
Glama
SecretX33

postgres-ssh-mcp

by SecretX33

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_SSLNoSet to 'true' to enable TLS for the database connectionfalse
DB_HOSTYesPostgres host or RDS endpoint
DB_NAMEYesDatabase name
DB_PORTNoPostgres port5432
DB_USERYesDatabase user
SSH_HOSTNoSSH config alias (reads ~/.ssh/config)
SSH_PORTNoSSH port22
SSH_USERNoSSH login user
DB_SSL_CANoPath to a custom CA certificate file (PEM) for SSL verification
DB_MAX_ROWSNoMaximum rows returned per query1000
DB_PASSWORDYesDatabase password
DB_READ_ONLYNoSet to 'false' to allow write queriestrue
SSH_HOSTNAMENoBastion hostname or IP
SSH_PASSWORDNoSSH password (alternative to key-based auth)
ALLOWED_TOOLSNoComma-separated list of tools to register. When unset, all tools are available.
SSH_IDENTITY_FILENoAbsolute path or ~/... to private key file
SSH_KEY_PASSPHRASENoPassphrase for an encrypted private key
DB_QUERY_TIMEOUT_MSNoMilliseconds before a query is forcibly cancelled15000
SSH_KNOWN_HOSTS_PATHNoPath to custom known_hosts file
SSH_TRUST_ON_FIRST_USENoAuto-accept and save unknown SSH host keys on first connectiontrue
DB_CONNECTION_POOL_SIZENoMaximum number of connections in the pool5
SSH_KEEPALIVE_COUNT_MAXNoMax unanswered keepalive probes before dropping the connection3
DB_CONNECTION_TIMEOUT_MSNoMilliseconds to wait for a connection from the pool10000
DB_POOL_DRAIN_TIMEOUT_MSNoMilliseconds to wait for old pool to drain during reconnection (0 to never wait)5000
SSH_KEEPALIVE_INTERVAL_MSNoMilliseconds between SSH keepalive probes (if set: minimum 1000)
DB_SSL_REJECT_UNAUTHORIZEDNoSet to 'false' to skip SSL certificate validation (insecure)true
SSH_MAX_RECONNECT_ATTEMPTSNoMax SSH reconnection attempts (-1 for unlimited, 0 to disable)5
SSH_STRICT_HOST_KEY_CHECKINGNoEnables or disables strict host checkingtrue

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/SecretX33/postgres-ssh-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server