GuidesAI agents

Google Search Console MCP: connect your search data to Claude and other agents

Set up a Google Search Console MCP server for Claude Code and other agents: hosted or self-run, read-only access, the 7-day sign-in trap and checks.

6 min readUpdated 2026-12-06By the Auditmatic team
Search Console data passing through a connector to an AI assistant, with a lock marking read-only access.
On this page

A Google Search Console MCP server is a connector that lets an AI agent read your Search Console data. MCP, the Model Context Protocol, is a standard way for an agent to use outside tools. Once connected, you can ask in plain words which searches show your site, which pages are close to page one and why a page is not indexed, and the agent fetches the numbers instead of guessing.

Two ways to connect it

The servers available today fall into two groups. The difference is who holds the Google sign-in and how much setup you do.

Hosted server
Add one URL to your agent
Sign in with Google
The provider keeps the access token
Nothing to update
Server on your computer
Create a Google Cloud project
Download OAuth credentials
The token stays on your machine
You install and update it
Illustration of the two routes. Both end with the agent calling Google's Search Console API.
QuestionHostedSelf-run
Setup timeA few minutesLonger, mostly in Google Cloud
Google Cloud project neededNoYes
Who stores the tokenThe providerYou
Works in web chat appsYes, if the app accepts remote serversUsually desktop and terminal clients only

Hosted setup with Auditmatic

Auditmatic includes Search Console tools in its MCP server. It asks Google for the read-only scope, and the Search Console tools use no credits, so a free account is enough.

  1. Create a free account at auditmatic.app, add your site as a project, open its Search performance page and connect your Google account. Pick the property for the site.
  2. Add the server to your agent. In Claude Code:
    claude mcp add --transport http auditmatic https://auditmatic.app/mcp
  3. Run /mcp inside Claude Code and sign in. Other clients are covered on Agent setup.
  4. Ask: Show my Search Console clicks and impressions by page for the last 28 days.

The agent gets these tools:

  • get_search_console_performance: clicks, impressions, click-through rate and position by query, page, country, device or date. It returns 250 rows by default and up to 1,000 per call.
  • inspect_urls: the index status, last crawl and chosen canonical for up to 10 addresses per call.
  • list_search_console_sites and set_search_console_site: see your properties and choose which one a project reads.

Self-run setup with an open-source server

If you want the token to stay on your own computer, you can run an open source server such as mcp-search-console, published on PyPI. You need the uv tool installed and your own Google Cloud credentials.

  1. In the Google Cloud console, create a project and enable the Search Console API.
  2. Set up the OAuth consent screen, create a client of the Desktop type and download its JSON file.
  3. Add the server, pointing it at that file. In Claude Code:
    claude mcp add gsc --scope user \
      -e GSC_OAUTH_CLIENT_SECRETS_FILE=/full/path/client_secret.json \
      -- uvx mcp-search-console
  4. Ask your agent to list your Search Console properties. A browser window opens for the Google sign-in the first time.

That server's documentation, at version 0.4.2, says it requests read-only access unless you set GSC_ALLOW_DESTRUCTIVE to true, which enables adding and deleting sites and deleting sitemaps. Leave it off.

Why the sign-in stops working after seven days

If you create your own Google credentials, this is the trap to know about. Google's OAuth documentation says that a project with an external consent screen in Testing status gets a refresh token that expires in 7 days, unless it asks only for basic name, email and profile details. Search Console access is not in that exception, so your connector works for a week and then asks you to sign in again.

While the project is in Testing, you also have to add each person as a test user, with a limit of 100. To stop the weekly expiry, change the publishing status on the consent screen to production. Google may show a warning for an app it has not verified. A hosted server that has its own published app saves you this step.

Give the agent the least access it needs

Search Console has two API scopes. webmasters.readonly reads data. webmasters can also write. Choose read-only for reporting and research, and check which one the consent screen asks for before you approve it.

Access also depends on your permission level on the property. According to Google's permissions page, owners have full control, full users can view all data and take some actions, and restricted users can view most data. If you connect a client's site, ask for the lowest level that shows what you need.

Prompts worth asking first

Show queries in positions 8 to 20 with at least 50 impressions in
the last 28 days, with the page for each. Which three pages would
you improve first, and why?
Compare clicks and impressions for the last 28 days with the 28
days before. List the pages that fell the most and check whether
they are still indexed.
Inspect these five URLs. For any that are not indexed, tell me
the reason Google gives and the canonical it chose.

Check the numbers before you act

  • Rare queries are missing. Google leaves some queries out to protect privacy, so query rows can add up to less than the chart total.
  • You see the top rows, not all rows. Ask for one page or one country when you need detail.
  • Recent days change. Data is typically available after 2 to 3 days. Leave the newest days out of comparisons.
  • Automated searches slip in. Very long queries full of search operators or numbered prefixes are unlikely to be customers. Do not plan pages around them.
  • Inspection is not a live test. It reports the version Google has indexed, and it cannot ask Google to index a page.

Before trusting a new connector, compare one number with the Search Console website: the same property, dates and search type should give the same total.

Fix common connection problems

  • Permission error on a property. A Domain property is written sc-domain:example.com. A URL-prefix property includes the protocol and trailing slash. Ask the server to list your properties and use the exact string.
  • The site is missing from the list. You signed in with a Google account that has no access to it.
  • Sign-in expires weekly. Your consent screen is still in Testing.
  • The server does not start. Use the full path to uvx in desktop clients, then restart the app.

Frequently asked questions

Does Google publish an official Search Console MCP server?

We found none as of 6 December 2026. The options are third-party servers, hosted or self-run, that call Google's Search Console API.

Is a Google Search Console MCP server free?

Google's API has no charge. Open-source servers are free to run. In Auditmatic the Search Console tools use no credits on any plan, including the free one.

Can the agent request indexing?

Not through URL Inspection in the API, which only reads the indexed status. Use the Request indexing button in Search Console for Google.

How many URLs can I inspect?

Google's limit for URL Inspection is 2,000 a day and 600 a minute for each site. A single tool call may accept fewer.

Where to go next

To pull the data into your own scripts instead, read the Search Console API guide. If inspection shows missing pages, work through why pages are not indexed. To combine search data with a crawl, see the SEO MCP server and the free site audit.