neverinfamous/postgres-mcp
PostgreSQL MCP Server: Secure Administration & Observability Featuring Code Mode—One Tool Replacing All Specialized 232 Tools for up to 90% Token Savings. Includes Connection Pooling, HTTP/SSE, OAuth 2.1, Deterministic Error Handling and Full Support for 8 Extensions (citext, HypoPG, ltree, pgcrypto, pg_cron, pg_stat_kcache, pgvector & PostGIS).
Implements a JavaScript sandbox (Code Mode) that executes multi-step database operations locally within a single tool invocation, enabling AI agents to chain 232 PostgreSQL capabilities without round-trip communication overhead. Provides 20 observability resources for real-time schema, performance, and connection metrics, plus 19 guided prompts for query optimization and extension management. Targets AI assistants and agents via MCP with dual HTTP/SSE transport, schema introspection, migration tracking with SHA-256 deduplication, and granular OAuth 2.1 scopes (`read`, `write`, `admin`, `db:*`, `table:*:*`).
Available on npm.
Stars
6
Forks
1
Language
TypeScript
License
MIT
Category
Last pushed
Mar 23, 2026
Commits (30d)
0
Dependencies
5
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/mcp/neverinfamous/postgres-mcp"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Higher-rated alternatives
bytebase/dbhub
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
HenkDz/postgresql-mcp-server
A Powerful PostgreSQL MCP server with 14 consolidated database management tools for AI assistants.
IzumiSy/mcp-duckdb-memory-server
MCP Memory Server with DuckDB backend
alexander-zuev/supabase-mcp-server
Query MCP enables end-to-end management of Supabase via chat interface: read & write query...
wenb1n-dev/mysql_mcp_server_pro
Model Context Protocol (MCP) server that supports secure interaction with MySQL databases and...