PostgreSQL for OpenCode

277 mods tagged PostgreSQL that install into OpenCode, measured the same four ways as everything else here: what each costs in tokens on every session, what a security scan found and why, whether it is the original, and what changed.

Also for OpenCode: Web3 and blockchain · anthropic · Git and workflow · Python · fastapi · TypeScript · blockchain · docker · markdown · macos · Localization · nodejs

db

01

ding113/claude-code-hub

MCP server Claude CodeCodexCursor +2

One of 3 in .mcp.json

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

not rated 3.4k +8 3d ago A tokens not measured original MIT

postgres

02

syahiidkamil/Software-Engineer-AI-Agent-Atlas

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 394 2mo ago A tokens not measured

postgres-mcp

03

pgEdge/pgedge-postgres-mcp

MCP server Claude CodeCodexCursor +2

MCP server "postgres-mcp" as configured in pgEdge/pgedge-postgres-mcp. Runs in Docker (ghcr.io/pgedge/postgres-mcp:latest).

not rated 223 +1 3d ago A tokens not measured PostgreSQL

mcp-server-db

04

Nam088/mcp-db-server

MCP server Claude CodeCodexCursor +2

MCP server exposing Postgres, Redis, Elasticsearch, MySQL, MongoDB, and LDAP as tools, with lazy connection management, retry, circuit breaking, per-connection read-only mode, and optional database drivers. Runs locally from the mcp-server-db npm package.

not rated 82 3d ago A Socket: warn tokens not measured original MIT

supabase

05

ginoleeswan/hero

MCP server Claude CodeCodexCursor +2

Supabase's hosted MCP server: lets the agent manage projects, tables, SQL and migrations. Remote server at mcp.supabase.com.

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

mcp

06

prisma/mcp

MCP server Claude CodeCodexCursor +2 ✓ vendor

MCP server for managing Prisma Postgres. Remote server at mcp.prisma.io.

not rated 47 11mo ago A tokens not measured

dryrun

07

boringSQL/dryrun

MCP server Claude CodeCodexCursor +2

PostgreSQL schema intelligence from a committed snapshot. No connection, no credentials. Runs locally from the @boringsql/dryrun npm package.

not rated 35 2d ago A tokens not measured original BSD-2-Clause

postgres

08

agentmc15/polymarket-trader

MCP server Claude CodeCodexCursor +2

One of 4 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. Needs 1 environment variable to run.

not rated 26 yesterday A tokens not measured

mcp

09

Aiven-Open/mcp-aiven

MCP server Claude CodeCodexCursor +2

Provision PostgreSQL, manage Apache Kafka, and deploy apps with Aiven - all from your AI assistant. Runs locally from the mcp-aiven npm package. Needs 4 environment variables to run.

not rated 26 8d ago A tokens not measured original Apache-2.0

negocio-ro

10

caio-moliveira/workshop-agent-harness

MCP server Claude CodeCodexCursor +2

PostgreSQL Tuning and Analysis Tool. Runs locally from the postgres-mcp Python package. Needs 1 environment variable to run.

not rated 22 +1 2mo ago A tokens not measured

postgres

11

devfullcycle/mba-ia-greenfield-project

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 19 1mo ago A tokens not measured

postgres-mcp-server

12

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 7d ago A tokens not measured original MIT

datris

13

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 2d ago A tokens not measured AGPL-3.0

schemabrain

14

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 9 14d ago A tokens not measured original Apache-2.0

local-knowledge-rag

15

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 2mo ago A tokens not measured original MIT

mcpg

16

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 9 2d ago A tokens not measured original MIT

postgres-connector

17

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 25d ago A tokens not measured original MIT

postgres-mcp-server

18

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 8 5mo ago A tokens not measured original MIT

myco-brain

19

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 2mo ago A tokens not measured original Apache-2.0

mcp-sql

21

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 7 1y ago A tokens not measured original MIT

db-connect-mcp

22

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 5d ago A tokens not measured original MIT

postgres-mcp

23

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 2mo ago A tokens not measured

postgres

24

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 2mo ago A tokens not measured

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: