Connects Claude to PostgreSQL databases through the Model Context Protocol, letting you run queries and inspect schemas without leaving your conversation. This is Marcelo Ochoa's implementation, forked from the original reference server that's now archived. It gives you read access to your tables, views, and database structure, so you can ask questions about your data and get answers backed by actual SQL queries. Reach for this when you want to explore a Postgres database conversationally or need to prototype queries without switching to a SQL client. The stdio transport means it runs locally and connects directly to your database instance.
claude mcp add --transport stdio io.github.marcelo-ochoa-postgres -- npx -y @marcelo-ochoa/server-postgres