PostgreSQL MCP
A general-purpose PostgreSQL MCP server with full read-write SQL access, atomic multi-statement transactions, and schema inspection. Works with any PostgreSQL instance — local, Supabase, AWS RDS, or self-hosted — and connects to Claude, Cursor, Winds
What is PostgreSQL MCP?
PostgreSQL MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to general-purpose postgresql mcp server with full read-write sql access, atomic multi-statement transactions, and schema inspection. works with any postgresql instance — local, supabase, aws rds, or sel...
A general-purpose PostgreSQL MCP server with full read-write SQL access, atomic multi-statement transactions, and schema inspection. Works with any PostgreSQL instance — local, Supabase, AWS RDS, or self-hosted — and connects to Claude, Cursor, Winds
This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A general-purpose PostgreSQL MCP server with full read-write
Use Cases
Maintainer
Works with
Installation
NPM
npx -y postgresqlManual Installation
npx -y postgresqlConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
Frequently Asked Questions about PostgreSQL MCP
What is PostgreSQL MCP?
PostgreSQL MCP is a Model Context Protocol (MCP) server that general-purpose postgresql mcp server with full read-write sql access, atomic multi-statement transactions, and schema inspection. works with any postgresql instance — local, supabase, aws rds, or self-hosted — and connects to claude, cursor, winds It connects AI assistants to external tools and data sources through a standardized interface.
How do I install PostgreSQL MCP?
Install via npm with the command: npx -y postgresql. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with PostgreSQL MCP?
PostgreSQL MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is PostgreSQL MCP free to use?
Yes, PostgreSQL MCP is open source and available under the ISC License license. You can use it freely in both personal and commercial projects.
PostgreSQL MCP Alternatives — Similar Databases Servers
Looking for alternatives to PostgreSQL MCP? Here are other popular databases servers you can use with Claude, Cursor, and VS Code.
Excelize
★ 20.6kGo language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
MCP Toolbox for Databases
★ 15.3kOpen source MCP server specializing in easy, fast, and secure tools for Databases.
DBHub
★ 2.8kA universal database gateway MCP server that enables AI assistants to connect to and query multiple databases (PostgreSQL, MySQL, MariaDB, SQL Server, SQLite) with support for schema exploration, SQL execution, and secure connections via SSH tunnels.
Tabularis
★ 2.1kA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
Postgres AI Guide
★ 1.7kMCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
Anyquery
★ 1.7k🏎️ 🏠 ☁️ - Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.
Browse More Databases MCP Servers
Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up PostgreSQL MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use PostgreSQL MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.