Overview
What is PostgreSQL?
PostgreSQL is Open-source relational database. Teams use it as part of their devtools stack, and this page tracks how it shows up for Model Context Protocol clients.
Community Postgres MCP servers are widely used.
Pasteable MCP configuration is available for Claude, Cursor, ChatGPT. Use the Config tabs above for the exact JSON your client expects, then complete OAuth or replace placeholders before connecting to production data.
Setup checklist: Point MCP at a local or staging database only. Use a read-only role when possible. Never connect production with write privileges casually.
Documentation & links
About PostgreSQL
Open-source relational database.
Community Postgres MCP servers are widely used.
Config
Add PostgreSQL to your MCP client using the configuration below. Tabs appear only for clients this app supports.
Config file%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"postgresql": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://USER:PASSWORD@localhost:5432/DBNAME"
]
}
}
}Paste into claude_desktop_config.json, then restart Claude Desktop.
Comments
Share tips, gotchas, or updates about connecting PostgreSQL. Guests can post too — no account required.
Loading comments…