Skip to main content
Glama
duylongpro99

PG Connection Pool Query Gateway

by duylongpro99

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoBind host for HTTP server (default: 127.0.0.1).
PORTNoPort for HTTP server (default: 3080).
TOKENSNoComma-separated list of token IDs (e.g., agent_ro,svc_rw).
MCP_TOKENYesSecret of a configured token; the process runs with that token's capabilities.
DATASOURCESNoComma-separated list of datasource names (e.g., main).
DS_MAIN_SSLNoSSL enabled for datasource 'main' (true/false).
DATABASE_SSLNoFallback SSL setting.
DS_MAIN_HOSTNoHost for datasource 'main'.
DS_MAIN_PORTNoPort for datasource 'main' (default: 5432).
DS_MAIN_USERNoUser for datasource 'main'.
DATABASE_HOSTNoFallback host when no DS_* configured.
DATABASE_NAMENoFallback database name.
DATABASE_PORTNoFallback port.
MCP_HTTP_HOSTNoBind host for MCP HTTP transport (default: 127.0.0.1).
MCP_HTTP_PORTNoPort for MCP HTTP transport (default: 3081).
MCP_TRANSPORTNoTransport type: 'stdio' (default) or 'http'.
DS_MAIN_DATABASENoDatabase name for datasource 'main'.
DS_MAIN_PASSWORDNoPassword for datasource 'main'.
MAX_ROWS_CEILINGNoAbsolute row cap (default: 10000).
ALLOW_PUBLIC_BINDNoSet to 'true' to bind on non-loopback addresses.
DATABASE_PASSWORDNoFallback password.
DATABASE_USERNAMENoFallback user.
TOKEN_SVC_RW_MODENowrite mode for svc_rw token.
HEALTH_CACHE_TTL_MSNoCache TTL for health checks (default: 5000).
TOKEN_AGENT_RO_MODENoread or write (default: read).
TOKEN_SVC_RW_SECRETNoSecret for token ID svc_rw (adjust name accordingly).
TOKEN_SVC_RW_SCHEMASNoSchemas for svc_rw token.
TOKEN_AGENT_RO_SECRETNoSecret for token ID agent_ro (adjust name accordingly for each token ID).
DS_MAIN_DEFAULT_SCHEMANoDefault schema for datasource 'main'.
TOKEN_AGENT_RO_SCHEMASNoComma-separated schema names or '*' for all (default: '*').
TOKEN_SVC_RW_DATASOURCESNoComma-separated datasource names. Adjust as needed.
TOKEN_AGENT_RO_DATASOURCESNoComma-separated datasource names this token may use (default: all).
DS_MAIN_STATEMENT_TIMEOUT_MSNoStatement timeout in ms for datasource 'main' (default: 10000).

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/duylongpro99/db-query-mcp'

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