Set up Google Cloud Vision in Metorial for AI agents
Share Google Cloud Vision with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 11 tools, all read-only.
To give your team Google Cloud Vision in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Cloud Vision integration in a Metorial portal, and each person signs in to Google Cloud Vision with their own account. Agents can analyze images using pre-trained machine learning models. The integration has 11 tools, all read-only, plus 1 trigger.
What you'll learn
- How an admin shares Google Cloud Vision in a portal and how each person connects
- The 2 OAuth scopes Google Cloud Vision can request, and what each one allows
- How to list the Google Cloud Vision tools from the terminal
Before you start
- A portal with at least one access group
- An account with Google Cloud Vision for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
| Google OAuth 2.0 (default) | OAuth | Signs in to Google Cloud Vision |
The portal and metorial setup use Google OAuth 2.0 unless someone picks another method.
API Key
To connect, a person enters:
token: Google Cloud API key with Vision API enabled
Google OAuth 2.0
People sign in to Google Cloud Vision and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://www.googleapis.com/auth/cloud-platform | Cloud Platform | Full access to Google Cloud Platform resources including Cloud Vision |
https://www.googleapis.com/auth/cloud-vision | Cloud Vision | Access to Google Cloud Vision API |
The read-only tools need only https://www.googleapis.com/auth/cloud-vision. Allow just that scope in the Scopes picker when you create your own auth credentials, and the connection cannot change anything.
Use your own Google Cloud Vision OAuth app
With your own OAuth app, people see your company's name on the Google Cloud Vision 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 Vision and copy the Redirect URI.
Register the app
In the Google Cloud console, enable the API behind Google Cloud Vision 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 Vision integration.
Admin: share Google Cloud Vision 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 Vision. Under Auth Method, keep Google OAuth 2.0 or pick another. For how members connect, choose Each person connects, so everyone signs in to Google Cloud Vision as themselves.
Choose who gets it
Add the access groups that should see Google Cloud Vision. 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 Vision integration. Once it exists, check which groups have it:
Employee: connect Google Cloud Vision
In the portal
Open Google Cloud Vision in the catalog
Sign in to your portal and open Google Cloud Vision. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Google Cloud Vision 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
catalog search prints the catalog item ID. metorial setup uses Google OAuth 2.0. To connect with API Key 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 Vision 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.
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
Every Google Cloud Vision tool only reads, so the connection is read-only as it is.
Check it worked
metorial tools lists the 11 tools, minus any you rejected.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (11)
detect_landmarks: Identifies well-known natural and human-made landmarks in an image. Needsimage.detect_faces: Detects faces in an image and returns detailed attributes including emotional expression likelihoods (joy, sorrow, anger, surprise), facial orientation angles, detection confidence, and whether headwear or blur is present. Needsimage.get_crop_hints: Suggests optimal crop regions for an image based on its content. Needsimage.detect_logos: Recognizes logos of popular brands within an image. Needsimage.detect_labels: Identifies general objects, locations, activities, animal species, products, and more within an image. Needsimage.analyze_image: Performs multiple Vision API detection features on a single image in one request. Needsimageandfeatures.detect_image_properties: Analyzes an image to determine its dominant colors, returning RGB values, coverage fraction, and relevance scores. Needsimage.detect_web: Searches the web for information related to an image. Needsimage.detect_objects: Detects and localizes multiple objects in an image, returning each object's name, confidence score, and bounding box coordinates. Needsimage.detect_safe_search: Analyzes an image for explicit or inappropriate content across five categories: adult, spoof, medical, violence, and racy. Needsimage.detect_text: Extracts text from images using optical character recognition (OCR). Needsimage.
Triggers
Google Cloud Vision has 1 trigger, which fire on events in Google Cloud Vision:
inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Google Cloud Vision there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Google Workspace guide: the consent screen and the OAuth client in Google Cloud
- Google Cloud Vision on metorial.com: the integration overview