Building Real-Time, Data-Aware Intelligence With Postgres & Model...
summary
Demonstrates turning Postgres into a live reasoning engine via the Model Context Protocol and an open-source Postgres MCP server (PGAirman), using pg_catalog queries, EXPLAIN and tooling calls to enumerate schemas, object details and run optimized SQL; live demo shows ad hoc queries and a claimed 150× speedup by using EXPLAIN and filters, enforces MCP reader role read-only access, row-level security, audit logging and rate limits, and adds custom MCP tools to encode business logic when column names or comments are missing.
AI-written summary · about
chapters (26)
- 0:00Introduction and speaker background
- 1:01How it all started with real-time data
- 2:27Model Context Protocol explained
- 3:50Why LLMs hallucinate with SQL queries
- 5:13MCP primitives and tooling focus
- 6:16Postgres MCP server tools overview
- 8:00Query flow with MCP and Postgres
- 9:46Postgres catalog for metadata
- 11:10Optimizing queries with explain tool
- 12:33Guardrails for data security
- 14:40Setting up read-only access
- 15:23Bigger picture of MCP architecture
- 16:06Configuring MCP server in Cloud Desktop
- 17:04Live demo of listing tables
- 19:14Querying top customers by revenue
- 20:37Generating real-time charts
- 21:00Testing read-only constraints
- 21:46Verifying real-time data updates
- 22:29Handling missing column descriptions
- 24:15Building custom MCP servers
- 26:02Live demo of custom revenue server
- 27:28Fetching monthly revenue data
- 28:21Confirming real-time data freshness
- 29:03Comparison with other approaches
- 30:09Key takeaways and resources
- 32:00Q&A session
