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

postgres

73

Eszetael/postgres-mcp-hardened

MCP server Claude CodeCodexCursor +2

Secure read-only PostgreSQL MCP server in Rust — a maintained alternative to the deprecated @modelcontextprotocol/server-postgres. Blocks writes at the AST, not with regexes. Runs locally from the postgres-mcp-hardened npm package. Needs 2 environment variables to run.

not rated 1 yesterday A tokens not measured original MIT

musaddiq-dev/postgresql-mcp-server

MCP server Claude CodeCodexCursor +2

Model Context Protocol server for PostgreSQL database inspection and querying. Runs locally from the mdev-postgresql-mcp-server Python package. Needs 6 environment variables to run.

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

postgres-mcp

75

RachelHuangZW/postgres-mcp

MCP server Claude CodeCodexCursor +2

MCP server "postgres-mcp" as configured in RachelHuangZW/postgres-mcp. Runs locally from the /path/to/postgres-mcp Python package. Needs 1 environment variable to run.

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

anydb-mcp

76

officialalexeev/anydb-mcp

MCP server Claude CodeCodexCursor +2

The ultimate universal database connector for AI Agents (Cursor, Claude, Gemini, Zed, Cline). Zero-config MCP server for PostgreSQL, MySQL, SQLite, MongoDB, and Redis. Runs locally from the anydb-mcp npm package.

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

mcp-server-neon

77

AmokOrg/mcp-server-neon

MCP server Claude CodeCodexCursor +2

Lets the agent create and manage Neon Postgres projects, branches and databases and run SQL. Runs locally from the @neondatabase/mcp-server-neon npm package.

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

postgres-mcp-server

78

abdulsammad-lgtm/postgres-mcp-server

MCP server Claude CodeCodexCursor +2

A Model Context Protocol server for PostgreSQL databases with SSL support. Runs locally from the postgres-mcp-server Python package.

not rated 0 1mo ago A tokens not measured

postgres-mcp-server

79

Amankhan1009/postgres-mcp-server

MCP server Claude CodeCodexCursor +2

A Model Context Protocol server for PostgreSQL databases with SSL support. Runs locally from the postgres-mcp-server Python package.

not rated 0 1mo ago A tokens not measured

mcp-postgres-guard

80

vladshykanov/mcp-postgres-guard

MCP server Claude CodeCodexCursor +2

MCP server "mcp-postgres-guard" as configured in vladshykanov/mcp-postgres-guard. Runs locally from the mcp-postgres-guard npm package.

not rated 0 1mo ago A tokens not measured

pg-mcp-bridge

81

Rabin0404/pg-mcp-server

MCP server Claude CodeCodexCursor +2

MCP stdio bridge for Cursor and Claude Code to a remote PHP PostgreSQL HTTP tunnel. Runs locally from the pg-mcp-bridge npm package.

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

mcp-server-db

82

MadlyFriese/pg-readonly-mcp

MCP server Claude CodeCodexCursor +2

MCP server "mcp-server-db" as configured in MadlyFriese/pg-readonly-mcp. Runs locally from the mcp-server-db Python package.

not rated 0 1mo ago A tokens not measured

pgguard-mcp

83

Azzaraell/pgguard-mcp

MCP server Claude CodeCodexCursor +2

Read-only MCP server for Postgres. A deny-by-default policy file decides which tables and columns an AI agent can see; every query runs inside a BEGIN READ ONLY transaction with a statement timeout, and every decision lands in an audit log. Runs locally from the pgguard-mcp npm package.

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

postgres

84

nikhilpatil79/mcp

MCP server Claude CodeCodexCursor +2

One of 4 in .mcp.json

Model Context Protocol SDK. Runs locally from the mcp Python package.

not rated 0 18d ago A tokens not measured original MIT

dataclawe-mcp

85

DataClawe/dcl-spec

MCP server Claude CodeCodexCursor +2

AI-native database utility. Talk to your DB in plain language. No SQL. MySQL & PostgreSQL. Remote server at mcp.dataclawe.com.

not rated 0 5mo ago A tokens not measured

veto

86

metaweardigital/veto-mcp

MCP server Claude CodeCodexCursor +2

Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it. Remote server at vetosql.com.

not rated 0 2mo ago A tokens not measured

AINative-Studio/ainative-postgres-mcp

MCP server Claude CodeCodexCursor +2

Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres. Runs locally from the ainative-postgres-mcp npm package.

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

mcp

88

InstaNode-dev/mcp

MCP server Claude CodeCodexCursor +2

Provision Postgres databases + webhooks from AI coding agents in one HTTP call. Runs locally from the @instanode/mcp npm package. Needs 2 environment variables to run.

not rated 0 28d ago A tokens not measured original MIT

mcp-db-agent

89

Jarvis-27/mcp-db-agent

MCP server Claude CodeCodexCursor +2

MCP server "mcp-db-agent" as configured in Jarvis-27/mcp-db-agent. Launched with uv --directory /absolute/path/to/mcp-db-agent run src/server.py. Needs 8 environment variables to run.

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

nexql-mcp

90

NexQL-OSS/mcp

MCP server Claude CodeCodexCursor +2

Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere. Runs locally from the nexql-mcp npm package. Needs 2 environment variables to run.

not rated 0 4d ago A tokens not measured GPL-3.0

postgres-scout-mcp

91

bluwork/postgres-scout-mcp

MCP server Claude CodeCodexCursor +2

Scout your PostgreSQL databases with AI - safety features, monitoring, and data quality. Runs locally from the postgres-scout-mcp npm package.

not rated 0 6mo ago A tokens not measured original Apache-2.0

locksmith

92

cxk280/locksmith

MCP server Claude CodeCodexCursor +2

Lints PostgreSQL migrations for dangerous locking operations and suggests safe rewrites. Runs locally from the locksmith-mcp npm package.

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

sw-postgres-mcp

93

jpka/sw-postgres-mcp

MCP server Claude CodeCodexCursor +2

Safe-write Postgres MCP server with preview-before-execute writes and rollback safety. Runs locally from the sw-postgres-mcp npm package. Needs 2 environment variables to run.

not rated 0 2d ago A tokens not measured original MIT

warehouse-mcp

94

kalehdoo/warehouse-mcp

MCP server Claude CodeCodexCursor +2

Production MCP server for Postgres, Oracle, Snowflake, BigQuery, Redshift, DuckDB, MotherDuck. Runs locally from the warehouse-mcp npm package. Needs 19 environment variables to run.

not rated 0 2mo ago A tokens not measured original Apache-2.0

pg-cve-mcp

95

meob/PG_CVE-MCP

MCP server Claude CodeCodexCursor +2

PostgreSQL CVE & Release Intelligence MCP Server. Runs locally from the pg-cve-mcp Python package. Needs 2 environment variables to run.

not rated 0 20d ago A tokens not measured original Apache-2.0

pgmcp

96

pascalallen/pgmcp

MCP server Claude CodeCodexCursor +2

MCP server "pgmcp" as configured in pascalallen/pgmcp. Runs in Docker (ghcr.io/pascalallen/pgmcp:1.1.0). Needs 1 environment variable to run.

not rated 0 11d 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: