pgmcp
by sbamin
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PGMCP_DSN | No | libpq conninfo — `service=pgmcp_ro` or `postgresql://…` | service=pgmcp_ro |
| PGMCP_HOST | No | bind address | 127.0.0.1 |
| PGMCP_PORT | No | bind port | 8765 |
| PGMCP_ROW_CAP | No | max rows returned | 10000 |
| PGMCP_ALLOWED_HOSTS | No | DNS-rebinding allowlist | |
| PGMCP_ALLOWED_ORIGINS | No | Origin allowlists | |
| PGMCP_ALLOWED_SCHEMAS | Yes | comma list of queryable schemas (required) | |
| PGMCP_IDENTITY_HEADER | No | trusted identity header | X-Auth-User |
| PGMCP_SCHEMA_CONTRACT | No | path to a TOML schema-contract; asserted on boot | |
| PGMCP_INSTRUCTIONS_FILE | No | path to model instructions; overrides the default | |
| PGMCP_COST_GATED_SCHEMAS | No | subset that gets the EXPLAIN pre-gate | |
| PGMCP_EXPLAIN_COST_LIMIT | No | cost-gate ceiling | 100000000 |
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
- 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/sbamin/pgmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server