PostgreSQL MCP Server
by hovecapital
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_SSL | No | Enable SSL connection | false |
| DB_HOST | No | PostgreSQL server hostname | localhost |
| DB_PORT | No | PostgreSQL server port | 5432 |
| DB_DATABASE | No | Database name | postgres |
| DB_PASSWORD | No | PostgreSQL password | |
| DB_USERNAME | No | PostgreSQL username | postgres |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| connectA | Connect to a PostgreSQL database using a connection string. The connection will be used for subsequent queries until changed. |
| disconnectA | Disconnect from the current runtime database and revert to the default environment-configured connection |
| queryA | Run a read-only SQL query against the currently connected database |
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
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/hovecapital/read-only-local-postgres-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server