Google Cloud SQL integration
Google Cloud SQL Admin API for managing MySQL, PostgreSQL, and SQL Server instances. Create and manage instances, databases, users, backups, and replication.
Say what should happen.
The workflow builds itself.
Common Google Cloud SQL use cases
- automate instance management
- automate user management
- automate database management
- automate backup run management
- automate replica management
- automate operation management
- list user programmatically
- create user programmatically
- delete user programmatically
- update user programmatically
What you can do with Google Cloud SQL
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Each badge shows the default agent permission of an endpoint (allowed: an agent calls it without asking; ask first: you are asked before an agent calls it, when the agent or chat asks permission for sensitive actions; never: no agent may call it), which every user can change endpoint by endpoint in their credential settings.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Instance, 11 operations
clone_instanceClone instancePOSTAgents: ask firstCreates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restartcreate_instanceCreate instancePOSTAgents: ask firstCreates a new Cloud SQL instancedelete_instanceDelete instanceDELETEAgents: ask firstDeletes a Cloud SQL instance. Delete instance.export_instanceExport instancePOSTAgents: ask firstExports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV filefailover_instanceFailover instancePOSTAgents: ask firstInitiates a manual SQL Server Availability Group failover of the primary instance to a standby instanceget_instanceGet instanceGETAgents: ask firstRetrieves a resource containing information about a Cloud SQL instanceimport_instanceImport instancePOSTAgents: ask firstImports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storagelist_instancesList instancesGETAgents: ask firstLists Cloud SQL instances in a Google Cloud projectpatch_instancePatch instancePATCHAgents: ask firstPartially updates settings of a Cloud SQL instance in the request body using patch semanticsrestart_instanceRestart instancePOSTAgents: ask firstRestarts a Cloud SQL instance. Restart instance.update_instanceUpdate instancePUTAgents: ask firstUpdates settings of a Cloud SQL instance (replaces entire resource)
Backup run, 4 operations
create_backup_runCreate backup runPOSTAgents: ask firstCreates a new backup run on demanddelete_backup_runDelete backup runDELETEAgents: ask firstDeletes the backup taken by a backup runget_backup_runGet backup runGETAgents: ask firstRetrieves a resource containing information about a backup runlist_backup_runsList backup runsGETAgents: ask firstLists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time
Database, 4 operations
create_databaseCreate databasePOSTAgents: ask firstInserts a resource containing information about a database inside a Cloud SQL instancedelete_databaseDelete databaseDELETEAgents: ask firstDeletes a database from a Cloud SQL instanceget_databaseGet databaseGETAgents: ask firstRetrieves a resource containing information about a database inside a Cloud SQL instancelist_databasesList databasesGETAgents: ask firstLists databases in the specified Cloud SQL instance
User, 4 operations
delete_userDelete userDELETEAgents: ask firstDeletes a user from a Cloud SQL instanceinsert_userInsert userPOSTAgents: ask firstCreates a new user in a Cloud SQL instancelist_usersList usersGETAgents: ask firstLists users in the specified Cloud SQL instanceupdate_userUpdate userPUTAgents: ask firstUpdates an existing user in a Cloud SQL instance
Operation, 3 operations
cancel_operationCancel operationPOSTAgents: ask firstCancels an instance operation that has not yet startedget_operationGet operationGETAgents: ask firstRetrieves an instance operation that has been performed on a Cloud SQL instancelist_operationsList operationsGETAgents: ask firstLists all instance operations that have been performed on Cloud SQL instances in a project
Replica, 3 operations
promote_replicaPromote replicaPOSTAgents: ask firstPromotes the read replica instance to be a stand-alone Cloud SQL instancestart_replicaStart replicaPOSTAgents: ask firstStarts the replication in the read replica instancestop_replicaStop replicaPOSTAgents: ask firstStops the replication in the read replica instance
Backup, 1 operation
restore_backupRestore backupPOSTAgents: ask firstRestores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart
OAuth scopes Google Cloud SQL requires
Each operation declares the scopes Google Cloud SQL requires for it.
https://www.googleapis.com/auth/sqlservice.adminneeded by cancel_operation, clone_instance, create_backup_run and 27 more
Use Google Cloud SQL from Claude Code, Cursor or Codex
Connect Google Cloud SQL in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Google Cloud SQL operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Google Cloud SQL
- Create your workspace
Sign up free. Nothing to install.
- Connect Google Cloud SQL once
Add your Google Cloud SQL connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Google Cloud SQL integration FAQ
What can you do with the Google Cloud SQL integration?
LiveContext exposes 30 operations on Google Cloud SQL, covering instance, backup run, database and user. Common uses include automate instance management, automate user management and automate database management.
Which OAuth scopes does Google Cloud SQL require?
The operations that declare a scope all need https://www.googleapis.com/auth/sqlservice.admin.
