Skip to main content
Glama
johannschiffer

PgSafe MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATABASE_URLYesThe database connection URL, e.g. postgresql://user:password@localhost:5432/production_db or sqlite:///data/nexus.db

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_tablesB

List all public database tables available for inspection and querying.

describe_tableA

Retrieve column definitions, data types, nullability, and keys for a specific table.

safe_queryA

Execute a strictly read-only SQL query with automatic LIMIT enforcement and mutation blocking.

analyze_queryA

Analyze a SQL query for dangerous operations, unindexed scans, and Cartesian join risks without executing it.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: list_tables vs describe_table target different levels of schema introspection, while safe_query executes read-only queries and analyze_query performs static analysis without execution. There is no meaningful overlap that would cause misselection.

Naming Consistency4/5

All names use snake_case, which is consistent. However, safe_query deviates slightly from the dominant verb_noun pattern seen in list_tables, describe_table, and analyze_query by using an adjective_noun construction.

Tool Count5/5

Four tools is well-scoped for a read-only PostgreSQL safety server. Each tool covers a necessary capability: table discovery, schema inspection, safe execution, and query risk analysis.

Completeness4/5

The core read-only workflow is covered: discover tables, inspect their structure, query safely, and analyze query risk. Minor gaps exist, such as explicit schema/view listing or index introspection, but agents can work around these using safe_query against system catalogs.

Maintenance

ActivityMaintained
ResponsivenessNo issues