World Congress 2026 Europe - Virtual Stage

Plan to link your LLM to your production database? What could possibly go wrong?

June 30, 2026

What this session covers

TL;DR: LLMs are a powerful way to interact with databases, but can cause security risks. We link a LLM to a database via a MCP server and then build a table reservation assistant.

LLMs are a powerful way to interact with databases, but cause all sorts of security risks. Users can trick the LLM to read out data that shouldn’t be read or even worse trick the LLM to perform SQL insertion attacks that delete huge swaths of data. Not only does the risk come from the user, but anything the LLM reads from the database could contain a prompt injection attack. Clearly in such a threat environment, we need to ensure the database access is closely regulated.

Model Context Protocol (MCP) servers fill the need for cases like this, acting as a bridge and a gatekeeper, allowing the AI to access external tools such as databases while standardizing communication through a unified protocol. With an MCP server in place users can interact with the database in natural language, not with SELECT … FROM … like statements but through clearly defined whitelisted tools that ensure compliant database access. In this way, AI assistants are able to interact with the database, discovering interaction patterns, reading data and writing new entries.

In this hands-on tutorial, we will go through the process of setting up an MCP server for a Postgres database and demonstrate how to use the MCP server. Next, we’ll link the LLM with a simple streamlit webapp and show how it can be used by end users to quickly search and update the datbase.

All material to recreate what I’m demonstrating can be found here: https://gitlab.com/cseward/psql-mcp

Related talks at this congress

Open session

World Congress 2026 Europe - Virtual Stage

Command and Conquer: How we let an LLM control our Software

Simon A.T. Jiménez

create better software specifications in less time

Simon A.T. Jiménez
Open session

World Congress 2026 Europe - Virtual Stage

Why LLMs Need Observability and How to Do It

Rahul Gupta

Lead Engineer at Beroe Inc.

Rahul Gupta
Open session

World Congress 2026 Europe - Virtual Stage

Security in Model Context Protocol: An Analysis of the OWASP MCP Top 10

Jose Manuel Ortega

Software engineer & Security Researcher

Jose Manuel Ortega
Open session

World Congress 2026 Europe - Virtual Stage

Bridging AI and Nomad: a Go-based MCP Server for Cluster Control

Erik Koci

Devops Engineer at Amadeus

Erik Koci
All sessions at this congress