Connects Claude directly to PostgreSQL databases through the Model Context Protocol, exposing read and write operations via SQL queries. You get table schema inspection, sample data retrieval, and direct query execution against any Postgres instance. Configure with a standard DATABASE_URL connection string and optionally enable write operations. Built for data analysis workflows where you need Claude to examine table structures, run SELECT queries, or perform database operations without switching contexts. Supports both stdio and HTTP transports, includes Docker setup with sample data, and handles SSL connections for cloud databases like AWS RDS.
claude mcp add --transport stdio ericzakariasson-pg-mcp-server uvx pg-mcp-server