PG Connection Pool Query Gateway
by duylongpro99
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HOST | No | Bind host for HTTP server (default: 127.0.0.1). | |
| PORT | No | Port for HTTP server (default: 3080). | |
| TOKENS | No | Comma-separated list of token IDs (e.g., agent_ro,svc_rw). | |
| MCP_TOKEN | Yes | Secret of a configured token; the process runs with that token's capabilities. | |
| DATASOURCES | No | Comma-separated list of datasource names (e.g., main). | |
| DS_MAIN_SSL | No | SSL enabled for datasource 'main' (true/false). | |
| DATABASE_SSL | No | Fallback SSL setting. | |
| DS_MAIN_HOST | No | Host for datasource 'main'. | |
| DS_MAIN_PORT | No | Port for datasource 'main' (default: 5432). | |
| DS_MAIN_USER | No | User for datasource 'main'. | |
| DATABASE_HOST | No | Fallback host when no DS_* configured. | |
| DATABASE_NAME | No | Fallback database name. | |
| DATABASE_PORT | No | Fallback port. | |
| MCP_HTTP_HOST | No | Bind host for MCP HTTP transport (default: 127.0.0.1). | |
| MCP_HTTP_PORT | No | Port for MCP HTTP transport (default: 3081). | |
| MCP_TRANSPORT | No | Transport type: 'stdio' (default) or 'http'. | |
| DS_MAIN_DATABASE | No | Database name for datasource 'main'. | |
| DS_MAIN_PASSWORD | No | Password for datasource 'main'. | |
| MAX_ROWS_CEILING | No | Absolute row cap (default: 10000). | |
| ALLOW_PUBLIC_BIND | No | Set to 'true' to bind on non-loopback addresses. | |
| DATABASE_PASSWORD | No | Fallback password. | |
| DATABASE_USERNAME | No | Fallback user. | |
| TOKEN_SVC_RW_MODE | No | write mode for svc_rw token. | |
| HEALTH_CACHE_TTL_MS | No | Cache TTL for health checks (default: 5000). | |
| TOKEN_AGENT_RO_MODE | No | read or write (default: read). | |
| TOKEN_SVC_RW_SECRET | No | Secret for token ID svc_rw (adjust name accordingly). | |
| TOKEN_SVC_RW_SCHEMAS | No | Schemas for svc_rw token. | |
| TOKEN_AGENT_RO_SECRET | No | Secret for token ID agent_ro (adjust name accordingly for each token ID). | |
| DS_MAIN_DEFAULT_SCHEMA | No | Default schema for datasource 'main'. | |
| TOKEN_AGENT_RO_SCHEMAS | No | Comma-separated schema names or '*' for all (default: '*'). | |
| TOKEN_SVC_RW_DATASOURCES | No | Comma-separated datasource names. Adjust as needed. | |
| TOKEN_AGENT_RO_DATASOURCES | No | Comma-separated datasource names this token may use (default: all). | |
| DS_MAIN_STATEMENT_TIMEOUT_MS | No | Statement 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
| Name | Description |
|---|---|
No tools | |
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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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