Install to ToolCloud
One click. No local setup. Works with any MCP client.
Connect to PostgreSQL databases. Read-only access with schema inspection and query execution. Supports connection strings.
databasepostgresqlread-onlysql
Manual Installation
Claude Code
claude mcp add postgres -- npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydbCursor / Windsurf / VS Code Copilot / Claude Desktop
Add to your MCP config file:
{
"mcpServers": {
"postgres": {
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
],
"command": "npx"
}
}
}