I open sourced a project I have been building on the side: a Go MCP server that connects Claude Code (or Cursor) directly to a live PostgreSQL database.
Repo: . I rebuilt it from scratch in Go so it ships as a single ~15 MB static binary. No Python runtime, no dependency chasing. docker build, point Claude Code at it, done.
Restricted mode wraps every call in a read only transaction, so write protection comes from Postgres itself, not string matching on the query text.
Where to look
The repo has the full setup instructions, the Docker config, and the test suite (unit, integration, and end to end against a real Postgres container with pg_stat_statements and hypopg). CI fails under 95% coverage.
If you spend real time in Claude Code or Cursor and also spend real time worrying about Postgres performance, take a look: and on dev.to if you want the architecture and testing details.
SOCIAL SHARE CARD GENERATOR