Briefing

Integrating Claude Code with Semrush MCP for Unified SEO Dashboards

ai-dev
Claude Anthropic Google Search

Set up Claude Code, connect GSC and GA4 APIs, and build live dashboards for SEO insights.

What to do now

Install Claude Code, set up project files, connect GSC/GA4 APIs, and run fetchers to populate dashboard.

Summary

Claude Code is a new CLI and desktop tool that lets you interact with Claude in plain English and build live dashboards that merge first‑party Google data with Semrush competitive intelligence. The setup requires installing the CLI, creating a project directory with claude.md, fetchers, data, and reports folders, and linking your Anthropic account. You then connect Google Search Console and Google Analytics 4 via a single service account that enables live API pulls. Fetcher scripts for GSC and GA4 are provided, and a JSON config file stores domain, property IDs, and competitor URLs. The Semrush MCP then merges the fetched data into one dashboard, and Claude Code can run the fetchers, summarize the data, and export CSVs automatically. For quick starts, you can also export CSVs from GSC and GA4 and upload them to Claude Code.

Key changes

  • Claude Code CLI installation commands for macOS, Windows PowerShell, and CMD.
  • Project file structure: claude.md, fetchers/, data/gsc/, data/ga4/, data/ads/, data/semrush/, dashboard/, reports/.
  • Connect GSC and GA4 via live API using a single service account with Search Console and Analytics Data APIs.
  • Fetcher scripts: get_gsc_service() and fetch_queries() for GSC; get_ga4_client() and fetch_traffic_by_channel() for GA4.
  • Config file JSON includes domain, gsc_property, ga4_property_id, google_ads_customer_id, industry, competitors.
  • Use Semrush MCP to merge first‑party and competitive data into one dashboard.
  • Claude Code can run fetchers, summarize data, and export CSVs automatically.
  • Manual CSV export option for quick setup if API integration is not yet ready.

Affects

wp-customers internal

Customer impact

Analyzing matches…

Ask about this story

Impact on an agency? Which customers? Compare historically Risks of waiting