Skip to main content
Glama
Mhdd-24

PgAdmin-MCP

by Mhdd-24

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PGHOSTNoHost of the PostgreSQL server (alternative direct connection).
PGUSERNoUser for the PostgreSQL server (alternative direct connection).
PGDATABASENoDatabase name for the PostgreSQL server (alternative direct connection).
PGPASSWORDNoPassword for the PostgreSQL server (alternative direct connection).
PG_PROFILENoDefault profile to use (dev, qa, or default). Optional when using profiles.dev
PG_QA_HOSTNoHost of the QA PostgreSQL server.
PG_QA_PORTNoPort of the QA PostgreSQL server (optional, defaults to 5432).
PG_QA_USERNoUser for the QA PostgreSQL server.
PG_DEV_HOSTNoHost of the dev PostgreSQL server.
PG_DEV_PORTNoPort of the dev PostgreSQL server (optional, defaults to 5432).
PG_DEV_USERNoUser for the dev PostgreSQL server.
PG_MAX_ROWSNoMaximum number of rows returned by queries.
DATABASE_URLNoPostgreSQL connection URL (e.g. postgres://user:pass@host:port/db).
PG_ALLOW_WRITENoSet to true to allow write operations (still subject to database user privileges).false
PG_QA_DATABASENoDatabase name for the QA PostgreSQL server.
PG_QA_PASSWORDNoPassword for the QA PostgreSQL server.
PG_DEV_DATABASENoDatabase name for the dev PostgreSQL server.
PG_DEV_PASSWORDNoPassword for the dev PostgreSQL server.
PG_QUERY_TIMEOUT_MSNoStatement timeout in milliseconds.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
pg_set_profileA

Set the sticky session connection profile to "dev" or "qa" (or "default"). Call when the user says pgprofile=dev, pgprofile=qa, use Dev DB, switch to QA, etc. Later tools reuse this profile automatically — no host/password in chat. Credentials are loaded from PG_DEV_* / PG_QA_* in mcp.json.

pg_statusA

Show current sticky PostgreSQL profile, host, database, write mode, and a live SELECT 1 health check. Optional profile arg for a one-shot check without changing the sticky session.

pg_list_databasesA

List databases on the active profile server (or optional one-shot profile=dev|qa).

pg_list_schemasA

List non-system schemas. Optional database and/or profile (dev|qa) override.

pg_list_tablesA

List tables/views for a schema (default public). Optional database and/or profile override.

pg_describe_tableA

Describe columns for a table or view. Optional schema, database, and/or profile override.

pg_queryA

Run SQL against the sticky session profile (or optional profile=dev|qa for one call). Read-only by default. Optional database name and maxRows. Do not ask the user for connection host/password — use profiles.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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/Mhdd-24/PgAdmin-MCP'

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