# 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.

## Which connector should you use?

- **Run it locally (mcp-gsc)**. 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](https://github.com/AminForou/mcp-gsc)
- **Use a hosted connector (Managed OAuth)**. 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](https://mcpsearchconsole.com/)
- **Use Google directly (API or export)**. 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](https://developers.google.com/webmaster-tools/about)

Google's Developer Knowledge MCP retrieves documentation. The Search Console API serves property data. [Google Developer Knowledge MCP](https://developers.google.com/knowledge/mcp) · [Search Console bulk export to BigQuery](https://support.google.com/webmasters/answer/12918484)

## Connect Codex or Claude Code

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

```sh
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.
[Codex MCP documentation](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)

### Claude Code

```sh
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.
[Claude Code MCP documentation](https://code.claude.com/docs/en/mcp)

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. [Package release 0.4.2](https://pypi.org/project/mcp-search-console/0.4.2/) · [mcp-gsc setup and release notes](https://github.com/AminForou/mcp-gsc)

## Run your first read-only audit

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.

[Connector source and tool parameters](https://github.com/AminForou/mcp-gsc/blob/main/gsc_server.py) · [Search Analytics request and row limits](https://developers.google.com/webmaster-tools/v1/searchanalytics/query)

## Match one row in Search Console

This fictional example uses `sc-domain:example.com`, Web search, exact page https://example.com/services/roof-repair/, and 2026-10-19 through 2026-11-15. [Download JSON](https://seotoolsforagents.com/examples/gsc-first-audit.json).

| Query | Clicks | Impressions | CTR | Average position |
| --- | ---: | ---: | ---: | ---: |
| roof repair near me | 24 | 600 | 4% | 7.8 |
| emergency roof repair | 13 | 325 | 4% | 8.4 |
| roof leak repair | 9 | 450 | 2% | 10.2 |

The fictional Queries table shows 24 clicks and 600 impressions for “roof repair near me.” 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 Performance report](https://support.google.com/webmasters/answer/7576553)

## 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](https://docs.cloud.google.com/mcp/supported-products)

### 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](https://developers.google.com/webmaster-tools/v1/sites/list)

### 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](https://support.google.com/webmasters/answer/7576553)

### 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](https://developers.google.com/webmaster-tools/v1/searchanalytics/query)

### 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](https://developers.google.com/webmaster-tools/v1/urlInspection.index/inspect)

## Put Search Console to work

- [Investigate a traffic drop](https://seotoolsforagents.com/playbooks/traffic-drop.md) — Find which pages and queries drove the change.
- [Check whether a page is indexed](https://seotoolsforagents.com/playbooks/indexing-triage.md) — Compare Google's indexed version with the live page.
- [Set access for your SEO agent](https://seotoolsforagents.com/guides/seo-agent-permissions.md) — Decide what the agent may read and where you review changes.
