MCP Postgres server
Read-only SQL access for agents to query schemas and run safe, scoped database operations.
MCPmcpstableReviewed 2026-05-19
Hosting
LocalSelf-hosted
Setup snippet
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:pass@localhost/db"]
}
}
}Explained in Learn
Pairs well with
Tags