Skip to main content
Glama

PostgreSQL MCP Server

by sbfulfil

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTYesPostgreSQL database hostlocalhost
DB_NAMEYesYour PostgreSQL database name
DB_PORTYesPostgreSQL database port5432
DB_USERYesYour PostgreSQL username
DB_PASSWORDYesYour PostgreSQL password

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
list_tables

List all tables in the database with basic information

describe_table

Get detailed schema information for a specific table

get_table_relationships

Get foreign key relationships for a table

list_schemas

List all schemas in the database

get_indexes

Get indexes for a specific table

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/sbfulfil/pg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server