I just published Postgres MCP Server in Go! Developer Akshay Gupta open-sourced Postgres MCP Server, a Go-based MCP server that connects AI coding assistants like Claude Code and Cursor directly to live PostgreSQL databases. The server exposes nine tools for query execution, performance analysis, and database health checks, shipping as a single ~15 MB static binary with no Python runtime required. 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: github.com/gupta-akshay/postgres-mcp https://github.com/gupta-akshay/postgres-mcp Most "AI plus database" workflows still look like this: copy SQL out of a chat window, paste it into a DB client, run it, copy the output back. It breaks flow, and the assistant never sees your actual schema, so it guesses. MCP fixes the connection problem. This server is what sits on the other end for Postgres. The server exposes nine tools over MCP: execute sql - run queries directly read only in restricted mode explain query - EXPLAIN ANALYZE, including against a hypothetical index get top queries - pull slow queries from pg stat statements hypopg analyze db health - vacuum, XID wraparound, replication lag, invalid indexes, and more, checked in parallelThat means you can ask "why is this query slow" and the assistant actually runs the EXPLAIN, checks the stats, and can simulate an index before anyone touches the schema. The project is inspired by the Python crystaldba/postgres-mcp https://github.com/crystaldba/postgres-mcp . 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. 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: github.com/gupta-akshay/postgres-mcp https://github.com/gupta-akshay/postgres-mcp I wrote up the build in more depth on my blog https://www.akshaygupta.live/blog/postgres-mcp-server and on dev.to https://dev.to/akshay gupta/postgres-mcp-in-go-giving-claude-code-a-live-line-to-your-database-1m7m if you want the architecture and testing details.