Installation
Install as Agent Plugin
Recommended
copilot plugin marketplace add samueltauil/skills-hub
copilot plugin install alloydb-basics@skills-hub
Works with GitHub Copilot CLI and VS Code (enable chat.plugins.enabled).
Plugin alloydb-basics v1.0.0 follows the Agent Plugins spec.
Install with the gh extension
gh skills-hub install alloydb-basics Don't have the extension? Run gh extension install samueltauil/skills-hub first.
Download and extract to your repository:
.github/skills/alloydb-basics/ Extract the ZIP to .github/skills/ in your repo. The folder name must match alloydb-basics for Copilot to auto-discover it.
Skill Files (7)
SKILL.md 7.2 KB
---
name: alloydb-basics
metadata:
version: "1.0.1"
category: Databases
description: >-
Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and
integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations.
Use when creating, configuring, or administering AlloyDB databases.
Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.
---
# AlloyDB Basics
AlloyDB for PostgreSQL is a managed, PostgreSQL-compatible database service
designed for enterprise-grade performance and availability. It utilizes a
disaggregated compute and storage architecture to scale resources independently.
It also provides AlloyDB AI, a collection of features that includes AI-powered
search (vector, hybrid search, and AI functions), natural language capabilities,
conversational analytics, and inference features like forecasting and model
endpoint management to help developers build AI apps faster.
## Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read [Usage Attribution](references/attribution.md). For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix `gcloud` with
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:alloydb-basics)"`
and append `agent-skills/1.0 (skill:alloydb-basics)` to `User-Agent` headers.
## Quick Start
Before you begin, ensure you have the [Google Cloud SDK installed](https://cloud.google.com/sdk/docs/install) and authenticated (`gcloud auth login`).
1. **Enable the AlloyDB API:**
```bash
gcloud services enable alloydb.googleapis.com --quiet
```
2. **Create a Cluster:**
```bash
gcloud alloydb clusters create my-cluster --region=us-central1 \
--password=my-password --network=my-vpc --quiet
```
*For production environments, always use IAM database authentication instead
of passwords. If configuration constraint requires passwords, store them
securely using Secret Manager.*
3. **Create a Primary Instance:**
```bash
gcloud alloydb instances create my-primary --cluster=my-cluster \
--region=us-central1 --instance-type=PRIMARY --cpu-count=2 --quiet
```
## Reference Directory
Read these supplementary files when specific context or detailed steps are
required for a task:
- To understand architecture, regional availability, connectivity (Private IP,
Public IP, PSA, PSC), backups, point-in-time recovery, scaling (vertical and
horizontal), or Quota management: read
[Core Concepts](references/core-concepts.md).
- To manage clusters, instances, scaling, or backups via the CLI: read
[CLI Usage](references/cli-usage.md).
- To configure AlloyDB remote MCP tools: read
[MCP Usage](references/mcp-usage.md).
- To deploy AlloyDB using Terraform or Kubernetes Config Connector (KCC): read
[Infrastructure as Code](references/iac-usage.md).
- To configure IAM roles, service usage roles, service agents, database
users/privileges, or network security (public IP authorization, Auth Proxy
sidecar configuration): read [IAM & Security](references/iam-security.md).
*If you need product information not found in these references, use the
`developer_knowledge:search_documents` tool (see [Developer Knowledge MCP setup](https://developers.google.com/knowledge/mcp) for installation instructions).*
## Directives for Agents
Agents MUST adhere to the following directives when answering queries related to
AlloyDB:
- **Provide Multiple Methods:** When explaining how to perform administrative
tasks (like backups, scaling, or database user creation), always provide
both the Google Cloud Console steps and the `gcloud` CLI commands if both
are available in the reference documents.
- **Prioritize Private IP:** Recommend Private IP (especially PSC) over Public
IP for connections to ensure traffic remains within the Google Cloud network
and reduces exposure.
- **Require Serverless Connectors:** Verify and state that Serverless VPC
Access or Direct VPC Egress is required when connecting from Cloud Run to
Private IP.
- **Enforce Connectors:** Always direct users to configure the AlloyDB Auth
Proxy (running as a sidecar or locally) or language connectors rather than
direct TCP connections.
- **Block Open Public Access:** If Public IP is configured, warn against and
reject designs with `0.0.0.0/0` in Authorized Networks as this exposes the
database to the entire internet.
- **Default to IAM Database Authentication:** Suggest IAM database
authentication and the `alloydbiamuser` database role instead of static
database passwords.
- **Enforce Least Privilege Connection:** When explaining connection roles,
explicitly state that `roles/alloydb.client` should be used to adhere to the
principle of least privilege, and warn against using broader roles like
`roles/alloydb.admin` for connections.
- **Mention All Creation Methods:** When describing how to create IAM database
users, explicitly state that they can be created using the Google Cloud
Console, the `gcloud` CLI, and the AlloyDB API.
- **Explain Private IP Options:** When explaining Private IP connectivity,
always explicitly mention and describe both **Private Services Access
(PSA)** and **Private Service Connect (PSC)** as the supported methods,
recommending PSC for new deployments.
- **Compare Direct Connections:** Explicitly explain that direct connections
(connecting directly to the private IP without connectors) are possible but
discouraged, and compare their security (lack of IAM/mTLS) to secure methods
like the AlloyDB Auth Proxy or language connectors.
- **Enforce SQL Alone Warning:** When explaining IAM user creation, you MUST
explicitly state that "IAM database users cannot be created using standard
SQL alone" and must be registered via the control plane first.
- **Enforce Roles and Privileges Terminology:** When explaining database
object access, you MUST explicitly state that "standard PostgreSQL roles and
privileges" apply, using both terms.
- **Explain Backup Lifecycle:** When explaining backups, always explicitly
state that discrete backups exist independently of the source cluster and
remain active even if the source cluster is deleted.
- **Recommend Connectors for Public IP:** Explicitly state that secure
connection methods (AlloyDB Auth Proxy, Language Connectors) are
**especially recommended** for connections over Public IP.
- **Mention Autoscaling:** When explaining read pool scaling, always
explicitly mention the option of using **read pool autoscaling** and state
that it is in **Preview**.
## Supporting Links
- [AlloyDB for PostgreSQL Documentation](https://docs.cloud.google.com/alloydb/docs/overview.md.txt)
- [AlloyDB Auth Proxy GitHub Repository](https://github.com/GoogleCloudPlatform/alloydb-auth-proxy)
- [AlloyDB Java Connector GitHub Repository](https://github.com/GoogleCloudPlatform/alloydb-java-connector)
- [AlloyDB Python Connector GitHub Repository](https://github.com/GoogleCloudPlatform/alloydb-python-connector)
- [AlloyDB Go Connector GitHub Repository](https://github.com/GoogleCloudPlatform/alloydb-go-connector)
references/
attribution.md 1.8 KB
# Usage Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command with
this skill, follow these usage attribution instructions. Tag every command you
execute directly in the terminal so usage can be attributed. The tag identifies
only the skill and its version; it carries no user data.
- **`gcloud` CLI Commands**: Prefix every `gcloud` invocation, whatever the
subcommand, with the metrics environment variable. Set it inline on each
command because shell state may not persist between commands:
```bash
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:alloydb-basics)" \
gcloud <command> [flags]
```
Do not use `gcloud config set` for this: it would persist beyond the current
task and mislabel unrelated usage.
- **Direct HTTP, REST, and MCP Requests**: On direct HTTP calls to Google
Cloud APIs (for example with `curl`) or HTTP requests to a remote MCP
server, include `agent-skills/1.0 (skill:alloydb-basics)` in the `User-Agent`
header. If a `User-Agent` header is already specified, append this string to
the end of it rather than overwriting existing `User-Agent` data — the
collection pipeline parses the `agent-skills/<version>` and `skill:<name>`
tokens, so any rewording breaks attribution:
```
User-Agent: <existing_user_agent> agent-skills/1.0 (skill:alloydb-basics)
```
- **Constraint for Generated Code**: The tracking prefix is strictly for
commands you execute directly in the terminal. Do NOT include this tracking
prefix in generated scripts, Terraform templates, or code provided to the
user for their own repositories.
- **User Opt-Out**: If the user asks to disable or remove tracking or
attribution tags, omit the `CLOUDSDK_METRICS_REQUEST_ATTRIBUTION` variable
and custom `User-Agent` suffix from all commands.
cli-usage.md 3.5 KB
# AlloyDB CLI Usage
Ensure you have the [Google Cloud SDK installed](https://cloud.google.com/sdk/docs/install) and authenticated (`gcloud auth login`) before running these commands.
Manage AlloyDB resources using the `gcloud alloydb` command group.
## Clusters
- **Create a cluster:**
```bash
gcloud alloydb clusters create CLUSTER_ID --region=REGION \
--password=PASSWORD --network=VPC_NAME
```
- **List clusters:**
```bash
gcloud alloydb clusters list --region=REGION
```
- **Get cluster information:**
```bash
gcloud alloydb clusters describe CLUSTER_ID --region=REGION
```
- **Delete a cluster:**
```bash
gcloud alloydb clusters delete CLUSTER_ID --region=REGION
```
## Instances
- **Create a primary instance:**
```bash
gcloud alloydb instances create INSTANCE_ID --cluster=CLUSTER_ID \
--region=REGION --instance-type=PRIMARY --cpu-count=8
```
- **Create a read pool instance:**
```bash
gcloud alloydb instances create INSTANCE_ID --cluster=CLUSTER_ID \
--region=REGION --instance-type=READ_POOL \
--read-pool-node-count=2 --cpu-count=2
```
- **List instances:**
```bash
gcloud alloydb instances list --cluster=CLUSTER_ID --region=REGION
```
- **Restart an instance:**
```bash
gcloud alloydb instances restart INSTANCE_ID --cluster=CLUSTER_ID \
--region=REGION
```
- **Scale read pool horizontally (node count):**
```bash
gcloud alloydb instances update INSTANCE_ID --cluster=CLUSTER_ID \
--region=REGION --read-pool-node-count=NODE_COUNT
```
- **Scale instance vertically (CPU count):**
```bash
gcloud alloydb instances update INSTANCE_ID --cluster=CLUSTER_ID \
--region=REGION --cpu-count=CPU_COUNT
```
- **Scale instance vertically (machine type):**
```bash
gcloud alloydb instances update INSTANCE_ID --cluster=CLUSTER_ID \
--region=REGION --machine-type=MACHINE_TYPE
```
## Backups & Restore
- **Create an on-demand backup:**
```bash
gcloud alloydb backups create BACKUP_ID --cluster=CLUSTER_ID \
--region=REGION
```
- **List backups:**
```bash
gcloud alloydb backups list --region=REGION
```
- **Configure continuous backup recovery window:**
```bash
gcloud alloydb clusters update CLUSTER_ID --region=REGION \
--continuous-backup-recovery-window-days=DAYS
```
- **Enable and configure automated scheduled backups:**
```bash
gcloud alloydb clusters update CLUSTER_ID --region=REGION \
--automated-backup-days-of-week=DAYS_OF_WEEK \
--automated-backup-start-times=START_TIMES \
--automated-backup-retention-period=RETENTION_PERIOD
```
*Example:* `--automated-backup-days-of-week=MONDAY,WEDNESDAY,FRIDAY --automated-backup-start-times=01:00 --automated-backup-retention-period=30d`
- **Disable automated backups:**
```bash
gcloud alloydb clusters update CLUSTER_ID --region=REGION \
--disable-automated-backup
```
- **Restore from a discrete backup:**
```bash
gcloud alloydb clusters restore DEST_CLUSTER_ID --region=REGION \
--backup=BACKUP_ID
```
- **Restore to a point in time (PITR):**
```bash
gcloud alloydb clusters restore DEST_CLUSTER_ID --region=REGION \
--source-cluster=SOURCE_CLUSTER_ID \
--point-in-time=TIMESTAMP
```
*Note: TIMESTAMP must be in RFC 3339 format, e.g. `2026-07-30T15:00:00.00Z`.*
core-concepts.md 5.4 KB
# AlloyDB Core Concepts
AlloyDB for PostgreSQL separates compute from storage, allowing for efficient,
independent resource scaling and high availability.
## Regional Availability
A cluster consists of a primary instance and optional read pool instances,
located in the same region. Storage is replicated across multiple zones.
## Connectivity & Auth Proxy
AlloyDB supports connecting via Private IP (recommended for internal traffic)
and Public IP (for external traffic).
### Connection Methods
- **Private IP:** Keeps traffic internal to Google Cloud.
- **Private Services Access (PSA):** Establishes a private connection
using VPC Network Peering between your VPC and Google's service network.
- **Private Service Connect (PSC):** Allows you to connect to AlloyDB
instances using endpoints in your VPC, simplifying multi-VPC address
mapping and avoiding IP conflicts. Recommended for new deployments.
- **Direct Connections:** Clients within the same VPC can connect directly
to the instance's private IP. However, direct connections are
discouraged because they lack the enhanced security features (like IAM
authentication and automatic mTLS encryption) provided by the AlloyDB
Auth Proxy or language connectors.
- **Public IP:** Allows connections from outside Google Cloud (e.g., from a
developer's local machine or personal laptop).
- **Recommendation:** For machines outside of the VPC (including local
development laptops), recommend enabling public IP combined with the
AlloyDB Auth Proxy and restricting access using Authorized Networks
(never use wide-open `0.0.0.0/0`).
### Client Integration
- **AlloyDB Auth Proxy / Language Connectors:** Always recommend using these
secure connection methods. They handle IAM database authentication and
provide automatic mTLS encryption.
- **Cloud Run:** To connect a Cloud Run service using Private IP, you must
configure either Serverless VPC Access or Direct VPC Egress.
## Connection Pooling
Use **PgBouncer** (integrated) or connection pooling libraries to manage high
numbers of concurrent database connections.
## Backups and Recovery
AlloyDB provides two main data protection mechanisms: continuous backups with
Point-in-Time Recovery (PITR), and discrete on-demand or scheduled backups.
### Continuous Backup & PITR
- **Default Status:** Continuous backup is enabled by default.
- **Retention:** Retains recovery data for microsecond-precision restoration
within a retention window (default 14 days, configurable from 1 to 35 days).
- **Behavior:** Restoring using PITR creates a new AlloyDB cluster.
### On-Demand & Scheduled Backups
- **Console Configuration (On-Demand Backup):** To create an on-demand backup
in the Google Cloud Console:
1. Go to the **AlloyDB Clusters** page.
2. Click the ID of the cluster you want to back up in the **Resource Name**
column.
3. In the left navigation menu, click **Data protection**.
4. Click **Create backup**.
5. Enter a **Backup ID** and optional description.
6. Click **Create**.
- **Lifecycle:** Discrete backups exist independently of the source cluster
and remain active even if the source cluster is deleted. Continuous backups
(and PITR capability) are deleted when the source cluster is deleted.
- **Restoring:** Restoring from a discrete backup creates a new AlloyDB
cluster.
## Scaling & Quotas
### Read Pool Scaling
Scale AlloyDB read pool instances horizontally or vertically.
- **Horizontal Scaling:** Adjust node counts (scale out/in).
- **Console Steps:**
1. Go to the **AlloyDB Clusters** page.
2. Click the ID of the cluster you want to scale.
3. In the **Instances** section, click **Edit** in the row of the read
pool instance.
4. In the **Read pool nodes** field, enter the new number of nodes.
5. Click **Update instance**.
- **gcloud Command:**
```bash
gcloud alloydb instances update INSTANCE_ID \
--cluster=CLUSTER_ID --region=REGION \
--read-pool-node-count=NODE_COUNT
```
- **Vertical Scaling:** Change machine resource sizes (scale up/down).
- **Console Steps:**
1. Go to the **AlloyDB Clusters** page.
2. Click the ID of the cluster.
3. In the **Instances** section, click **Edit** in the row of the
instance you want to scale (primary or read pool).
4. In the **Machine configuration** section, select a different machine
type (which defines the CPU count and memory).
5. Click **Update instance**.
- **gcloud Commands:**
* Scale by CPU count:
```bash
gcloud alloydb instances update INSTANCE_ID \
--cluster=CLUSTER_ID --region=REGION \
--cpu-count=CPU_COUNT
```
* Scale by machine type:
```bash
gcloud alloydb instances update INSTANCE_ID \
--cluster=CLUSTER_ID --region=REGION \
--machine-type=MACHINE_TYPE
```
- **Autoscaling:** Enable read pool autoscaling (Preview) to scale node counts
dynamically based on load.
### Quota Management
- View service quotas in the Google Cloud Console Quotas page under the
AlloyDB API filter.
- Initiate quota increase requests directly from the Console Quotas page.
iac-usage.md 3.3 KB
# AlloyDB Infrastructure as Code Usage
Manage AlloyDB resources declaratively using Terraform or Kubernetes Config
Connector (KCC).
## Table of Contents
- [Terraform](#terraform) (Line 11)
- [Kubernetes Config Connector (KCC)](#kubernetes-config-connector-kcc)
(Line 73)
## Terraform
### Resources
- `google_alloydb_cluster`: Manages an AlloyDB cluster.
- `google_alloydb_instance`: Manages an AlloyDB instance within a cluster.
### Example
```terraform
data "google_project" "project" {}
resource "google_compute_network" "default" {
name = "alloydb-network"
}
resource "google_compute_global_address" "private_ip_alloc" {
name = "alloydb-cluster"
address_type = "INTERNAL"
purpose = "VPC_PEERING"
prefix_length = 16
network = google_compute_network.default.id
}
resource "google_service_networking_connection" "vpc_connection" {
network = google_compute_network.default.id
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [google_compute_global_address.private_ip_alloc.name]
}
resource "google_alloydb_cluster" "default" {
cluster_id = "alloydb-cluster"
location = "us-central1"
network_config {
network = google_compute_network.default.id
}
initial_user {
password = "alloydb-cluster"
}
deletion_protection = false
}
resource "google_alloydb_instance" "default" {
cluster = google_alloydb_cluster.default.name
instance_id = "alloydb-instance"
instance_type = "PRIMARY"
machine_config {
cpu_count = 2
}
depends_on = [google_service_networking_connection.vpc_connection]
}
```
For additional deployment context, see the
[Google Provider Reference](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/alloydb_cluster).
## Kubernetes Config Connector (KCC)
### Resources
- `AlloyDBCluster`: Manages an AlloyDB cluster.
- `AlloyDBInstance`: Manages an AlloyDB instance within a cluster.
### Example
```yaml
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: alloydb-network-kcc
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: alloydb-kcc-addr
spec:
location: global
addressType: INTERNAL
purpose: VPC_PEERING
prefixLength: 16
networkRef:
name: alloydb-network-kcc
---
apiVersion: servicenetworking.cnrm.cloud.google.com/v1beta1
kind: ServiceNetworkingConnection
metadata:
name: alloydb-vpc-connection-kcc
spec:
networkRef:
name: alloydb-network-kcc
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- name: alloydb-kcc-addr
---
apiVersion: alloydb.cnrm.cloud.google.com/v1beta1
kind: AlloyDBCluster
metadata:
name: alloydb-cluster-kcc
spec:
location: us-central1
networkConfig:
networkRef:
name: alloydb-network-kcc
initialUser:
password:
valueFrom:
secretKeyRef:
name: alloydb-secret
key: password
---
apiVersion: alloydb.cnrm.cloud.google.com/v1beta1
kind: AlloyDBInstance
metadata:
name: alloydb-instance-kcc
spec:
clusterRef:
name: alloydb-cluster-kcc
instanceType: PRIMARY
machineConfig:
cpuCount: 2
```
For more information, see the
[Config Connector resources](https://docs.cloud.google.com/config-connector/docs/reference/overview.md.txt).
iam-security.md 4.2 KB
# AlloyDB IAM & Security
AlloyDB uses Google Cloud Identity and Access Management (IAM) to enable
connection authorization and database-level authentication/authorization.
## Predefined IAM Roles
| Role Name | Description / Permissions Granted |
| :--------------------------- | :-------------------------------------------- |
| `roles/alloydb.admin` | Full control of all AlloyDB resources. |
| `roles/alloydb.client` | Connection access. Authorizes getting cluster |
: : and instance information, and generating :
: : client certificates. :
| `roles/alloydb.databaseUser` | Authenticated database user access. |
| `roles/alloydb.viewer` | Read-only access to AlloyDB resource |
: : configurations. :
### Granting Auth Proxy & Client Permissions
To configure the AlloyDB Auth Proxy or language connectors, grant both
`roles/alloydb.client` and `roles/serviceusage.serviceUsageConsumer` roles to
the client's service account. Execute the following gcloud commands:
```bash
# Grant AlloyDB Client permissions to authorize connections
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:SERVICE_ACCOUNT_EMAIL" \
--role="roles/alloydb.client"
# Grant Service Usage Consumer permissions to authorize API calls
gcloud projects add-iam-policy-binding PROJECT_ID \
--member="serviceAccount:SERVICE_ACCOUNT_EMAIL" \
--role="roles/serviceusage.serviceUsageConsumer"
```
To maintain security and adhere to the **principle of least privilege**,
prioritize these minimum granularity roles. Specifically, `roles/alloydb.client`
is preferred over broader roles like `roles/alloydb.admin` for client
connections.
## Secure Connectivity
- **Private IP (Recommended):** Keeps traffic internal to Google Cloud.
- **Private Service Connect (PSC):** Use PSC for new deployments to
simplify multi-VPC address mapping.
- **Private Services Access (PSA):** Uses VPC peering.
- **Serverless Integration:** When connecting from Cloud Run to a Private
IP AlloyDB instance, configure a Serverless VPC Access connector or
enable Direct VPC Egress.
- **Public IP:** Allows connections from outside Google Cloud.
- **Authorized Networks:** Always restrict access to specific, narrow IP
ranges. Never permit `0.0.0.0/0`.
- **Connectors:** Always use AlloyDB Connectors (Auth Proxy or language
libraries) to secure Public IP traffic with IAM authentication and mTLS.
- **VPC Service Controls (VPC-SC):** Configure security perimeters to prevent
data exfiltration.
## Database User Management
### Built-in Password Authentication
To manage standard database-level users:
1. Connect to the database using `psql` as an administrator (e.g., `postgres`).
2. Run standard PostgreSQL creation statements:
```sql
CREATE USER username WITH PASSWORD 'secure_password';
```
3. Control object access using standard PostgreSQL roles and privileges via SQL
`GRANT` and `REVOKE` statements.
### IAM Database Authentication
To authenticate using Google Cloud IAM identities (service accounts or
users):
4. **Enable IAM authentication** on the target AlloyDB instance configuration.
5. **Create the user principal** using the Google Cloud Console, `gcloud` CLI,
or the AlloyDB API. Note that IAM database users *cannot be created using
standard SQL alone*; they must first be registered via the control plane
(Console, CLI, or API) before they can be granted access in the database (do
not use SQL `CREATE USER` to create them):
```bash
gcloud alloydb users create USER_EMAIL --cluster=CLUSTER_ID \
--region=REGION --type=IAM_USER
```
6. Connect as an administrator and grant the `alloydbiamuser` role to the IAM
user:
```sql
GRANT alloydbiamuser TO "USER_EMAIL";
```
## Service Agents
AlloyDB uses a managed service agent template
(`service-PROJECT_NUMBER@gcp-sa-alloydb.iam.gserviceaccount.com`). Verify that
this service agent has project permissions to manage storage and backups.
mcp-usage.md 1.2 KB
# AlloyDB MCP Usage
Configure the remote Model Context Protocol (MCP) server to allow AI
applications to query and administer AlloyDB databases.
## Endpoint
Use the region-specific API endpoint format:
`https://alloydb.REGION.rep.googleapis.com/mcp`
Replace `REGION` with the target Google Cloud region ID (e.g., `us-central1`).
## Setup and Authentication
1. Enable the AlloyDB API (`alloydb.googleapis.com`) in the project.
2. Grant the `roles/mcp.toolUser` role to the principal executing the tool
calls.
3. Point your MCP host to the regional endpoint. For detailed instructions, see
the
[Use the AlloyDB remote MCP server](https://docs.cloud.google.com/alloydb/docs/ai/use-alloydb-mcp.md.txt)
guide.
## Resources
- [AlloyDB API Documentation](https://cloud.google.com/alloydb/docs/reference/rest)
- [MCP Toolbox](https://mcp-toolbox.dev/): Use this open-source tool as a
local alternative to run the remote MCP server in development environments.
- [MCP Toolbox AlloyDB Integration](https://mcp-toolbox.dev/integrations/alloydb/source/)
- [Configure your MCP client](https://docs.cloud.google.com/alloydb/docs/connect-ide-using-mcp-toolbox.md.txt)
License (Apache-2.0)
Apache-2.0
Source: google/skills
View full license text
Licensed under the Apache License, Version 2.0. See https://github.com/google/skills/blob/main/LICENSE