PostgreSQL for OpenCode

279 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 · TypeScript · fastapi · docker · markdown · blockchain · Go · macos · nodejs

db

01

ding113/claude-code-hub

MCP server Claude CodeCodexCursor +2

One of 3 in .mcp.json

Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite. Runs locally from the @bytebase/dbhub npm package.

not rated 3.4k +5 21d ago A tokens not measured original MIT

mcp

02

neondatabase/mcp-server-neon

MCP server Claude CodeCodexCursor +2 ✓ vendor

Neon's hosted MCP server: lets the agent create and manage Neon Postgres projects, branches and databases and run SQL. Remote server at mcp.neon.tech.

not rated 656 +5 yesterday A tokens not measured original MIT

postgres

03

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

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 81 1mo 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 yesterday 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 49 1y ago A tokens not measured archived

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 36 11d ago A tokens not measured original BSD-2-Clause

mcp

08

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 28 yesterday A tokens not measured original Apache-2.0

postgres

09

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

postgres

10

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

negocio-ro

11

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

mcpg

12

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

postgres-mcp-server

13

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

datris

14

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

15

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

postgres-mcp-server

16

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

local-knowledge-rag

17

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

postgres-connector

18

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

mcp-sql

19

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

20

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

myco-brain

21

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

db-connect-mcp

23

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

postgres-mcp

24

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

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: