Databases & Spreadsheets · Last verified against vendor docs: 2026-11-29
PostgreSQL Global Development Group

PostgreSQL Automation, API & MCP Guide

PostgreSQL (v19.0 current as of Nov 2026) is an open-source relational database engine accessed over direct SQL/TCP wire protocol rather than a built-in HTTP REST API or native webhook dispatcher. The PostgreSQL project publishes no official MCP server, and the original MCP reference server (@modelcontextprotocol/server-postgres) is archived and unmaintained; operators instead use Google's MCP Toolbox for Databases or Postgres MCP Pro. Automation walls center on localhost TCP defaults, max_connections exhaustion (default 100), non-durable 8,000-byte NOTIFY payloads, external REST layering, and unauthenticated community HTTP MCP transports.

Official MCP
None
2 community/partner
API Style
SQL / Wire Protocol
3 auth methods
Native Webhooks
Not Native
Polling or middleware
Cited Walls
5
Across 9 vendor sources

Official vs. Community MCP Servers

First-party Model Context Protocol support verified against live vendor docs, plus notable community and partner MCP options.

Official Vendor MCP

No Official First-Party PostgreSQL MCP Server

None Published

As of 2026-11-29, PostgreSQL Global Development Group does not publish an official first-party MCP server for external AI clients.

Capabilities & Verification Notes

PostgreSQL Global Development Group publishes no official MCP server. The original MCP reference server (@modelcontextprotocol/server-postgres) was moved to modelcontextprotocol/servers-archived (MIT, archived) with an explicit security notice stating no security updates, bug fixes, or guarantees are provided.

Community & Third-Party MCP Servers

2
ServerMaintainerAccessOperator Notes
googleapis/mcp-toolbox (MCP Toolbox for Databases)PartnerRead & WriteLeading Apache-2.0 open-source database MCP server (17k+ stars, renamed from genai-toolbox) with prebuilt postgres tools, custom parameterized tools.yaml, connection pooling, IAM auth, and OpenTelemetry.
crystaldba/postgres-mcp (Postgres MCP Pro)CommunityRead & WriteActively maintained MIT-licensed Postgres MCP server (3.5k+ stars) offering configurable restricted/unrestricted SQL execution, EXPLAIN plans, index tuning, and DB health checks (stdio/HTTP/SSE; note HTTP/SSE transports ship with no built-in auth).

Native API Surface

Direct integration contract — auth methods, webhook delivery model, rate limits, and plan requirements.

Official API Docs
API Style
SQL / Wire Protocol (libpq over TCP; no native HTTP/REST API)Public API Available
Auth Methods
SCRAM-SHA-256 / Password Role AuthmTLS Client CertificatesCloud IAM Auth (AWS RDS / GCP Cloud SQL / Azure)
Native Webhooks
Not Natively Supported

PostgreSQL has no native outbound HTTP webhooks. Built-in LISTEN/NOTIFY is TCP session-bound pub/sub (<8,000-byte payload limit, not persisted if listener disconnects, incompatible with two-phase commit). Outbound HTTP webhooks require extensions (pg_net), a transactional outbox worker, or a managed wrapper like Supabase.

Rate Limits
No built-in API rate limits; throughput is bounded by host compute, IOPS, and max_connections (default 100 in vanilla Postgres, with 3 superuser connections reserved). Bursty serverless or iPaaS automations typically require external connection pooling (e.g., PgBouncer or RDS Proxy).
Plan Gate
Open-source PostgreSQL license (free, no vendor plan gates). Operational limits depend entirely on your self-hosted hardware or managed provider tier (RDS, Cloud SQL, Neon, Supabase).
Verified Operator Notes
To expose PostgreSQL over HTTP/REST for external tools, pair it with PostgREST (docs.postgrest.org), a custom API layer, or a managed BaaS. Current major release is PostgreSQL 19.0 (released Nov 19, 2026).

Zapier, Make & n8n Connector Matrix

Side-by-side status of native iPaaS connectors and workflow nodes for PostgreSQL.

Zapier

Official
Live Connector5 triggers · 2 actions

Official Zapier SQL connector verified live (5 polling triggers, 2 write actions, and 3 searches); requires public or allowlisted TCP access to PostgreSQL.

Make

Official
Live App

