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 notesConnect 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
/services/roof-repair/
roof repair near me
Same property, query, page and date window
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
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 notesManaged 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 productAPI 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 APILooking 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.
The local walkthrough uses Amin Foroutan’s community server, pinned to release 0.4.2. Set up Google access once, then choose your client.
codex mcp add gsc --env "GSC_OAUTH_CLIENT_SECRETS_FILE=/absolute/path/client_secret.json" -- "/absolute/path/to/uvx" mcp-search-console@0.4.2Run codex mcp list, then open a new Codex session and check /mcp. Client documentation.
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.2Run 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.
Start with the queries that brought people to one service page. One page and a fixed date window make the result easy to check.
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.
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.
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.
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
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.
Fictional example · Web search · All countries and devices
sc-domain:example.comhttps://example.com/services/roof-repair/| Query | Clicks | Impr. | CTR | Avg. pos. |
|---|---|---|---|---|
| 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 |
Next check. Review the current title and search results for roof leak repair before proposing a change.
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.
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.
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.
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.
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.