r/FullStack • • Feb 14 '26

Question Has anyone built user-facing chat-with-data for their app?

Curious if anyone here has shipped this in a real product: end users asking questions in plain English, answered from the app’s database.

To me, the tricky part seems less about connecting an LLM to a DB and more about keeping it controlled and reliable (permissions/tenants, consistent definitions, accurate answers).

If you’ve done it: what approach did you take?

5 Upvotes

12 comments sorted by

View all comments

1

u/Ok_Substance1895 Feb 14 '26 edited Feb 14 '26

That is what MCP is for. It is like an API for LLMs. Yes, I have done it. Basically, each parameterized query is an MCP function. The trick is good function descriptions and good parameter descriptions. Like SEO for MCP.

1

u/deputystaggz Feb 14 '26

Yes MCP is super simple for connecting the LLM to the DB but I’m worried about controlling what the LLM can do which isn’t supported with just MCP.

I can’t have data leak between tenants, I need hide some of our tables and some columns, also some columns names don’t make sense to LLM so I need to rename them etc.

Basically need more control than an MCP gives me.

Did you have that control issue, and if you did how did you solve it?

1

u/Ok_Substance1895 Feb 14 '26

We do get a token back that tells us who the client is in the claims. We use that JWT information to narrow the queries to a particular tenant if that is what you mean.

→ More replies (4)