MetorialDocs

Set up Google Cloud Storage in Metorial for AI agents

Share Google Cloud Storage with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or service account sign-in, 12 tools (4 read-only).

To give your team Google Cloud Storage in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Cloud Storage integration in a Metorial portal, and each person signs in to Google Cloud Storage with their own account. Agents can store, retrieve, and manage unstructured data as objects in Google Cloud Storage buckets. The integration has 12 tools, 4 read-only, 6 write and 2 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Google Cloud Storage in a portal and how each person connects
  • The 6 OAuth scopes Google Cloud Storage can request, and what each one allows
  • How to keep the 4 read-only tools and reject the other 8

Before you start

Sign-in methods

MethodTypeWhat a person provides
OAuth (default)OAuthSigns in to Google Cloud Storage
Service AccountService accountclientEmail, privateKey and scopes

The portal and metorial setup use OAuth unless someone picks another method.

OAuth

People sign in to Google Cloud Storage and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
https://www.googleapis.com/auth/devstorage.read_onlyRead OnlyRead data and list buckets
https://www.googleapis.com/auth/devstorage.read_writeRead WriteRead and modify data, but not metadata like IAM policies
https://www.googleapis.com/auth/devstorage.full_controlFull ControlFull control over data, including modifying IAM policies
https://www.googleapis.com/auth/cloud-platformCloud PlatformView and manage data across all Google Cloud services
https://www.googleapis.com/auth/userinfo.profileUser ProfileView your basic Google profile information
https://www.googleapis.com/auth/userinfo.emailUser EmailView your Google account email address

The read-only tools need only https://www.googleapis.com/auth/devstorage.read_only. Allow just that scope in the Scopes picker when you create your own auth credentials, and the connection cannot change anything.

Service Account

To connect, a person enters these values:

  • clientEmail: Service account client email
  • privateKey: Service account private key (PEM format)
  • scopes (optional): Comma-separated list of OAuth scopes. Defaults to full-control scope.

Setup settings

Whichever method you pick, setup also asks for:

  • projectId: Google Cloud project ID

Use your own Google Cloud Storage OAuth app

With your own OAuth app, people see your company's name on the Google Cloud Storage consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Google Cloud Storage and copy the Redirect URI.

Register the app

In the Google Cloud console, enable the API behind Google Cloud Storage under APIs & Services, Library. Then go to Google Auth platform, Clients, click Create Client, choose Web application, and paste the redirect URI from Metorial under Authorized redirect URIs. Google shows the client secret only when you create the client.

The Google Workspace guide covers the consent screen and the OAuth client in Google Cloud step by step.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Google Cloud Storage integration.

Admin: share Google Cloud Storage in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Google Cloud Storage. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Google Cloud Storage as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Google Cloud Storage.

Choose who gets it

Add the access groups that should see Google Cloud Storage. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Google Cloud Storage integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "google cloud storage"

Employee: connect Google Cloud Storage

In the portal

Open Google Cloud Storage in the catalog

Sign in to your portal and open Google Cloud Storage. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Google Cloud Storage sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "google cloud storage"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with Service Account instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Google Cloud Storage connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "google cloud storage"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 4 read-only tools, such as get_bucket and get_object, and lose the 6 write tools, such as copy_object or upload_object, and the 2 destructive tools, such as delete_object or manage_bucket.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "google cloud storage"
metorial tools <integration-id>
metorial call <integration-id> list_buckets -d '{}'

metorial tools lists the 12 tools, minus any you rejected. list_buckets takes no input. It lists Cloud Storage buckets in the configured project.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (4)

  • get_bucket: Get detailed information about a Cloud Storage bucket including its location, storage class, versioning status, lifecycle rules, website configuration, labels, and encryption settings. Needs bucketName.
  • list_buckets: List Cloud Storage buckets in the configured project.
  • list_objects: List objects in a Cloud Storage bucket. Needs bucketName.
  • get_object: Get an object's metadata and optionally download its content from a Cloud Storage bucket. Needs bucketName and objectName.

Write tools (6)

  • manage_lifecycle: Get or set lifecycle management rules on a Cloud Storage bucket. Needs bucketName and action.
  • upload_object: Upload a new object to a Cloud Storage bucket or overwrite an existing one. Needs bucketName, objectName and content.
  • manage_bucket_iam: Get or set IAM policies on a Cloud Storage bucket. Needs bucketName and action.
  • manage_notifications: List, create, or delete Pub/Sub notification configurations on a Cloud Storage bucket. Needs bucketName and action.
  • update_object_metadata: Update metadata on an existing object in a Cloud Storage bucket. Needs bucketName and objectName.
  • copy_object: Copy an object within or between Cloud Storage buckets. Needs sourceBucket, sourceObject, destinationBucket and destinationObject.

Destructive tools (2)

  • manage_bucket: Create, update, or delete a Cloud Storage bucket. Needs action and bucketName.
  • delete_object: Permanently delete an object from a Cloud Storage bucket. Needs bucketName and objectName.

Triggers

Google Cloud Storage has 2 triggers, which fire on events in Google Cloud Storage:

  • object_changes: Detects new or updated objects in a Cloud Storage bucket by polling.
  • inbound_webhook

Next steps