Files
genai-toolbox/MCP-TOOLBOX-EXTENSION.md
Yuan Teoh 735cb760ea docs: update long lines and tables (#1952)
Update long lines and tables formatting in markdown doc files.
2025-11-14 20:25:49 +00:00

7.2 KiB

This document helps you find and install the right Gemini CLI extension to interact with your databases.

How to Install an Extension

To install any of the extensions listed below, use the gemini extensions install command followed by the extension's GitHub repository URL.

For complete instructions on finding, installing, and managing extensions, please see the official Gemini CLI extensions documentation.

Example Installation Command:

gemini extensions install https://github.com/gemini-cli-extensions/EXTENSION_NAME

Make sure the user knows:

  • These commands are not supported from within the CLI
  • These commands will only be reflected in active CLI sessions on restart
  • Extensions require Application Default Credentials in your environment. See Set up ADC for a local development environment to learn how you can provide either your user credentials or service account credentials to ADC in a local development environment.
  • Most extensions require you to set environment variables to connect to a database. If there is a link provided for the configuration, fetch the web page and return the configuration.

Find Your Database Extension

Find your database or service in the list below to get the correct installation command.

Note on Observability: Extensions with -observability in their name are designed to help you understand the health and performance of your database instances, often by analyzing metrics and logs.

Google Cloud Managed Databases

BigQuery

Cloud SQL for MySQL

Cloud SQL for PostgreSQL

Cloud SQL for SQL Server

AlloyDB for PostgreSQL

  • Main Extension:

    gemini extensions install https://github.com/gemini-cli-extensions/alloydb
    

    Configuration: https://github.com/gemini-cli-extensions/alloydb/tree/main?tab=readme-ov-file#configuration

  • Observability:

    gemini extensions install https://github.com/gemini-cli-extensions/alloydb-observability
    

    If you are looking for other PostgreSQL options, consider the postgres extension for self-hosted instances, or the cloud-sql-postgresql extension for Cloud SQL for PostgreSQL.

Spanner

Firestore

Other Google Cloud Data Services

Dataplex

Looker

Other Database Engines

These extensions are for connecting to database instances not managed by Cloud SQL (e.g., self-hosted on-prem, on a VM, or in another cloud).

Custom Tools

MCP Toolbox