pg-readonly-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_DB_DSN | No | Connection string for the SELECT-only role | |
| DATABASE_URL | No | Alternative connection string for the SELECT-only role | |
| MCP_DB_POOL_MAX | No | Connection pool maximum size | 4 |
| MCP_DB_POOL_MIN | No | Connection pool minimum size | 1 |
| MCP_DB_MAX_BYTES | No | Response byte cap (hard max 524288) | 65536 |
| MCP_DB_CONNECT_TIMEOUT_S | No | Connection timeout in seconds | 10 |
| MCP_DB_STATEMENT_TIMEOUT_MS | No | Per-statement timeout in milliseconds | 5000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_schemasA | List schemas the connected read-only role can access. |
| list_tablesA | List tables and views in Returns columns=[name, row_estimate, comment, kind]. |
| describe_tableA | Describe a table: columns, types, nullability, primary key, FKs, indexes. Columns come back flat as |
| sample_tableA | Return the first |
| run_queryA | Run a single read-only SELECT and return a bounded, columnar result. Accepts one statement of any read-only shape: The query is wrapped in Performance note: plain |
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/MadlyFriese/pg-readonly-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server