Set up Google Search Console in Metorial for AI agents
Share Google Search Console with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 5 tools (3 read-only).
To give your team Google Search Console in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Search Console integration in a Metorial portal, and each person signs in to Google Search Console with their own account. Agents can query search traffic analytics including clicks, impressions, CTR, and average position, with filtering by query, page, country, device, search type, and date. The integration has 5 tools, 3 read-only and 2 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Google Search Console in a portal and how each person connects
- The 4 OAuth scopes Google Search Console can request, and what each one allows
- How to keep the 3 read-only tools and reject the other 2
Before you start
- A portal with at least one access group
- An account with Google Search Console for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| OAuth | OAuth | Signs in to Google Search Console |
OAuth
People sign in to Google Search Console and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
https://www.googleapis.com/auth/webmasters | Read & Write | Full read and write access to Google Search Console properties |
https://www.googleapis.com/auth/webmasters.readonly | Read Only | Read-only access to Google Search Console properties |
https://www.googleapis.com/auth/userinfo.email | View your email address | |
https://www.googleapis.com/auth/userinfo.profile | Profile | View your basic profile information |
The read-only tools need only https://www.googleapis.com/auth/webmasters. 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 Search Console OAuth app
With your own OAuth app, people see your company's name on the Google Search Console 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 Search Console and copy the Redirect URI.
Register the app
In the Google Cloud console, enable the API behind Google Search Console 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 Search Console integration.
Admin: share Google Search Console 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 Search Console. For how members connect, choose Each person connects, so everyone signs in to Google Search Console as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Google Search Console.
Choose who gets it
Add the access groups that should see Google Search Console. 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 Search Console integration. Once it exists, check which groups have it:
Employee: connect Google Search Console
In the portal
Open Google Search Console in the catalog
Sign in to your portal and open Google Search Console. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Google Search Console 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.
Add it to your AI client
metorial install adds your Google Search Console 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
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 3 read-only tools, such as list_sites and inspect_url, and lose the 2 destructive tools, such as manage_site or manage_sitemap.
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 tools lists the 5 tools, minus any you rejected. list_sites takes no input. It lists all site properties available in Google Search Console for the authenticated user.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (3)
inspect_url: Inspect a URL's indexing status and related data in Google Search Console. NeedsinspectionUrlandsiteUrl.query_search_analytics: Query Google Search traffic data for a site property. NeedssiteUrl,startDateandendDate.list_sites: List all site properties available in Google Search Console for the authenticated user.
Destructive tools (2)
manage_sitemap: List, retrieve, submit, or delete sitemaps for a Search Console site property. NeedsactionandsiteUrl.manage_site: Add or remove a site property from Google Search Console. NeedsactionandsiteUrl.
Triggers
Google Search Console has 1 trigger, which fire on events in Google Search Console:
inbound_webhook
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Google Search Console 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 Search Console on metorial.com: the integration overview