A code-aware SEO workflow
Collect evidence
Compare two complete equal-length web-search periods in your verified Search Console property. Collect query/page pairs, clicks, impressions, average position and relevant country or device segments.
Trace the live page
Ask Claude Code in planning mode to map a URL to its route, content source, title, H1, canonical, hreflang and sitemap. Compare the repository with published HTML: code alone does not establish what Google sees.
Choose a narrow patch
Check whether a relevant query is already served by an existing page. Add missing evidence or an explanation rather than another keyword. Preserve URLs, authentication and language variants; inspect the diff.
Verify and measure
Run existing build and route tests, then inspect HTTP status and rendered content after deployment. Record the date and compare complete periods. Do not equate correlation with causation.
Worked example (illustrative)
A pricing page gets 180 impressions and one click at average position 14 for a relevant pricing query. Inspect whether prices and conditions are clear. A focused edit to that page is preferable to a competing guide if both target the same intent.
Before shipping changes, check rendering, indexing, canonical URLs and localized routes: SEO for developers: an engineering checklist for search
A prompt for Claude Code
Read the project instructions. Use authorized GSC property [DOMAIN] or my export. Pick one relevant query/page pair near the top 10. Identify source files, compare live and expected HTML, and propose the smallest useful edit, evidence, uncertainty, acceptance tests and rollback. Do not edit or deploy without approval.
AskGSC provides read-only GSC data on tool invocation. Claude Code edits code with its own tools. Missing rows are not zero; average position is not a live rank.
FAQ
Can Claude Code improve SEO?
It can audit and edit code and write tests, but priorities require evidence and rankings are not guaranteed.
Is MCP required?
No; a manual Search Console export works. MCP reduces repetitive exports.