Claude Code for SEO

Use Claude Code with GSC data for SEO automation. Ready-to-use prompts for content decay, keyword cannibalization, and striking distance opportunities.

Harlan WiltonHarlan Wilton
1 min

Claude Code is transforming software development, achieving a $2.5 billion annualized run rate within months of launch and authoring 4% of all public GitHub commits as of February 2026 (semianalysis.com report). If you're already using it for development, you can add SEO workflows with near-zero friction.

The advantage: Claude's 200K token context (and Opus 4.6's reasoning capabilities) means you can analyze larger Google Search Console exports in one go. Combined with gscdump's MCP server, you get natural language queries over your GSC data without leaving your terminal.

Why This Works

Traditional SEO tools give you dashboards. Claude Code gives you automation.

Example: A developer at alexop.dev used Puppeteer MCP to generate "professional audit reports in minutes" vs 2+ hours manual work. An agency used Plan Mode to produce a 50-page content audit with 23 optimization opportunities in one session.

The pattern: write prompts once, run them forever. No clicking through dashboards.

Setup: gscdump MCP

Install the MCP server:

pnpm dlx @gscdump/mcp

Add to Claude Code's MCP config (~/.claude/mcp.json):

{
  "mcpServers": {
    "gscdump": {
      "command": "npx",
      "args": ["@gscdump/mcp"]
    }
  }
}

Restart Claude Code. Verify:

List my GSC sites

Claude should return your connected properties.

SEO Prompts That Work

Basic: Traffic Analysis

Show pages losing traffic over the last 28 days vs previous period

Claude queries GSC, calculates deltas, returns ranked list. No SQL required.

Find pages ranking 4-15 with 100+ impressions

Striking distance opportunities: pages close to page 1 that need a push.

Intermediate: Content Decay

Find pages that lost 30%+ clicks in the last 3 months.
For each page, show which keywords declined and by how much.

This requires joining pages + keywords data. Claude handles the multi-step query logic.

Advanced: Keyword Cannibalization

Find keywords where 3+ pages rank in top 20 positions.
For each keyword, show:
- All ranking pages
- Position distribution
- Click distribution
- Recommendation for consolidation

Claude identifies cannibalization patterns and suggests which page should be the canonical ranking URL.

URL Indexing Check

Check if these URLs are indexed:
- /blog/post-1
- /blog/post-2
- /products/item-3

Cross-reference with sitemap data.

Useful after migrations or content updates.

Building Automated SEO Scripts

Claude Code excels at generating scripts you can schedule.

Example: Weekly decay report

Write a TypeScript script that:
1. Queries GSC for pages losing 20%+ clicks week-over-week
2. Groups by category (extract from URL path)
3. Sends Slack notification with top 10 decliners
4. Include one-line fixes (e.g., "Update publish date", "Add internal links")

Claude generates the script using gscdump's API endpoints. You review, commit, schedule via cron.

Example: Cannibalization monitor

Create a script that runs daily and flags new cannibalization issues.
Store previous results in SQLite to track when issues appear/resolve.
Only alert on NEW cannibalizations, not existing ones.

This turns a manual monthly audit into automated daily monitoring.

Real Workflow: Content Audit

Developer asks:

Audit my blog content:
1. Find posts with declining CTR (28d vs prev)
2. Check if declining posts have featured snippets we lost
3. Suggest title/description improvements for low CTR posts
4. Find related posts that could link to decliners

Claude:

  1. Queries GSC pages data for blog URLs
  2. Calculates CTR trends
  3. Checks SERP features (via GSC API)
  4. Uses LLM to suggest optimizations
  5. Scans sitemap for internal linking opportunities

Output: Markdown report with actionable items. One prompt, 5 minutes.

Context Advantage

Claude's 200K token context means you can:

  • Analyze full GSC exports (pages + keywords) in one prompt
  • Compare multiple date ranges simultaneously
  • Cross-reference sitemap, Analytics, and GSC data without chunking

Google added AI-powered configuration to GSC's Performance report in late 2025, but it's limited to UI interactions. Claude Code lets you script those insights.

Productivity Data

  • Audit speed: 75% faster content audits through sub-agent orchestration (digitalapplied.com)
  • Content optimization: 2+ hours of junior writer time compressed into minutes (aimaker.substack)
  • Ecosystem scale: 25B+ API calls/month, 84K+ developers building with Claude (thunderbit.com)

Copy-Paste Prompts

Striking distance keywords:

Find keywords ranking position 4-15 with 100+ impressions/month.
Exclude brand terms. Sort by impressions DESC.

Traffic decliners:

Show top 20 pages losing clicks (28d vs prev).
For each, show primary keyword and position change.

Cannibalization check:

Find keywords where 2+ pages rank in top 20.
Show which page gets more clicks and suggest canonical.

CTR outliers:

Find pages with position 1-5 but CTR < 20%.
These need better titles/descriptions.

New content performance:

Show pages added in last 30 days.
Which are getting impressions but no clicks?

When to Use This vs Traditional Tools

Use Claude Code when:

  • Building custom workflows (e.g., decay alerts)
  • Combining GSC data with other sources (Analytics, CRM)
  • Generating reports that don't fit dashboard templates
  • You're already in the terminal

Use traditional SEO tools when:

  • Stakeholders need shareable dashboards
  • Historical data beyond GSC's 16-month limit
  • Backlink analysis, rank tracking, keyword research

Next Steps

  1. Connect gscdump MCP to Claude Code
  2. Run basic prompts to verify setup
  3. Identify one manual SEO task you repeat monthly
  4. Ask Claude to automate it

The goal: turn 2-hour audits into 5-minute scripts you schedule and forget.


References:

  • semianalysis.com: Claude Code revenue and commit statistics (Feb 2026)
  • thunderbit.com: Claude ecosystem metrics
  • alexop.dev: Puppeteer MCP audit automation case study
  • aimaker.substack: Content optimization productivity gains
  • Claude Code docs: Agency content audit example
  • digitalapplied.com: Sub-agent orchestration productivity data
  • Google Search Central Blog: AI-powered GSC Performance report (Dec 2025)
gscdump
© 2026 GSCDUMP.COM - BUILT FOR DEVELOPERS