PostgreSQL MCP Server
CommunityMCP server by YawLabs · updated · ★ 8 · 1.3k downloads a week
PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants PostgreSQL MCP Server is a community project by YawLabs, not verified by a company domain.
Last commit 5 days ago
MIT: permissive, fine for commercial use
Clear description, published package or server URL, original repository
Not checked yet. What we check
Install PostgreSQL MCP Server
Built from the published package, never by AIclaude mcp add postgresql-mcp-server -- npx -y @yawlabs/postgres-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"postgresql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@yawlabs/postgres-mcp"
]
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
Step-by-step: install PostgreSQL MCP Server in Claude Desktop
{
"mcpServers": {
"postgresql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@yawlabs/postgres-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"postgresql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@yawlabs/postgres-mcp"
]
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add postgresql-mcp-server -- npx -y @yawlabs/postgres-mcp{
"mcpServers": {
"postgresql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@yawlabs/postgres-mcp"
]
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install PostgreSQL MCP Server in Antigravity CLI
gemini mcp add postgresql-mcp-server npx -y @yawlabs/postgres-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the postgresql-mcp-server block.
Alternatives to PostgreSQL MCP Server
All alternatives →MCP server for interacting with the Supabase platform
Self-learning vector database for Node.js — hybrid search, Graph RAG, FlashAttention-3, HNSW, 50+ attention mechanisms
MCP Toolbox for Databases enables your agent to connect to your database.
Shared proxy-aware fetch and httpClient factory for the MongoDB MCP server
Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.
WhoDB CLI - database management tool with TUI, programmatic commands, and MCP server
PostgreSQL MCP Server: common questions
How do I install PostgreSQL MCP Server?
In Claude Code run claude mcp add postgresql-mcp-server -- npx -y @yawlabs/postgres-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is PostgreSQL MCP Server the official server?
PostgreSQL MCP Server is a community project by YawLabs, not verified by a company domain.
Is PostgreSQL MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is PostgreSQL MCP Server safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality C. The security check has not run for it yet. Review the code before you install. How grades work.
What are alternatives to PostgreSQL MCP Server?
Similar MCP servers: Supabase, Ruvector, MCP Toolbox for Databases, MCP Fetch.
Does PostgreSQL MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
