Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By GoogleCloudPlatformv0.2.3Apache-2.0In 1 marketplace
Lets you explore PostgreSQL schemas, run queries and generate code such as Python dataclasses from plain-English prompts in Claude Code. Needs database credentials: host, user and password, set during install or exported in your shell.
Trending plugins
7-day copy clicks
Connected while the plugin is enabled; Claude calls their tools.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Hostpostgres_host
Host or IP address of the PostgreSQL server
string
Portpostgres_port
Port number of the PostgreSQL server
string
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
postgres_userUsername of the database user
string
Databasepostgres_database
Name of the database
string
Passwordpostgres_password
Password of the database user
Sensitivestring
Query Paramspostgres_query_params
(Optional) Connection String Parameters
string
[!NOTE] This extension is currently in beta (pre-v1.0), and may see breaking changes until the first stable release (v1.0).
This Gemini CLI extension provides a set of tools to interact with PostgreSQL instances. It allows you to manage your databases, execute queries, and explore schemas directly from the Gemini CLI, using natural language prompts.
Learn more about Gemini CLI Extensions.
[!IMPORTANT] We Want Your Feedback! Please share your thoughts with us by filling out our feedback form. Your input is invaluable and helps us improve the project for everyone.
Before you begin, ensure you have the following:
npx).All harnesses use the same plugin; the MCP server runs via npx (no binary to download). Install with your harness of choice:
Gemini CLI
gemini extensions install https://github.com/GoogleCloudPlatform/postgres-plugin
Claude Code
claude plugin marketplace add GoogleCloudPlatform/postgres-plugin
claude plugin install postgres@postgres
Codex
codex plugin marketplace add GoogleCloudPlatform/postgres-plugin
codex plugin add postgres@postgres
Antigravity
agy plugin install https://github.com/GoogleCloudPlatform/postgres-plugin
See Configuration for how each harness supplies the connection settings.
The plugin connects to PostgreSQL using these settings:
POSTGRES_DATABASE: The name of the database to connect to.POSTGRES_USER: The database username.POSTGRES_PASSWORD: The password for the database user.POSTGRES_HOST: (Optional) The Postgres host. Defaults to localhost.POSTGRES_PORT: (Optional) The Postgres port. Defaults to 5432.POSTGRES_QUERY_PARAMS: (Optional) Connection string parameters.How you supply them depends on the harness:
.env. View or update later with gemini extensions list / gemini extensions config postgres [setting] [--scope user|workspace] (restart the CLI to apply).--config KEY=VALUE on install (repeatable), or run /plugin inside Claude Code.export POSTGRES_DATABASE="<your-database-name>"
export POSTGRES_USER="<your-database-user>"
export POSTGRES_[REDACTED:Password]
export POSTGRES_HOST="<your-postgres-host>" # Optional, defaults to localhost
export POSTGRES_PORT="<your-postgres-port>" # Optional, defaults to 5432
export POSTGRES_QUERY_PARAMS="<your-connection-string-params>" # Optional
[!NOTE] See Troubleshooting for debugging your configuration.
To start the Gemini CLI, use the following command:
gemini
[!WARNING] Changing Instance & Database Connections Currently, the database connection must be configured before starting the Gemini CLI and can not be changed during a session. To save and resume conversation history use command:
/chat save <tag>and/chat resume <tag>.
Interact with Postgres using natural language right from your IDE:
Explore Schemas and Data:
Generate Code:
7-day copy clicks
Plugins from other owners that cover similar ground
npx claudepluginhub googlecloudplatform/postgres-plugin --plugin postgresBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.