Cy De la VegaSEO and AI search

Guide20 min read

Connect Google Search Console to Claude with MCP

By Cy De la Vega, SEO and AI search leader

A tall light blue card stands beside a dark rule over a row of 7 light blue tiles, with the second tile blue and the fourth amber.A tall light blue card stands beside a dark rule over a row of 7 light blue tiles, with the second tile blue and the fourth amber.

A Google Search Console MCP server lets Claude answer questions from your data in Search Console, Google’s free tool for site owners. You can ask which queries lost clicks last month, or whether a page is indexed, meaning Google has stored it and can show it in search results. MCP, the Model Context Protocol, is the open standard that connects AI applications to outside tools and data.

Google publishes no official Search Console MCP server, so the recommended setup runs mcp-gsc, an open-source community server, read-only on your own computer. mcp-gsc costs nothing. The Search Console API, the interface other programs use for Search Console data, is free too, and Google’s Search Console API pricing page says that use is subject to usage limits. Your questions to Claude also count against your Claude plan’s usage limits, per Anthropic’s usage limit best practices article.

Each person sets it up under their own Google account, because the Personal sign-in app in this setup works only for the account that made it. That person needs a role on the Search Console property and some comfort running commands in a terminal. Only a property owner can add users, and Google requires no app verification for a Personal app.

Search Console is one source of search engine optimization (SEO) data for Claude. Claude for SEO and AEO has the guides for connecting Google Analytics and paid SEO tools as well.

Google has no official Search Console MCP server

Google’s list of its MCP servers, last updated December 2, 2026, has no entry for Search Console. Google Analytics has an official server, and it’s missing from that list too. How to set up the Google Analytics MCP server in Claude covers it.

Community servers such as mcp-gsc and mcp-server-gsc are built on the public Search Console API. Its Search Analytics API returns the clicks and positions your pages earn in Google Search, along with impressions, meaning times a page was shown in the results. Its URL Inspection API returns a URL’s index status.

Both servers run by default as local servers, programs the Claude desktop app or Claude Code starts on your own computer. You add a local server in a config file, the plain-text settings file the app reads when it opens, and it works only in those 2 apps. A connector, a remote server added by its URL, works in the Claude app on the web, desktop and phone, and in Claude Code when Claude Code is signed in with a Claude account.

How does a Search Console MCP server answer a question?

Claude fills in one of the server’s tools, and the server sends that request to the Search Console API. Claude writes its answer from the rows that come back.

  1. You ask Claude a question, such as which queries lost clicks last month.
  2. Claude picks a tool from the server’s list, such as mcp-gsc’s get_search_analytics.
  3. Claude fills in the dates, any filters and the dimensions the rows group by, such as query or page.
  4. The server sends that request to the Search Analytics API with your Google sign-in.
  5. The API returns up to 25,000 rows per request, sorted by clicks, according to Google’s Search Analytics query reference. mcp-gsc’s get_search_analytics asks for at most 500, and Claude writes the answer from those rows.

The rows become part of your Claude conversation, so treat them like a Search Console export pasted into a chat.

Query rows hold text strangers typed into Google, and that text can carry instructions aimed at Claude. With the read-only setup in Keep the Search Console MCP server read-only, a planted instruction can’t change anything in Search Console. It could get Claude to disclose your data through another tool connected to the same chat. The SEO MCP servers guide covers the settings that limit that risk under Can a web page trick Claude through an MCP server?

Use mcp-gsc as your Search Console MCP server

mcp-gsc is the server to use, because it defaults to read-only Google access and keeps its add and delete tools off until you turn them on. Run it on a computer only you use, and keep its token file in a folder only your account can open. The pick fits one person running it on a computer they control. Rolling it out across a company calls for that company’s own security review.

The servers were compared on published code and license, a release in the last 90 days, answered issues and a read-only default. GitHub stars and forks counted least.

mcp-gsc on GitHub is open source under the MIT license and written in Python by Amin Foroutan. It’s published on PyPI as mcp-search-console, and version 0.4.2 was uploaded on November 6, 2026. Its changelog lists the reported issues each version fixed. The repository has about 2,300 stars and 296 forks.

As of December 3, 2026, mcp-gsc has 3 open reports, all filed on November 29. The 2 security reports cover a network mode that accepts connections with no sign-in and a token file other accounts on the same computer can read. The third covers a sign-in reset that deletes the saved sign-in before checking that a new one can start. The setup below avoids both security problems and lowers the risk from the third. The step for each is under What security risks come with mcp-gsc?

