PostgreSQL MCP Server
v0.14.3PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
npm (npx) verified
Requires Node.js 18+
Run in a terminal
claude mcp add postgres-mcp -- npx -y @yawlabs/postgres-mcp@0.14.3Add to
claude_desktop_config.json{
"mcpServers": {
"postgres-mcp": {
"args": [
"-y",
"@yawlabs/postgres-mcp@0.14.3"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"postgres-mcp": {
"args": [
"-y",
"@yawlabs/postgres-mcp@0.14.3"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"postgres-mcp": {
"args": [
"-y",
"@yawlabs/postgres-mcp@0.14.3"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.postgres-mcp]
command = "npx"
args = ["-y", "@yawlabs/postgres-mcp@0.14.3"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: pg_readonly, pg_query, pg_list_schemas, pg_list_tables, pg_describe_table, pg_list_views, pg_list_functions, pg_list_extensions, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json