Best PostgreSQL MCP servers

Let your AI assistant inspect schemas, write and run SQL, explain query plans and tune indexes on a PostgreSQL database. Prefer servers with a read-only mode for production data. We compared 24 PostgreSQL MCP servers — 21 updated in the last 90 days, 10 with one-click install — ranked by relevance and GitHub stars.

Quick comparison

Top 12 by relevance. Status: maintained = commit in the last 90 days.

ServerStarsStatusUpdatedInstallAPI key
Postgres MCP Procrystaldba★ 3.4kMaintained1 month agoOne-clickLikely
mcp-server-neonneondatabase★ 651MaintainedyesterdayOne-clickLikely
dbxt8y2★ 26.4kMaintainedtodayOne-clickLikely
mcp-toolboxgoogleapis★ 16.7kMaintainedyesterdayOne-clickLikely
tabularisTabularisDB★ 5.2kMaintainedtodayCommandLikely
prestprest★ 4.6kMaintainedtodaySee READMENot mentioned
dbhubbytebase★ 3.6kMaintainedtodayOne-clickNot mentioned
FlyEnvxpf0000★ 3.3kMaintainedtodayCommandNot mentioned
carboncrbnos★ 2.7kMaintainedtodayCommandLikely
GoNaviSyngnat★ 2.1kMaintainedtodayCommandLikely
pg-aiguidetimescale★ 1.9kMaintained6 days agoOne-clickNot mentioned
nocturne_memoryDataojitori★ 1.4kMaintained21 days agoCommandLikely

All 24 PostgreSQL MCP servers

Showing all 24 servers

Postgres MCP Pro

by crystaldba · Python

Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

DatabasesMaintainedRemote3.4k

mcp-server-neon

by neondatabase · TypeScript

MCP server for interacting with Neon Management API and databases

DatabasesMaintainedRemote651

dbx

by t8y2 · Rust

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

DatabasesMaintained26.4k

mcp-toolbox

by googleapis · Go

MCP Toolbox for Databases is an open source MCP server for databases.

DatabasesMaintained16.7k

tabularis

by TabularisDB · TypeScript

Open-source desktop SQL workspace with 3 built-in database drivers and 16 shipped plugins, including SQL Server, DuckDB, ClickHouse and Redis. Built-in MCP server for Claude, Cursor and Devin, SQL notebooks and visual EXPLAIN.

DatabasesMaintained5.2k

prest

by prest · Go

Instant REST and MCP APIs for PostgreSQL and MySQL 8, on existing or new databases. CRUD, custom SQL routes, auth and ACL without writing a backend. Low-code, ⚡ realtime, high-performance. Native MySQL support since v2.5.

DatabasesMaintained4.6k

dbhub

by bytebase · TypeScript

Token conscious database MCP server for Postgres, MySQL, SQL Server, Oracle, MariaDB, SQLite.

DatabasesMaintained3.6k

FlyEnv

by xpf0000 · TypeScript

Native local development environment for Windows, macOS & Linux. A modern alternative to XAMPP, MAMP, Laragon and Laravel Herd, with runtimes, databases, web servers, local sites, HTTPS, AI coding tools and MCP.

Developer ToolsMaintained3.3k

carbon

by crbnos · TypeScript

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Productivity & CommsMaintained2.7k

GoNavi

by Syngnat · TypeScript

High-performance multi-data-source database client — ~30MB, AI & MCP ready, zero Electron bloat. | 高性能多数据源数据库客户端:约 30MB,AI 与 MCP 就绪,告别 Electron 膨胀。

DatabasesMaintainedRemote2.1k

pg-aiguide

by timescale · Python

MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.

DatabasesMaintainedRemote1.9k

nocturne_memory

by Dataojitori · Python

A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents. Say goodbye to Vector RAG and amnesia. Empower your AI with persistent, graph-like structured memory across any model, session, or tool. Drop-in replacement for OpenClaw.

Memory & KnowledgeMaintainedRemote1.4k

CloudBase-AI-Toolkit

by TencentCloudBase · TypeScript

Backend for AI coding agents on CloudBase — database, auth, functions via Plugin, Skills & MCP.

Cloud & DevOpsMaintainedRemote1.1k

stash

by alash3al · Go

Stash — persistent memory layer for AI agents. Episodes, facts, and working context stored in Postgres. MCP server included. Self-hosted, single binary, no cloud required.

Memory & KnowledgeAgingRemote769

enferno

by level09 · HTML

Lean Flask framework built for coding agents: Vue 3 + Vuetify with no build step, production-ready auth (2FA, passkeys, OAuth), AGENTS.md, an agent skill and a read-only MCP server. No webpack, no node_modules, just Python.

Developer ToolsMaintained568

envkit-releases

by Env-Kit · Shell

EnvKit — free local development environment for Windows & macOS: nginx/Apache, multiple PHP versions, MySQL/MariaDB, PostgreSQL, Redis, MongoDB, Mailpit, Node.js, trusted .test HTTPS, and a built-in MCP server for AI-assistant control. A Laragon/XAMPP/Herd alternative.

Developer ToolsMaintained551

gateway

by centralmind · Go

Universal MCP-Server for your Databases optimized for LLMs and AI-Agents.

Gateways, Hubs & ManagersStaleRemote547

pgmcp

by subnetmarco · Go

An MCP server to query any Postgres database in natural language.

DatabasesAgingRemote542

PerformanceMonitor

by erikdarlingdata · C#

Free, open-source SQL Server and Postgres performance monitoring. Collectors, real-time alerts, graphical plan viewer, MCP server for AI analysis. Supports SQL 2016-2025, Azure SQL, AWS RDS, Postgres, Aurora Postgres.

DatabasesMaintained519

caura

by caura-ai · Python

Caura (formerly MemClaw) — governed shared memory for AI agent fleets. Multi-agent, multi-tenant, MCP-native. Trust tiers, keystone policies, audit trails, knowledge graph, self-improving retrieval. Apache 2.0.

Memory & KnowledgeMaintainedRemote499

atomicmemory

by atomicstrata · TypeScript

Portable semantic memory for AI agents: core engine, TypeScript SDK, framework adapters, MCP server, CLI, and host plugins.

Memory & KnowledgeMaintained438

mcp-alchemy

by runekaagaard · Python

A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.

DatabasesMaintainedRemote420

EDDI

by labsai · Java

Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus.

Memory & KnowledgeMaintainedRemote383

Heroku MCP

by heroku · TypeScript

Official Heroku server: manage apps, dynos, add-ons, Postgres databases and deployments through the Heroku CLI.

Cloud & DevOpsMaintained82

PostgreSQL MCP server FAQ

What is the best PostgreSQL MCP server?

Based on GitHub stars and recent activity, Postgres MCP Pro by crystaldba (★ 3.4k, updated 1 month ago) is the most popular actively maintained option on HookMCP, followed by mcp-server-neon and dbx. The right choice depends on whether you need write access, a hosted (remote) endpoint, or a server that runs locally without an API key.

How do I install a PostgreSQL MCP server in Claude, Cursor or VS Code?

Open the server's page on HookMCP, choose your client tab (Claude Desktop, Cursor, VS Code or Claude Code) and copy the config — 10 of the 24 servers here have one-click install links for Cursor and VS Code. Restart your AI app and the new tools appear automatically.

Do PostgreSQL MCP servers need an API key?

17 of 24 servers here mention API keys or tokens in their README; 7 don't mention any. Check each listing's Details panel, and pass keys as environment variables rather than pasting them into chat.

Related integrations

Or browse by category: Developer Tools, Productivity & Comms, Memory & Knowledge, Databases.