PostgreSQL MCP servers

280 tagged PostgreSQL, measured the same way as everything else here.

Browse within: model-context-protocol 26mcp-server 22postgresql 21LLM 12cursor 10cli 7agentic-workflow 5ai-coding-assistant 5gemini 5

mcpg

25

devopam/MCPg

MCP server Claude CodeCodexCursor +2

A production-grade PostgreSQL Model Context Protocol (MCP) server. Runs locally from the mcpg Python package.

not rated 14 +1 yesterday A tokens not measured original MIT

postgres-mcp-server

26

neverinfamous/postgres-mcp

MCP server Claude CodeCodexCursor +2

MCP server "postgres-mcp-server" as configured in neverinfamous/postgres-mcp. Runs in Docker (docker.io/writenotenow/postgres-mcp-enhanced:v1.2.0).

not rated 12 22d ago A tokens not measured original MIT

datris

27

datris/datris-platform-oss

MCP server Claude CodeCodexCursor +2

MCP server for AI-driven data pipeline operations — ingest, validate, transform, analyze, and query data. Tools covering ETL, AI data quality, vector search, PostgreSQL, MongoDB, Snowflake, Databricks, Kafka, S3/MinIO, HashiCorp Vault, Qdrant, Weaviate, Milvus, Chroma, pgvector. Runs locally from the datris-mcp-server…

not rated 12 today A tokens not measured AGPL-3.0

schemabrain

28

Arun-kc/schemabrain

MCP server Claude CodeCodexCursor +2

The trust and intelligence layer between AI agents and your database. Runs locally from the schemabrain Python package. Needs 1 environment variable to run.

not rated 12 1mo ago A tokens not measured original Apache-2.0

postgres-mcp-server

29

mukul975/postgres-mcp-server

MCP server Claude CodeCodexCursor +2

MCP server "postgres-mcp-server" as configured in mukul975/postgres-mcp-server. Runs postgres_server.py with python. Needs 1 environment variable to run.

not rated 11 +1 7mo ago A tokens not measured original MIT

postgram

30

ivo-toby/postgram

MCP server Claude CodeCodexCursor +2

MCP server "postgram" as configured in ivo-toby/postgram. Runs in Docker (ghcr.io/ivo-toby/postgram@sha256:29b61fb302bd52862b8eba43305ee2aa4fc072d5f9188652f1fe6324f49d5391). Needs 6 environment variables to run.

not rated 10 5d ago A tokens not measured AGPL-3.0

local-knowledge-rag

31

patakuti/local-knowledge-rag-mcp

MCP server Claude CodeCodexCursor +2

MCP server "local-knowledge-rag" as configured in patakuti/local-knowledge-rag-mcp. Runs /path/to/local-knowledge-rag-mcp/dist/mcp-server.js with node. Needs 3 environment variables to run.

not rated 9 10d ago A tokens not measured original MIT

postgres

32

dmitryprg-ai/cursor-develop-autorules

MCP server Claude CodeCodexCursor +2

Lets the agent inspect a PostgreSQL database schema and run read-only SQL queries against it. Runs locally from the @modelcontextprotocol/server-postgres npm package. Needs 1 environment variable to run.

not rated 9 7mo ago A tokens not measured

postgres-connector

33

martymarkenson/Postgres-Connector-MCP

MCP server Claude CodeCodexCursor +2

An MCP (Model Context Protocol) server for querying PostgreSQL databases. Execute SQL queries, view table details, and manage database connections through MCP-compatible clients. Runs locally from the postgres-connector npm package.

not rated 9 2mo ago A tokens not measured original MIT

migrationpilot

34

mickelsamuel/migrationpilot

MCP server Claude CodeCodexCursor +2

112 rules that catch dangerous PostgreSQL migrations, plus a pass/fail gate to call before any DDL. Runs locally from the migrationpilot npm package.

not rated 9 6d ago A tokens not measured original MIT

mcp-sql

35

ryudg/mcp-sql

MCP server Claude CodeCodexCursor +2

