MCP PostgreSQL Server

by Maxim2324
Verified

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoServer port
DB_HOSTNoPostgreSQL database host
DB_NAMENoPostgreSQL database name
DB_PORTNoPostgreSQL database port
DB_USERNoPostgreSQL database username
DB_PASSWORDNoPostgreSQL database password
DATABASE_URLNoPostgreSQL connection string

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
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

ID: vaztx3bu73