Revisit the pick if new security reports come in against mcp-gsc or its maintainer stops addressing the ones already filed. Another signal is 90 days without a release, the test used to compare the servers. mcp-server-gsc is the next choice if any of those happen.

mcp-server-gsc on GitHub, by the developer ahonn, is the Node.js alternative. It has 290 stars and one maintainer listed on npm. It saves its token file so only your user account can read it.

mcp-server-gsc ranks second because version 0.4.0, released November 24, 2026, lists many breaking changes, so setups written for earlier versions may stop working. The 0.4.0 changelog also says its optional remote server no longer allows access without a sign-in. If you choose it, pin mcp-server-gsc@0.4.0 in the install command.

Which Google Search Console MCP server on GitHub can you trust?

A repository check narrows the Search Console MCP servers on GitHub to the few worth trying, though it can’t prove any server is safe.

  1. The repository names its publisher and its license.
  2. The default Google scope, the access level a sign-in grants an app, is webmasters.readonly. Search the repository for webmasters with GitHub’s search box to check.
  3. Write tools stay off until a setting turns them on.
  4. The latest release is recent, and the changelog or closed issues show fixes.
  5. The install command uses the exact package name in the README. For mcp-gsc that name is mcp-search-console. An older PyPI package called mcp-gsc, last released as 0.1.0 on September 2, 2025, lists the same author. It predates the read-only default, and the README doesn’t install it. A near-miss package name can run someone else’s code with your Google sign-in.
  6. The server runs on your computer over STDIO, the default connection where Claude starts the program and talks to it directly.

Keep the Search Console MCP server read-only

Two locks keep a Search Console MCP server from changing anything in Search Console, the webmasters.readonly scope on its Google sign-in and the Restricted role on the account. Google’s Search Analytics query reference lists 2 scopes, webmasters.readonly to read data and webmasters to read and write. Both locks protect the property from changes. They do nothing to stop Claude from reading the data and passing it to another tool in the same chat.

Before version 0.4.2, mcp-gsc asked for the read and write scope on every install, so a token file from an older install can carry write access. Upgrade to 0.4.2, delete the old token file and sign in again to clear it. The file sits in your user config folder unless GSC_CONFIG_DIR, an environment variable the server reads when it starts, names another folder.

To confirm a sign-in is read-only, open the token file, token.json, and check that its scopes list webmasters.readonly and nothing else. mcp-gsc’s server code on GitHub takes the scope from that file each time it refreshes the sign-in.

Two locks between Search Console and Claude
  • The pale slab is your Search Console property, and the dark block is Claude.
  • The gray walls are the two locks, the Restricted role first and the read-only scope beside Claude.
  • Reads pass both locks, and Claude can hand that data to another tool in the chat.
  • A sitemap submission stops at the read-only scope.

Can a Search Console MCP server change your site?

No, a Search Console MCP server has no way to edit your pages. Its only write tools submit or delete sitemaps, the files that list a site’s URLs for search engines, and add or remove properties in Search Console.

In mcp-gsc, add_site, delete_site and delete_sitemap refuse to run unless the GSC_ALLOW_DESTRUCTIVE environment variable is true. Sitemap submission sits outside that switch, and the read-only scope blocks it because Google’s sitemaps.submit reference requires the read and write scope.

Which Search Console permission should the MCP login have?

Give the account the Restricted role in Search Console. Google’s Search Console permissions page says Restricted users can open the Performance report and have fetch-only access to URL Inspection. Only Owners and Full users can submit sitemaps. If the scope were ever wrong, the role would block a sitemap submission on its own.

A service account, a Google login made for software, suits automated runs, and the setup below doesn’t use one. The mcp-gsc README gives a service account Full access. Restricted is enough to read data, and it keeps the second lock in place.

What security risks come with mcp-gsc?

mcp-gsc has 3 open reports, all filed on November 29, 2026, and a setup step avoids or limits each one.

  • Other accounts on the same computer can read the token file, according to mcp-gsc issue #70 on GitHub, and anyone who copies it can read your Search Console data with your access. Set GSC_CONFIG_DIR to the private folder from setup step 4 below.
  • The optional network mode, called SSE, has no sign-in and turns off a protection against attacks from web pages in your browser, as mcp-gsc issue #68 on GitHub reports. Keep the default STDIO mode by leaving MCP_TRANSPORT unset.
  • The third report, mcp-gsc issue #69 on GitHub, says the reauthenticate tool deletes the token file before it checks that the client secrets file from setup step 3 exists. A wrong path then leaves you signed out, so confirm the GSC_OAUTH_CLIENT_SECRETS_FILE path before asking Claude to reauthenticate.