Official Make-maintained verified built-in app requiring direct TCP access plus read permissions on information_schema.routines and information_schema.parameters (exact module count is not published on Make's live integration page).

n8n

Official
Native Node Live

Official built-in Postgres node and Postgres Trigger node (https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.postgrestrigger/ using LISTEN/NOTIFY)—ideal for private-VPC self-hosted deployments.

Walls & Limits

5 cited

Hard operational walls, pricing gates, and API/MCP constraints that break naive automations in production.

Rate Limit

TCP-only defaults (localhost:5432) and max_connections ceiling (default 100)

PostgreSQL listens only on localhost TCP port 5432 by default (requiring listen_addresses changes for remote clients) and defaults max_connections to 100 (with 3 superuser connections reserved; raising it increases shared memory and requires a server restart), making unpooled automation bursts prone to connection exhaustion.

Source
Webhook Limit

LISTEN/NOTIFY caps payloads at <8,000 bytes, drops offline events, and defaults to an 8 GB queue

PostgreSQL NOTIFY payloads must stay shorter than 8,000 bytes, are delivered only to currently connected LISTEN sessions after commit (never persisted for disconnected listeners), cannot run inside two-phase commit, and fail subsequent NOTIFY commits if a long idle transaction fills the notification queue (8 GB default via configurable max_notify_queue_pages=1048576 at 8 KB pages, adjustable at server start).

Source
MCP Limit

No official Postgres MCP; original reference server is archived with no security updates

The widely referenced @modelcontextprotocol/server-postgres package is archived in modelcontextprotocol/servers-archived with an explicit notice that no security updates, bug fixes, or guarantees are provided; production teams must adopt maintained servers like googleapis/mcp-toolbox or crystaldba/postgres-mcp.

Source
API Limit

No native HTTP/REST API—external REST layers like PostgREST required

PostgreSQL speaks SQL over TCP rather than HTTP; teams needing RESTful endpoints for cloud tools or webhooks must deploy an external layer such as PostgREST, which converts database schemas into a REST API governed by PostgreSQL roles and row-level security.

Source
MCP Limit

Community HTTP/SSE Postgres MCP transports ship without built-in authentication

Popular community server Postgres MCP Pro (crystaldba/postgres-mcp) explicitly warns that its SSE and Streamable HTTP transports have no built-in authentication and must stay on trusted networks or behind an authenticating proxy alongside least-privilege DB roles.

Source

DOI Blueprints & AI Agents Using PostgreSQL

Tool-agnostic workflow blueprints and role-scoped agents mapped to PostgreSQL across Database.

Operations4 stepsAI

Answer emailed questions from approved guidelines

When a question arrives by email, it searches a library of approved guidelines kept current from a shared folder, has a model write a consistent answer, and replies to the sender.

U0200Inspect blueprint
Legal & Compliance12 stepsAI

Assess and track data-breach notifications

Logs suspected data-breach reports from a form, scores them against your risk factors with an AI review, sets the 72-hour notification deadline, alerts the privacy lead and posts daily deadline reminders.

U0206Inspect blueprint
Product & Engineering7 stepsAI

Assign unassigned issues by team workload

When issues are created or updated, finds unassigned ones, pulls the team roster and each member's open workload, and has AI pick the best assignee and update the issue.

N16121Inspect blueprint
Service Delivery8 stepsAI

Book and manage appointments over text message

Answers inbound texts with an AI scheduling assistant that checks availability and books, reschedules or cancels appointments, keeps each conversation on record, and opts out anyone who asks to stop.

N2342Inspect blueprint
Operations8 stepsAI

Brief reps before every booked sales call

When a sales meeting is booked, it pulls the contact and company record, adds enrichment data, has a model write a call prep brief, saves it, and sends it to the rep the day before.

U0017Inspect blueprint
Legal & Compliance10 stepsAI

Catch purchases that break contract terms

Each morning, compares recent purchases against active contract prices, service levels and volume terms, works out the money lost and how often it repeats, and has AI recommend corrective actions for each violation.

N20223Inspect blueprint
Service Delivery12 stepsAI

Chase clients until onboarding is complete

AI checks each new client's intake for missing information, sets up their record, checklist and folder, sends a tailored welcome, then keeps reminding the client until the onboarding checklist is done.

N20548Inspect blueprint
Legal & Compliance12 stepsAI

Check certified payroll against required wage rates

When a subcontractor submits certified payroll, checks pay against your required wage rates, logs compliant payroll, has AI draft a correction request for shortfalls and escalates ones past the grace period.

U0130Inspect blueprint

Frequently Asked Questions

Does PostgreSQL have an official MCP server?
No. The PostgreSQL Global Development Group does not maintain an official MCP server, and the original MCP reference server (@modelcontextprotocol/server-postgres) is archived with no security updates. Use actively maintained alternatives like Google's MCP Toolbox for Databases (googleapis/mcp-toolbox, Apache-2.0) or Postgres MCP Pro (crystaldba/postgres-mcp, MIT) scoped to least-privilege roles.
Does PostgreSQL have a REST API or native webhooks?
Not natively. PostgreSQL only speaks its TCP wire protocol (SQL/libpq) and session-bound LISTEN/NOTIFY pub/sub (<8,000-byte max, non-durable). To get HTTP REST endpoints or outbound webhooks, layer PostgREST, pg_net, a transactional outbox worker, or a managed wrapper like Supabase.
How do Zapier, Make, and n8n connect to PostgreSQL?
All three offer official Postgres connectors over direct TCP: Zapier exposes 5 polling triggers, 2 write actions, and 3 searches; Make provides a verified built-in app (requiring read access to information_schema.routines/parameters); and self-hosted n8n can sit inside your private VPC with a LISTEN/NOTIFY-backed Postgres Trigger node.
What is the biggest operational wall when automating PostgreSQL directly?
Direct TCP exposure and connection exhaustion: exposing port 5432 to cloud workflows without pooling quickly hits the default max_connections=100 ceiling, while native LISTEN/NOTIFY drops events for offline listeners, caps payloads at <8,000 bytes, and fails commits if long idle transactions fill the notification queue (8 GB by default via configurable max_notify_queue_pages).

Verified Sources

9 sources · Last verified against vendor docs: 2026-11-29
Vendor documentation cited for PostgreSQL (9 sources)
From Blueprint to Production

Ready to map or deploy PostgreSQL?

Use the free FDE App to map how your team actually runs and pinpoint where manual work costs the most time. Want done-for-you implementation? Work with 3rd Brain — a Founding Partner of Digital Operations Institute — to wire and maintain these automations and agents in your live stack.

Back to all verified tools