Skip to main content
Glama
alliance-genome

agr_postgres_mcp

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PG_HOSTYesPostgreSQL hostname
PG_PORTNoDatabase port5432
PG_USERNoDatabase usernamepostgres
PSQL_PATHNoFull path to the psql binary
PG_DATABASEYesDatabase name
PG_PASSWORDYesDatabase password
PG_SERVER_NAMENoMCP server namepostgres

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
queryB

Execute a SQL query against the PostgreSQL database. Returns the query results as text. Use LIMIT clauses on exploratory queries.

list_tablesB

List all tables in the database with their schema, name, type, and owner.

describe_tableA

Describe a table's columns, types, constraints, and indexes. Equivalent to psql \d+ command.

list_indexesB

List all indexes in the database, optionally filtered by table name.

table_sizesA

Show table sizes including data, indexes, and total. Sorted by total size descending.

table_statsA

Show table statistics including live/dead tuples, last vacuum/analyze times.

active_connectionsA

Show active database connections with their state, query, and duration.

locksA

Show current locks in the database with blocking information.

explainA

Show the query execution plan for a SQL query using EXPLAIN. Does not execute the query.

database_sizeA

Show the total database size and individual table sizes.

row_countsA

Show estimated row counts for all tables, sorted by count descending.

foreign_keysA

List foreign key constraints, optionally filtered by table.

index_usageA

Show index usage statistics to identify unused or rarely used indexes.

schema_searchB

Search for tables or columns matching a pattern. Useful for finding tables by name.

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/alliance-genome/agr_postgres_mcp'

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