If the token file may have been copied, or you stop using mcp-gsc, remove its access on your Google Account’s linked apps page. Google’s help page on managing linked apps says to choose the app under Access to your Google Account, then See details, Remove access and Confirm. Delete token.json from the token folder as well.

Gather these before you connect Search Console

Connecting Search Console to Claude through mcp-gsc needs a Google Cloud project, an OAuth client, the uv tool and access to the property.

  • A Google Cloud project holds the Search Console API once you turn it on.
  • An OAuth client lets mcp-gsc sign in to Google as you. OAuth is the sign-in where Google asks you to approve an app’s access, and the client is the app identity Google shows on that screen.
  • uv, a tool that installs and runs Python programs, is on your computer, installed with the command its installation page gives for your system. Its run command, uvx, downloads the mcp-search-console package from PyPI and starts it.
  • Your Google account holds at least the Restricted role on the property.

Set up mcp-gsc in Claude Desktop and Claude Code

Setup takes 5 steps in Google Cloud and the terminal, then 5 in the Claude desktop app or 3 in Claude Code. Replace each capitalized placeholder with your own value.

  1. Create or select a Google Cloud project, and enable the Search Console API in it.

  2. Open the Google Auth Platform section of the Google Cloud console and click Get started. Google’s getting-started page lists what the form asks for, an app name, a user support email, the audience and a contact email. Under audience, choose Personal. A Personal app works only for the account that created it and has no 7-day sign-in limit. It also skips the unverified-app screen, per Google’s audience page. Google doesn’t let you change a Personal app to another type later.

    If the form doesn’t offer Personal, choose Internal when the project belongs to your company’s Google Cloud organization. Internal limits sign-in to members of that organization, and the audience page says publishing status, including Testing, doesn’t apply to Internal or Personal apps. If neither fits, choose External and add your own account as a test user. Before you approve, Google shows a warning about the risks of giving an unverified app access to your data, per the audience page. As of December 3, 2026, that sign-in expires 7 days after approval.

  3. Create an OAuth client of the Desktop app type and download its JSON file to a folder you’ll keep. That file is the client secrets file mcp-gsc asks for. Rename it client_secrets.json, or use its real name in the paths below.

  4. Make a folder for the token file that only your user account can read. The terminal command below does that on macOS and Linux, where chmod 700 sets the permission.

    mkdir -p ~/gsc-mcp && chmod 700 ~/gsc-mcp
  5. Note the full paths of the JSON file and the token folder, written out from the top of the drive. Config files for local MCP servers need absolute paths, according to MCP’s guide to connecting local servers. On Windows, a path starts with the drive letter, as in C:\Users\YOUR_NAME\gsc-mcp, and the guide’s JSON examples write each backslash twice.

The commands below pin version 0.4.2 with mcp-search-console@0.4.2, the syntax in uv’s guide to running tools, so the server changes only when you upgrade on purpose. A release can change behavior, as 0.4.2 did when it switched the default scope to read-only.

Both setups also set GSC_DATA_STATE to final. The mcp-gsc README says final returns only confirmed data, so the 2 to 3 most recent days, which Google is still processing, stay out of your answers.

How do you connect Google Search Console MCP to Claude Desktop?

mcp-gsc goes into the Claude desktop app’s config file, claude_desktop_config.json, and starts the next time the app opens.

  1. Find uvx’s full path. On macOS or Linux, run which uvx in a terminal. On Windows, run where uvx in Command Prompt, or Get-Command uvx | Select-Object -ExpandProperty Source in PowerShell. The mcp-gsc README uses the full uvx path in every config, because the Claude desktop app doesn’t read your shell’s settings. It gives C:\Users\YOUR_NAME\.local\bin\uvx.exe as the usual Windows location.

  2. Open Settings from the Claude menu, then Developer, then Edit Config, per MCP’s guide to connecting local servers. Edit Config creates the file if it doesn’t exist. The file sits at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows.

  3. Add the server with your paths in place of the placeholders. If the file already has an mcpServers block, add the gsc entry inside it, with a comma after the closing brace of the entry above it.

    {
      "mcpServers": {
        "gsc": {
          "command": "/FULL/PATH/TO/uvx",
          "args": ["mcp-search-console@0.4.2"],
          "env": {
            "GSC_OAUTH_CLIENT_SECRETS_FILE": "/FULL/PATH/TO/client_secrets.json",
            "GSC_CONFIG_DIR": "/FULL/PATH/TO/gsc-mcp",
            "GSC_DATA_STATE": "final"
          }
        }
      }
    }
  4. Quit the Claude desktop app completely, with Cmd+Q on macOS, and open it again. Anthropic’s help article on local MCP servers in Claude Desktop says the Local MCP servers section shows each server’s status and logs. Reach it from Settings, then Desktop app, then Manage next to Extensions.

  5. Ask Claude “List my Search Console properties.” Google opens a sign-in page the first time, and mcp-gsc saves the token file in your private folder once you approve.

