PostgreSQL MCP Server
Query and introspect PostgreSQL databases. Connection string is passed as an argument.
claude_desktop_config.json
{
"mcpServers": {
"server-postgres": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
]
}
}
} Setup Instructions
- Ensure Node.js 18+ is installed on your system.
-
Copy the config block above into your
claude_desktop_config.jsonfile (typically at~/.config/claude/claude_desktop_config.jsonon macOS/Linux or%APPDATA%\Claude\claude_desktop_config.jsonon Windows). - Restart your AI client to apply the config.