PostgreSQL MCP servers
MCP servers that connect an AI agent to PostgreSQL: querying schemas, tables and rows in a PostgreSQL database. We have classified 146 so far, listed below and ranked by their independent trust score.
146 catalogued · how we score
PostgreSQL at a glance
- Highest score
- 94 BackendGen
- Median score
- 46
- Scored
- 146 of 146
- Rescanned in 7 days
- 145
npm 56 · remote 50 · pypi 32 · oci 18 · mcpb 6 · nuget 2 · figures as of 2026-09-20 13:30 UTC · how we score
Top 100 by trust score Trust score 0–100
- npm 94
Validate compact backend specs and generate tested NestJS, Prisma, and PostgreSQL repositories.
- remote · npm 93
Generate realistic, FK-consistent synthetic test data for your databases from your AI assistant.
- remote · npm 92
x402 pay-per-call infra for agents: $0.03 image generation, Postgres, auth, storage, functions.
- npm 92
io.github.dockndevai/mcp-percona-pg
Manage Percona PostgreSQL + PgBouncer on Kubernetes — safe-by-default access modes and guards.
- npm 92
io.github.Rheopyrin/db-access-mcp
MCP server for Postgres/MySQL/Redshift/SQL Server over SSH/SSM tunnels with secret providers.
- remote · npm 90
EU-native PaaS for AI agents — deploy web apps with one sentence, managed Postgres, GDPR by default.
- remote 89
Create, test, publish, and manage Dreamlit notification workflows from AI clients.
- remote 89
SQLGuard — Execution Certificate Firewall
Permission before writes. Gravity→DENYs→Session $0.25. Pilot $100; Gateway $299. Probe free.
- remote 89
SQLGuard — permission before production writes
AI agents need permission before production SQL writes. Pilot $100 · Gateway $299. Lint≠authorize.
- npm 87
PostgreSQL schema intelligence from a committed snapshot. No connection, no credentials.
- npm 87
AI agent memory & knowledge graph, hosted in Germany (GDPR). Recall, relations, store via MCP.
- npm 85
Lints PostgreSQL migrations for dangerous locking operations and suggests safe rewrites.
- npm 85
Schema, database, document, user and dev-server tools for a Rebase backend project.
- npm 84
io.github.AkaciaNL/basicdeploy-mcp
The runtime your agent deploys to — DB, storage, and a public URL in one MCP call.
- npm 84
capital.hove/read-only-local-postgres-mcp-server
MCP server for read-only PostgreSQL database queries in Claude Desktop
- npm 83
Provision Postgres databases + webhooks from AI coding agents in one HTTP call.
- nuget 83
Database MCP server for schema discovery, comments, and SQL queries.
- npm 82
Read-only SQL querying + schema introspection over Postgres & SQLite, with a gated write mode.
- npm 82
io.github.cocaxcode/database-mcp
MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.
- npm 82
PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
- npm 81
io.github.amol21p/interactive-terminal
MCP server for real interactive terminal sessions — REPLs, SSH, databases, Docker
- remote 81
Veto — SQL Safety & Cost Oracle
Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it.
- nuget 81
Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.
- pypi 80
io.github.AImplifier/neuro-mcp
MCP for NeuroAgents assisting clinicians: MNE processing, EHR store, NeuroII visualization.
- remote 80
Run commands and read/write files on your servers over Termalin's keyless tunnels (hosted MCP).
- remote · npm · oci 80
io.github.timescale/pg-aiguide
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
- pypi 78
io.github.atarkowska/fastmcp-sqltools
A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite.
- pypi 78
An AI-powered, safe database access gateway built on the Model Context Protocol (MCP).
- pypi 78
io.github.renanlido/custom-mcp-database
Run alias-based queries against PostgreSQL, MySQL, MongoDB and Oracle without exposing credentials.
- npm 78
io.github.vpatser1/mcp-schema-designer
Design database schemas from natural language, validate SQL, generate migrations and types
- npm 77
io.github.cybeleri/database-admin
Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL
- npm 77
PostgreSQL MCP Server — 27 tools for queries, schema, CRUD, DBA, HA & server management
- npm 76
Generates relationally valid test data in a PostgreSQL database from its live schema.
- pypi 75
io.github.cdeust/hypermnesia-mcp-viz
Read-only visualization for Cortex memory, knowledge, sessions, traces, and codebase graphs.
- remote · pypi 75
Deploy production REST APIs from JSON schemas in seconds. Manage projects, schemas, and deployments.
- npm 74
io.github.martymarkenson/postgres-connector
MCP server for querying PostgreSQL databases
- remote 73
Valida regex, cron y SQL contra ejecucion real. Pago por llamada via x402/USDC.
- remote 72
ai.getvda/kafka-and-postgres-monitoring-stack
Kafka and Postgres Monitoring Stack
- remote 72
ai.getvda/memcached-mongodb-redis-compose-generator
Memcached + MongoDB + Redis Compose Generator
- remote 72
ai.getvda/mysql-redis-compose-generator
MySQL + Redis Compose Generator
- remote 72
ai.getvda/mysql-redis-compose-generator-adminer
MySQL + Redis Compose Generator (Adminer)
- remote 72
ai.getvda/postgres-grafana-stack-generator
Postgres + Grafana Stack Generator
- remote 72
ai.getvda/postgres-kafka-prometheus-stack-generator
Postgres + Kafka + Prometheus Stack Generator
- remote 72
ai.getvda/postgres-kafka-stack-generator
Postgres + Kafka Stack Generator
- remote 72
ai.getvda/postgres-redis-compose-generator
Postgres + Redis Compose Generator
- remote 72
ai.getvda/redis-minio-postgres-stack-generator
Redis + MinIO + Postgres Stack Generator
- npm 72
MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.
- npm 71
Self-hosted long-term memory for AI agents over MCP — hierarchical recall backed by pgvector
- remote 69
Machine-native capabilities with explicit contracts and machine-readable commerce.
- remote 67
Bilingual dual memory with SSC for AI agents. Semantic search, embeddings, profiles.
- npm 66
145+ tools across 8 databases: MySQL, PostgreSQL, Redshift, MongoDB, Redis, Kafka, and more
- npm 65
104 deterministic tools for your AI: logs, tests, SQL, diagrams, SPARQL. Local, no network.
- npm 65
io.github.jmshinhwa/pg-migration-lock-lint
Names every statement in a Rails, Django or raw SQL migration that takes a table-blocking Postgres l
- remote · pypi 64
Deploy production REST and Neo4j Graph APIs from JSON schemas in seconds. 49 tools.
- pypi 64
PostgreSQL CVE & Release Intelligence
PostgreSQL security for AI agents: CVEs, yanked releases, exploits, and upgrade paths
- npm 63
io.github.marcelo-ochoa/postgres
MCP server for interacting with PostgreSQL databases
- pypi 62
io.github.Fashad-Ahmed/universal-db-mcp
Security-first MCP server for PostgreSQL, SQLite, MySQL, DuckDB with SQL injection prevention.
- pypi 59
io.github.sparta2025/postgres-mcp
PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat.
- pypi 59
Safety-railed database access for agents: Postgres, MySQL, Redis. Read-only by default.
- pypi 57
The agent never writes SQL: queries compile from a semantic layer you control, PII refused first.
- oci 53
CLI-first remote runtimes for validation and offload tasks, exposed over MCP stdio.
- remote 53
PostgreSQL bigserial band, value discarded
PostgreSQL bigserial band, value discarded
- npm 50
io.github.mickelsamuel/migrationpilot
112 rules that catch dangerous PostgreSQL migrations, plus a pass/fail gate to call before any DDL.
- npm 50
Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere.
- npm · pypi 49
io.github.arifulislamat/database-mcp-postgres
MCP server for PostgreSQL. Read-only by default, row caps, timeouts, secrets never logged.
- npm 49
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
- npm 49
PostgreSQL-backed virtual filesystem for agents: session isolation, shared stores, POSIX ops, RLS.
- npm 49
MCP server for Oracle, MSSQL, PostgreSQL, MySQL, SQLite, MongoDB, and Qdrant vector search access.
- npm 49
MCP server for secure database access (PostgreSQL, MySQL, SQLite)
- npm 49
Query SQLite, PostgreSQL, and MySQL in plain language - read-only, with column masking and limits.
- npm 49
dbt MCP — manifest/run_results/sources/catalog parsing + DQ result tables (BigQuery/Postgres)
- mcpb · npm · oci 48
DBConvert Streams (Federated SQL)
Read-only SQL across your PostgreSQL, MySQL, S3 buckets and local data files, in one query.
- npm · oci 48
PostgreSQL (hardened, read-only)
Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
- oci · pypi 44
io.github.Optisol-Business/db-metadata-extractor-mcp
Extract database metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle.
- oci 43
Local-first AI memory layer with hybrid search. Postgres + pgvector. Self-hosted, MIT.
- pypi 40
A label property graph on SQLite/Postgres with multi-ontology routing and a gated MCP server.
- remote 40
Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server
- pypi 40
Python MCP server for PostgreSQL database inspection and querying
- npm 40
io.github.orifisher2/sqlike-mcp
SQL static analysis & query-equivalence for Postgres, MySQL, SQLite, and SQL Server
- pypi 40
Multi-database MCP server for PostgreSQL, MySQL, and ClickHouse
- remote 39
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
- remote 39
Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.
- pypi 39
io.github.daedalus/mcp-psycopg2
MCP server exposing psycopg2 PostgreSQL database adapter functionality
- remote 39
An app builder for agents. Your agent creates screens, a Postgres database, and a live URL.
- pypi 39
io.github.Ronit-019/finance-intelligence-mcp
Personal finance MCP server with budgeting, analytics, and PostgreSQL.
- npm 39
io.github.thegoodguysla/myco-brain
Self-hosted, source-traceable memory layer and MCP server for AI agents, on your own Postgres.
- npm 38
io.github.AINative-Studio/ainative-postgres-mcp
Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres.
- npm 38
io.github.bluwork/postgres-scout-mcp
Scout your PostgreSQL databases with AI - safety features, monitoring, and data quality
- remote 38
nlqdb — analytical memory for AI agents
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
- npm 38
PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
- npm 38
io.github.ethanasm/mcp-queue-doctor
Diagnoses pg-boss and graphile-worker job queues: retry storms, stuck workers, missed schedules.
- remote · npm 38
Provision PostgreSQL, manage Apache Kafka, and deploy apps with Aiven - all from your AI assistant.
- npm 38
Safe-write Postgres MCP server with preview-before-execute writes and rollback safety.
- remote 38
Managed Postgres, Redis, CouchDB and NATS on a dedicated EU machine, one flat price.
- remote 38
Manage HepCloud (Turkish cloud) servers and managed PostgreSQL from your AI assistant. OAuth 2.1.
- npm 38
PostgreSQL MCP — query databases, inspect schemas, explain queries.
- npm 38
Buy .vn/intl domains in VND, deploy apps, Postgres, email, VietQR pay — Vietnam MCP for AI agents
- pypi 37
Zero-config MCP server for searchable documentation. SQLite or PostgreSQL.
- remote 37
Shared cross-LLM long-term memory over MCP: semantic recall, sessions, and media (pgvector).
- remote 36
Multi-tenant database orchestration: isolated Postgres, MySQL, MongoDB, Redis tenants on demand.
Every server here has been scored. A server is listed here because its description and tool definitions say it is built for PostgreSQL. That is what the server declares about itself, not an integration we have tested, so check the score breakdown before you trust one. This classification currently runs only over servers that publish a hosted endpoint, so a PostgreSQL server distributed solely as an installable package will not appear here yet, however clearly it belongs. Treat the ranking as a partial field rather than the whole one.
Common questions
What is a PostgreSQL MCP server?
A PostgreSQL MCP server exposes querying schemas, tables and rows in a PostgreSQL database to an AI assistant over the Model Context Protocol, so the assistant can work with PostgreSQL directly instead of you moving data in and out by hand. These come from the public MCP registry, and being listed there is not a review of the code, so the publisher is worth checking as closely as the feature list.
How do I get started with a PostgreSQL MCP server?
Start from the ranked list on this page, then open a server's own page and read its score breakdown before you install anything. Every server listed here is a hosted endpoint, so that breakdown covers Endpoint Security, Transport & Reachability, Schema Quality & AI Usability, Stability & Change Management, Tool Coverage, Tool Safety and Capabilities. A PostgreSQL server acts on your PostgreSQL data, so check what access it asks for before you connect it. The same page carries install snippets for the common MCP clients.