Connect Google Search Console
Google Search Console shows how a website performs in Google Search: the searches it appears for, its clicks and position, the sitemaps Google reads, and whether Google has indexed a page. StackJack…
Written By Christopher Scaminaci
Last updated About 2 hours ago
Google Search Console shows how a website performs in Google Search: the searches it appears for, its clicks and position, the sitemaps Google reads, and whether Google has indexed a page. StackJack connects an AI assistant to the Google Search Console API.
Connecting Google Search Console to StackJack gives your AI assistant a family of gsc_ MCP tools. MCP (Model Context Protocol) tools are the standardized commands
an AI assistant can call through StackJack. With them, your AI can:
- Report on search traffic - clicks, impressions, click-through rate and average position for a date range, grouped by query, page, country, device, date and more
- Check the sitemaps - list the sitemaps of a property, read one, submit one (on Pro plans) or delete one (on Pro plans)
- List the properties - the properties the connection can reach and its permission on each, and add or remove a property (on Pro plans)
- Inspect a URL - whether Google has indexed a page, how it was crawled, its canonical, and its mobile usability, AMP and rich results
How StackJack authenticates to Google
Google Search Console is connected with a Google Cloud service account on your own Google Cloud project. You give StackJack the service account's email and its private key from a JSON key file. StackJack signs a request with the key and gets a short-lived token from Google on its own, so you never copy a token. There is no sign-in window and no domain-wide delegation.
The service account acts for itself, not for the person asking. It reaches the Search Console properties it was added to, and nothing else.
1. Enable the API
- In the Google Cloud console, choose a project (or create one).
- Open APIs and services, then Library.
- Find the Google Search Console API and click Enable.
2. Create the service account and a key
- Open IAM and admin, then Service accounts, and create a service account. It needs no project role.
- Open the service account's Keys tab, click Add key, then Create new key, choose JSON and download the file.
The file holds client_email and private_key. Keep it safe: anyone with the file can act as the service account.
3. Add the service account to each property
- In Search Console, open the property.
- Open Settings, then Users and permissions.
- Add the service account's email (the
client_emailin the key file).
Google documents adding a service account to a property as a delegated owner (Settings, then Users and permissions, then Add an owner). Repeat this for every property you want the connection to reach.
Connect it in StackJack
- Open Connectors, then Google Search Console.
- Paste the Service Account Email (
client_email) and the Private Key (private_key, the whole block including theBEGINandENDlines). - Click Test connection. StackJack asks Google for a new token and lists the properties the service account holds. Both steps change nothing.
If the service account holds no property yet, the test says so, and the result does not count against the connection: add the service account's email to a property, then test again.
Paste the email and the private key again whenever you save the connection, including when you only rename it.
What is worth knowing before you start
Property addresses
Every tool takes siteUrl, the property exactly as gsc_list_sites returns it:
- a URL-prefix property ends with a slash, for example
https://www.example.com/ - a Domain property starts with
sc-domain:, for examplesc-domain:example.com
A sitemap tool also takes feedpath, the sitemap's full URL as gsc_list_sitemaps returns it.
Search traffic
gsc_query_search_analytics takes a startDate and an endDate in YYYY-MM-DD form, Pacific time. It returns up to 25,000 rows a call, sorted by clicks. To page, set
rowLimit and advance startRow by it. Grouping by HOUR needs dataState set to HOURLY_ALL. Filters are a JSON array of filter groups, as the tool's description
shows.
Changes that need approval
Deleting a sitemap and removing a property are marked as changes that need approval before an agent can run them. Removing a property takes it out of the service account's list, so the connection can lose that property. Submitting a sitemap and adding a property are not marked: a submitted sitemap only asks Google to read it, and an added property is unverified and grants nothing.
Quotas
Google's quotas apply to each connection:
- Search Analytics is counted per property and per user, and as a load quota over 10 minutes and over a day. Grouping or filtering by page and query costs the most. If Google refuses for quota, wait 15 minutes.
- URL inspection allows 2,000 calls a day and 600 a minute per property.
- The other calls allow 20 a second and 200 a minute.
StackJack paces one connection at 200 calls a minute. A quota refusal is reported with Google's reason and does not count against the connection.
When Google refuses a call
- The key is rejected: the key was deleted or disabled, or the service account no longer exists. Create a new JSON key and paste the email and the key again.
- The service account is not recognised: check that the email is the
client_emailfrom the key file. - The API is not enabled (403): enable the Google Search Console API in the project that owns the key. This does not count against the connection.
- Not allowed (403): the service account's permission on the property does not allow the action, or the property is not in its list. Add the service account to the property.
- Not found (404): use the property and sitemap addresses exactly as the list tools return them.
- Quota (429, or 403 with a quota reason) or an outage (5xx): wait and try again.
Plans and limits
Reads are available on the Free tier. Every change is Pro. Business reaches the same tools as Pro and differs by monthly call quota.
The Google Search Console API also has a mobile-friendly test. StackJack does not offer it, because Google gives that test an API key instead of the service account sign-in this connector uses.
See the generated Google Search Console tool reference for the current inventory, plan assignment, input schemas and destructive-action labels.
Google Search Console tools
gsc_ · 10 tools · Free 6 · Pro 4
Search analytics
Sitemaps
Sites
URL inspection
Was this helpful?
More in Connector guides
Connect 3CXConnect AbleSignConnect Acronis Cyber Protect CloudConnect Action1Still need help? Ask the team