Most database MCP servers share one connection string — an engineer adds per-query authorization

Then_Respect_1964 · reddit · 2026-10-17

The author notes that most database MCP servers use one connection string for every query the agent runs — whatever that login can do, the agent can do. Fine for demos, but risky for ad-hoc analytics or debugging agents that end up with far more access than any single task needs.

His solution, built earlier this year, puts an authorization layer between MCP tools and the database:

He documented the whole design, including gaps he found in his own approach, and asks the community: are you scoping access per agent or just using a read-only login?

Related event: Devs add per-query authorization layer for database MCP agents(2 posts)→

Original post →

More from coding & agent

coding & agent channel →