Skip to content

Google Search Console MCP

Connect Google Search Console to Codex or Claude Code, run a read-only query audit, and verify the result in Google's Performance report.

Community connector · Read-only OAuth · Docs checked

One query, two sourcesFictional example

/services/roof-repair/

roof repair near me

MCP response24 clicks600 impressions
Search Console24 clicks600 impressions

Same property, query, page and date window

Which connector should you use?

A Search Console MCP server lets your agent query data from properties you can access. Choose who runs the server and how you want to grant that access.

mcp-gsc

Run it locally

The community server runs on your machine over stdio. You create a Google OAuth client and sign in with a Google account that has access to the property.

mcp-gsc setup and release notes

Managed OAuth

Use a hosted connector

Use a provider such as Search Console MCP when the client expects a hosted URL. Check its Google consent scopes, plan limits, and how it handles credentials and data.

Search Console MCP hosted product

API or export

Use Google directly

Use the REST API for a scripted report or export the Performance table for a one-off. For a larger recurring dataset, evaluate the BigQuery bulk export.

Search Console API

Looking at Google’s Developer Knowledge MCP? It retrieves developer documentation. Your property data lives in the Search Console API. See Google’s tool list or read about the BigQuery bulk export.

Connect Codex or Claude Code

The local walkthrough uses Amin Foroutan’s community server, pinned to release 0.4.2. Set up Google access once, then choose your client.

  1. Confirm you can open the intended property in Search Console using the Google account you plan to connect.
  2. Enable the Search Console API in a Google Cloud project and create a Desktop app OAuth client. If the consent screen is in testing, add your Google account as a test user.
  3. Download the OAuth client JSON to a private location and install uv. Replace both example paths with absolute paths on your machine. Use the full path to uvx.exe on Windows if the client cannot find it.
Codex CLI
codex mcp add gsc --env "GSC_OAUTH_CLIENT_SECRETS_FILE=/absolute/path/client_secret.json" -- "/absolute/path/to/uvx" mcp-search-console@0.4.2

Run codex mcp list, then open a new Codex session and check /mcp. Client documentation.

Claude Code
claude mcp add --env "GSC_OAUTH_CLIENT_SECRETS_FILE=/absolute/path/client_secret.json" --transport stdio gsc -- "/absolute/path/to/uvx" mcp-search-console@0.4.2

Run claude mcp get gsc, then open Claude Code in the same project and check /mcp. Client documentation.

Version 0.4.2 uses Google's webmasters.readonly OAuth scope by default. Leave GSC_ALLOW_DESTRUCTIVE unset. Check the account and consent before granting access. If you previously granted broader access, review the saved Google grant before relying on this setup. OAuth, Claude Desktop, Cursor, and service-account setup.

Run your first read-only audit

Start with the queries that brought people to one service page. One page and a fixed date window make the result easy to check.

  1. Confirm the property

    Run get_capabilities, then list_properties. If a browser sign-in appears, use your intended Google account. Match the exact returned key to Search Console. A domain property uses sc-domain:example.com. A URL-prefix property includes its scheme and exact prefix.

  2. Freeze the report inputs

    Choose one page and a complete date window ending a few days ago. Request Web search, Query grouping, an exact page filter, and up to 10 rows. Record the start and end dates instead of repeating a relative date range.

  3. Save the evidence

    Return the property, exact filters, dates, clicks, impressions, CTR, average position, and the returned row count. Save the raw response or a redacted export with one finding and a next check.

Prompt for your agent

Use only read-only Google Search Console operations. Run get_capabilities and list_properties, then confirm the exact key for [property]. Stop if the property is missing or ambiguous. Call get_advanced_search_analytics for [start date] through [end date], dimensions=query, search_type=WEB, filter_dimension=page, filter_operator=equals, filter_expression=[canonical page URL], data_state=final, row_limit=10. Return the inputs, row count, query, clicks, impressions, CTR as a percentage and average position. Pick one row to verify in the Search Console Queries table. If the report is empty or the values differ, record what you saw and the next check.

The advanced analytics tool accepts explicit dates and page filters. Connector tool parameters · Google Search Analytics request

Match one row in Search Console

Use the Queries table for the same filters. In this fictional example, “roof repair near me” shows 24 clicks and 600 impressions in both sources.

Sample query report

Fictional example · Web search · All countries and devices

Download JSON
Property
sc-domain:example.com
Exact page
https://example.com/services/roof-repair/
Dates
2026-10-19 to 2026-11-15
QueryClicksImpr.CTRAvg. pos.
roof repair near me246004%7.8
emergency roof repair133254%8.4
roof leak repair94502%10.2

Next check. Review the current title and search results for roof leak repair before proposing a change.

  1. Open Performance → Search results for the same property. Set Search type to Web and enter the same absolute dates.
  2. Add a Page filter that matches the exact URL. Open Queries and find the exact row. Remove any extra country, device, or search appearance filters.
  3. Compare clicks and impressions first. Convert fractional CTR to a percentage and allow for display rounding on CTR and average position. Record the matched row or the discrepancy with its filters.

Google’s guide to Performance data and filters

Common setup and reporting questions

Does Google publish a Search Console MCP server?

Google documents a Search Console REST API. The Developer Knowledge MCP result retrieves Google documentation. The local server in this guide is the independently maintained mcp-gsc project. Google's MCP server catalog.

Why is my property missing or access denied?

Check which Google identity authenticated, whether it can open the property in Search Console, and whether you copied the exact domain or URL-prefix property key. Review consent and Cloud API enablement if the connector cannot list any properties. Google property list API.

Why do the connector and the Performance report disagree?

Match the property, absolute dates, Web search, exact page, query and other filters first. Use older complete dates, check for canonical URL differences, and compare a single Queries row. Google can omit anonymized queries and return only top rows. A filtered table and the headline total can cover different aggregates. Google's Performance report.

Does an empty result mean zero searches?

An empty result means the request returned no rows. Check whether the site has finalized data in that window, then try the same request without the page filter. Confirm the page's canonical URL before adding it back. Search Analytics request and row limits.

Can it inspect indexing or change a sitemap?

URL Inspection returns Google's indexed version and is a separate read-only job. Keep sitemap work out of this audit. The local connector can gate write operations behind an explicit setting and Google's broader authorization. Google's URL Inspection API.

Put Search Console to work