How do you add a Search Console MCP server to Claude Code?

Claude Code takes mcp-gsc with one claude mcp add command, run in a terminal before you start a session.

  1. Run this, with your paths in place of the placeholders.

    claude mcp add --env GSC_OAUTH_CLIENT_SECRETS_FILE=/FULL/PATH/TO/client_secrets.json \
      --env GSC_CONFIG_DIR=/FULL/PATH/TO/gsc-mcp \
      --env GSC_DATA_STATE=final \
      --transport stdio --scope user gsc -- uvx mcp-search-console@0.4.2
  2. Run claude mcp list, or /mcp inside a Claude Code session. The list shows a status such as Connected or Failed to connect next to each server.

  3. Start Claude Code and ask “List my Search Console properties.” Google asks you to approve access the first time.

Keep the options in the order Claude Code’s MCP documentation shows, with at least one other option between the last --env and the server name. The --scope user option is Claude Code’s install level, separate from the Google scope, and makes the server available in all your projects. The -- separates Claude Code’s options from the command that starts the server.

Can you use a Search Console MCP server in Claude on the web?

No, mcp-gsc runs on your computer, and Claude on the web (claude.ai) reaches only remote servers at a public HTTPS address. Anthropic’s article on custom connectors says local servers set up in claude_desktop_config.json aren’t available in claude.ai. Getting Search Console into claude.ai takes a remote server someone else hosts, and that host sees your data too.

Why won’t the Search Console MCP server connect?

The usual causes are a path the Claude desktop app can’t find, an expired test sign-in and an old mcp-gsc version.

Problem Fix
spawn uvx ENOENT Put the full uvx path from which uvx or where uvx in command.
Credentials file not found Use the absolute path to the JSON file.
Worked last week, now asks to sign in or fails The app is External and in Testing, and the 7-day sign-in expired. Sign in again, or set up a Personal app in a new Google Cloud project.
Signed out after asking Claude to reauthenticate Fix the GSC_OAUTH_CLIENT_SECRETS_FILE path, then sign in again.
invalid_scope when the token file refreshes Upgrade to 0.4.2 or later.
A large result saved to a file in Claude Code Ask for fewer rows. Raising MAX_MCP_OUTPUT_TOKENS helps only when the result is under 50,000 characters.
Quota exceeded Wait 15 minutes, then shorten the date range.

Grouping by page or query and long date ranges use the most quota, according to Google’s Search Console API usage limits.

The Claude desktop app writes each server’s log to mcp-server-NAME.log, per MCP’s guide to connecting local servers. The file holds everything the server prints to its error stream, and a server can send all of its logging there. The logs sit in ~/Library/Logs/Claude on macOS and %APPDATA%\Claude\logs on Windows.

Ask mcp-gsc questions one report can answer

mcp-gsc handles questions about your own site that one Search Analytics query, URL inspection or sitemap read can answer. Each sample below maps to one tool.

  • Which pages lost clicks last month while their impressions held steady? Claude calls compare_search_periods.
  • Which top queries in the last 30 days have a click-through rate (CTR), the share of impressions that led to a click, below 2%? Claude calls get_search_analytics.
  • Which queries have high impressions and rank below position 10 on mobile in the US? Claude calls get_advanced_search_analytics.
  • Is this page indexed? Claude calls inspect_url_enhanced.
  • Which sitemaps are submitted for this site? Claude calls list_sitemaps_enhanced.

