An MCP for your Postgres DB | POSETTE: An Event for Postgres 2026

Pamela Fox presents her POSETTE 2026 talk on designing Model Context Protocol (MCP) servers for PostgreSQL, with a focus on how MCP tool design choices affect how reliably and safely LLMs translate user intent into SQL.

Overview

What MCP is (Model Context Protocol)

Demo: querying a database with a GitHub Copilot agent

MCP server design spectrum: exploratory vs operational

Common failure modes when LLMs interact with databases

Pamela Fox highlights several recurring problems that show up when LLMs generate or execute database queries:

Tool argument styles: free-form SQL vs structured inputs

The talk compares multiple approaches to MCP tool design for PostgreSQL:

Using elicitation to improve safety and success

Tool selection challenges (multiple tables or databases)

Video chapters