Skip to main content
Glama
Rabin0404

pg-mcp-bridge

by Rabin0404

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PG_MCP_TOKENYesSame bearer token as in server config.php
PG_MCP_TUNNEL_URLYesFull URL to pg_mcp_tunnel.php

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_schemasA

List non-system PostgreSQL schemas available through the remote tunnel

list_tablesA

List tables and views in a schema

describe_tableA

Describe columns, types, nullability, defaults, and primary key for a table

queryA

Run a single SQL statement. Allowed statements depend on server access_mode: readonly (SELECT/EXPLAIN/SHOW), readwrite (+ INSERT/UPDATE/DELETE), full (+ CREATE/ALTER/DROP and other DDL). Use ping to see the current access_mode. Only one statement per call.

pingA

Check tunnel and PostgreSQL connectivity; returns version, database, user, and access_mode (readonly|readwrite|full)

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

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