An MCP (Model Context Protocol) server for PostgreSQL with both read and write capabilities, extending Anthropic's read-only server. Version 1.0.1. It enables LLMs to inspect database schemas, execute queries, modify data, and manage schema objects (tables, functions, triggers, indexes). Differentiators: adds write operations (INSERT/UPDATE/DELETE) and schema management (CREATE TABLE/ALTER TABLE) beyond the original server. Ships TypeScript types, requires Node >=18, and is available on npm. Supports various connection configurations including SSL modes and environment variable overrides.
npm install enhanced-postgres-mcp-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure the MCP server in Claude Desktop's claude_desktop_config.json, then use slash commands to query or modify PostgreSQL.
Review your MCP configuration and remove any previously defined custom tools with the same names.
Use the appropriate tool: /query for SELECT, /execute for INSERT/UPDATE/DELETE, etc.
Add ?sslmode=no-verify to the connection string, or set POSTGRES_SSL=false to disable auto-SSL for remote connections.
Always specify both username and password in the connection string, e.g., postgresql://user:password@host:port/db
Ensure Node.js >=18 is installed and run with: npx -y enhanced-postgres-mcp-server
Use 127.0.0.1 instead of localhost in the connection string, or enable IPv6 in PostgreSQL.
Add ?ssl=true to the connection string, or set POSTGRES_SSL=true environment variable.
Verify the host, port, and that the database is running. Test with: psql postgresql://user:password@host:port/db
No dependency data recorded yet.