Microsoft SQL Server(MSSQL, MySQL, PostgreSQL) MCP (Model Context Protocol) Server - A powerful database management tool for AI assistants. Runs locally from the @donggyunryu/mcp-sql npm package.

not rated 9 1y ago A tokens not measured original MIT

postgres-mcp

36

YawLabs/postgres-mcp

MCP server Claude CodeCodexCursor +2

PostgreSQL MCP server, read-only by default: query, schema introspection, EXPLAIN plans, index advisor, and DBA health checks. Runs locally from the @yawlabs/postgres-mcp npm package.

not rated 8 4d ago A tokens not measured original MIT

myco-brain

37

thegoodguysla/myco-brain

MCP server Claude CodeCodexCursor +2

Self-hosted, source-traceable memory layer and MCP server for AI agents, on your own Postgres. Runs locally from the @mycobrain/mcp-server npm package.

not rated 7 4d ago A tokens not measured original Apache-2.0

sqlike-mcp

39

orifisher2/sqlike

MCP server Claude CodeCodexCursor +2

SQL static analysis & query-equivalence for Postgres, MySQL, SQLite, and SQL Server. Runs locally from the @sqlike/mcp npm package. Needs 1 environment variable to run.

not rated 7 9d ago A tokens not measured original Apache-2.0

db-connect-mcp

40

yugui923/db-connect-mcp

MCP server Claude CodeCodexCursor +2

MCP server "db-connect-mcp" as configured in yugui923/db-connect-mcp. Runs locally from the python Python package. Needs 1 environment variable to run.

not rated 6 yesterday A tokens not measured original MIT

postgres

41

forest6511/claude-code-recipes-v2

MCP server Claude CodeCodexCursor +2

Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB. Runs locally from the @bytebase/dbhub npm package.

not rated 6 5mo ago A tokens not measured original MIT

postgres

42

FriendsHL/skillforge

MCP server Claude CodeCodexCursor +2

Lets the agent inspect a PostgreSQL database schema and run read-only SQL queries against it. Runs locally from the @modelcontextprotocol/server-postgres npm package.

not rated 6 27d ago A tokens not measured

postgres

43

smicolon/ai-kit

MCP server Claude CodeCodexCursor +2

One of 2 in .mcp.json

Lets the agent inspect a PostgreSQL database schema and run read-only SQL queries against it. Runs locally from the @modelcontextprotocol/server-postgres npm package.

not rated 6 1mo ago A tokens not measured original MIT

postgres-mcp

44

edelciomolina/postgres-mcp

MCP server Claude CodeCodexCursor +2

PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults. Runs locally from the @edelciomolina/postgres-mcp npm package. Needs 6 environment variables to run.

not rated 5 4mo ago A tokens not measured

postgres

45

thatoe/yay-thal-pya-zet

MCP server Claude CodeCodexCursor +2

One of 3 in .mcp.json

Lets the agent inspect a PostgreSQL database schema and run read-only SQL queries against it. Runs locally from the @modelcontextprotocol/server-postgres npm package.

not rated 5 3mo ago A tokens not measured

postgres

46

Byron2306/EdgeK-BEAST

MCP server Cursor

One of 10 in mcp.json

Lets the agent inspect a PostgreSQL database schema and run read-only SQL queries against it. Runs locally from the @modelcontextprotocol/server-postgres npm package.

not rated 5 16d ago A tokens not measured original MIT

postgres

47

chatman-media/lead-engine

MCP server Claude CodeCodexCursor +2

One of 2 in .mcp.json

Lets the agent inspect a PostgreSQL database schema and run read-only SQL queries against it. Runs locally from the @modelcontextprotocol/server-postgres npm package.

not rated 5 28d ago A tokens not measured

steampipe-mcp

48

andrew-kurin/steampipe-mcp-server

MCP server Claude CodeCodexCursor +2

A Python MCP server interacting with PostgreSQL, intended for use with Steampipe. Runs locally from the steampipe-mcp-server Python package.

not rated 4 1y ago A tokens not measured original MIT

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: