Query and manage PostgreSQL databases securely via Model Context Protocol.
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://user:password@localhost/dbname"]
}
}
}
Copy this configuration and paste it into your claude_desktop_config.json or Cursor settings.