Install PostgreSQL in Claude Code
claude mcp add yawlabs-postgresql -- npx -y @yawlabs/postgres-mcp{
"mcpServers": {
"yawlabs-postgresql": {
"command": "npx",
"args": [
"-y",
"@yawlabs/postgres-mcp"
]
}
}
}Frequently asked questions
What does the PostgreSQL MCP server do?
PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
Is the PostgreSQL MCP server free?
Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.
Does PostgreSQL run locally or remotely?
Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.
How do I add PostgreSQL to Claude Code?
Run: claude mcp add yawlabs-postgresql -- npx -y @yawlabs/postgres-mcp
More databases MCP servers
View allZoteroBridge
Combjellyshen/ZoteroBridge
MCP Server for Zotero SQLite Database - collection, tagging, PDF reading and more.
Palace
AncientiCe/palace-rs
Local-first memory for coding agents — MCP server, single SQLite file, local embeddings
Val Town
val-town/plugins
Deploy serverless TypeScript on Val Town: HTTP vals, cron, SQLite, email, OAuth.
dbmole
ed-smartass/dbmole-mcp
PostgreSQL and MySQL with connections managed at runtime by the agent, SSH tunnels, readonly.
iz-tolk
izzzzzi/izTolkMcp
Compile, syntax-check and generate deployment deeplinks for TON smart contracts with the Tolk compiler.
Chassis
dvd90/chassis
Scaffold an Express 5 + TypeScript backend: database, auth, optional Next.js front end.