MCP PostgreSQL Server
by antonorlov
Verified
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
PG_HOST | Yes | PostgreSQL database host | |
PG_PORT | No | PostgreSQL database port | 5432 |
PG_USER | Yes | PostgreSQL database user | |
PG_DATABASE | Yes | PostgreSQL database name | |
PG_PASSWORD | Yes | PostgreSQL database password |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
connect_db | Connect to PostgreSQL database. NOTE: Default connection exists - only use when requested or if other commands fail |
query | Execute a SELECT query |
execute | Execute an INSERT, UPDATE, or DELETE query |
list_tables | List all tables in the database |
describe_table | Get table structure |