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).

45
/ 100
Emerging

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.

Maintenance 13 / 25
Adoption 4 / 25
Maturity 18 / 25
Community 10 / 25

How are scores calculated?

Stars

6

Forks

1

Language

TypeScript

License

MIT

Category

sql-database-mcp

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.