Search Console shows AI Overviews, the AI summaries above some search results, and AI Mode, Google’s chat-style search, in their own generative AI reports. Google’s June 3, 2026 announcement says the same data is also included in the overall Performance report. Those reports show impressions, plus clicks and CTR since Google’s December 1, 2026 update. As of December 3, 2026, the Search Console API has no search type that splits that data out. An MCP answer can’t separate it from the rest of your search traffic. The AEO guide covers other ways to measure AEO under How do you measure AEO?

When is MCP the wrong tool for Search Console data?

For the fullest query data on a large site, Search Console’s bulk export to BigQuery beats MCP, and it builds a stored history you can query again.

The daily export marks anonymized queries, the rare searches Google withholds for privacy, with an is_anonymized_query flag and an empty query field, per Google’s bulk export table reference.

Setup needs a Google Cloud project with billing and BigQuery turned on, according to Google’s bulk export setup page, and BigQuery charges above a free usage level. The first export lands up to 48 hours after setup and covers only data from that day on.

Check Search Console MCP numbers before reporting

Before a Search Console MCP number goes in a report, read the tool call’s input in Claude and rebuild the same view in the Performance report.

  1. Expand the tool call in Claude’s reply and read its input. The input holds the dates or day count, the dimensions and any filters, and Claude’s own description of the request can be wrong. The data state comes from your GSC_DATA_STATE setting unless the call used get_advanced_search_analytics and set its own.
  2. Set the same dates, search type and filters in the Performance report.
  3. Compare totals at the same level, the whole property against the whole property or pages against pages, because the 2 can differ. Then check a few rows against the matching table in the Performance report.
  4. If the numbers differ, check the causes in the table below.

Claude’s arithmetic can go wrong in 2 places.

  • A sum of the top rows undercounts the total, because the API returns top rows only. Google’s guide to getting all your Search Console data says to leave out the query and page dimensions for accurate counts. The filters and the aggregation type, by property or by page, also have to match the report you compare against.
  • A plain average of the position column treats a row with 10 impressions the same as a row with 10,000. Weight each row’s position by its impressions.

Without the final setting, mcp-gsc’s default data state, all, includes days Google hasn’t finished processing. The Search Analytics query reference says values after the first incomplete day “may still change noticeably.”

Which days each data state counts
GSC_DATA_STATE

In the answer

In the answer

Final

Fresh

Days in Pacific Time

Under all, the total includes fresh days that can change after you report it.

Under final, the total stops at the last day Google has finished processing.

By default, Claude Code saves an MCP result over 25,000 tokens, units of text about the size of a short word, to a file and reads it from there. Text over 50,000 characters from a tool that sets no limit of its own goes to a file the same way, so ask for only the rows you need.

When a Search Console number goes to executives, cite the Performance report or its export as the source and keep the tool call’s input beside it. A total filtered by query leaves out anonymized queries.

Why do Search Console MCP numbers differ from the Search Console UI?

Anonymized queries, row limits, grouping, aggregation, fresh data and time zones each pull MCP numbers away from what the Search Console interface shows. The limits below follow Google’s post on performance data filtering and limits and Search Console Help on data discrepancies as of December 3, 2026.

Cause What happens
Anonymized queries Queries from no more than a few dozen users over 2 to 3 months drop out of query rows and query-filtered totals. Totals without the query dimension include them.
Row limits The UI table shows up to 1,000 rows, and the API returns up to 25,000 per request. The API exports up to 50,000 rows per day per site per search type.
Page and query grouping Google may drop some data when a request groups by page or query.
Aggregation Chart totals count a search once for the site, and page rows count each of your URLs that appeared in it. CTR and average position differ between the two.
Fresh data Data usually lands in 2 to 3 days, and the newest days keep changing.
Time zone Dates are in Pacific Time.
History Search Console keeps data for the last 16 months.

Frequently asked questions

What is GSC MCP?

GSC MCP is short for a Google Search Console MCP server. The server connects Claude or another AI app to Search Console data through the Model Context Protocol.

Can a Search Console MCP server request indexing?

No, a Search Console MCP server can’t request indexing. The URL Inspection API reference only reads a URL’s indexed status, and Google’s Indexing API quickstart limits that separate API to job posting and livestream pages.

Does a Search Console MCP server show AI Overviews data?

No, a Search Console MCP server can’t separate AI Overviews data. Search Console shows AI Overviews and AI Mode in their own generative AI reports and in the overall Performance report. The Search Console API has no search type that splits that data out.

Get in touch

If you want to compare notes on SEO or AI search, or you’re looking to work together, send me a note. The contact form reaches me directly.