cloud-sql-postgres

cloud-sql-postgres is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from gemini-cli-extensions/cloud-sql-postgresql. Its token cost is not measured, scanned A, a copy of cloud-sql-postgresql, Apache-2.0.

A command-line connection for accessing a Cloud SQL for PostgreSQL database through a local toolbox server. PostgreSQL is a relational database, and Cloud SQL is Google's managed service for running databases in the cloud.

In plain words
What is it for?
Use it to connect toolbox-based workflows to a specified Cloud SQL PostgreSQL project, region, instance, database, user, password, and network address type.
Why use it?
It provides the connection details needed for an agent or local tool to work with a hosted PostgreSQL instance instead of setting up each database access path manually.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Part of the cloud-sql-postgresql plugin — 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add mcp/gemini-cli-extensions/cloud-sql-postgresql/cloud-sql-postgres
Clone the repo
git clone --depth 1 https://github.com/gemini-cli-extensions/cloud-sql-postgresql

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Or install cloud-sql-postgresql, the plugin that ships this one along with the rest of its 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloud-sql-postgres

README.md
[![agentmods](https://agentmods.dev/badge/mcp/gemini-cli-extensions/cloud-sql-postgresql/cloud-sql-postgres.svg)](https://agentmods.dev/mcp/gemini-cli-extensions/cloud-sql-postgresql/cloud-sql-postgres)
Your own site
<a href="https://agentmods.dev/mcp/gemini-cli-extensions/cloud-sql-postgresql/cloud-sql-postgres"><img src="https://agentmods.dev/badge/mcp/gemini-cli-extensions/cloud-sql-postgresql/cloud-sql-postgres.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod in the catalogue.
Security

Grade A, and why

cloud-sql-postgres scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

94% identical to cloud-sql-postgresql — 23 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.codex-plugin/.mcp.json · 21 lines

What it actually says

{
  "cloud-sql-postgres": {
    "command": "npx",
    "args": [
      "-y",
      "@toolbox-sdk/[email protected]",
      "--prebuilt",
      "cloud-sql-postgres",
      "--stdio"
    ],
    "env_vars": [
      "CLOUD_SQL_POSTGRES_PROJECT",
      "CLOUD_SQL_POSTGRES_REGION",
      "CLOUD_SQL_POSTGRES_INSTANCE",
      "CLOUD_SQL_POSTGRES_DATABASE",
      "CLOUD_SQL_POSTGRES_USER",
      "CLOUD_SQL_POSTGRES_PASSWORD",
      "CLOUD_SQL_POSTGRES_IP_TYPE"
    ]
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 21 lines scan A 9064224cdb05

Subscribe to this mod's changes

cloud-sql-postgres is an MCP server published in the GitHub repository gemini-cli-extensions/cloud-sql-postgresql (42 stars, last pushed today), licensed Apache-2.0. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. It is 94% identical to cloud-sql-postgresql, differing in 23 lines, and is treated as a copy.