Skip to main content
Glama

MCP Postgres Server

by MadeByNando

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

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
query

Execute SQL queries with pagination support and parameterization for security. Supports page sizes up to 500 rows.

describe_table

Get the structure of a database table

list_tables

List all tables in a schema

get_constraints

Get constraints for a table

list_schemas

List all schemas in the database

list_indexes

List indexes for a table or schema

explain_query

Get query execution plan (EXPLAIN)

get_table_stats

Get table statistics and size information

list_views

List views in a schema

list_functions

List functions and procedures in a schema

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/MadeByNando/mcp-postgres-server'

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