pg-mcp-server
by MugilarasuCS
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PG_HOST | No | PostgreSQL host | localhost |
| PG_PORT | No | PostgreSQL port | 5432 |
| PG_USER | No | PostgreSQL role | mcp_reader |
| MAX_ROWS | No | Max rows returned per query | 500 |
| PG_DATABASE | No | Target database | mcp_sample_db |
| PG_PASSWORD | Yes | Role password (required) | |
| OLLAMA_MODEL | No | Model name (llama3, mistral, gemma3, etc.) | llama3 |
| MCP_TRANSPORT | No | Transport mode: stdio or sse | stdio |
| ALLOWED_TABLES | No | Comma-separated table allow-list (empty = all) | |
| OLLAMA_TIMEOUT | No | HTTP timeout in seconds | 120 |
| ALLOWED_SCHEMAS | No | Comma-separated schema allow-list | public |
| OLLAMA_BASE_URL | No | Ollama server URL | http://localhost:11434 |
| MAX_QUERY_TIMEOUT | No | Statement timeout in seconds | 30 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
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 | |
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues