AI Tools 8 Jul 2026  ·  2 min read

Automating Yoast SEO Across Your WordPress Site with AI

Automating Yoast SEO Across Your WordPress Site with AI
Automating Yoast SEO Across Your WordPress Site with AI 8 Jul 2026
TL;DR — Yoast SEO metadata — focus keyphrase, SEO title, meta description — is set per post. For a site with 200 posts, reviewing and updating these manually takes days. An MCP-connected AI agent can audit all posts, identify gaps and mismatches, generate optimised metadata, push updates via wds/update-post, and reindex Yoast’s indexables in a single automated session.

Yoast SEO is the most widely deployed WordPress SEO plugin. Its green-light scoring system is useful, but it creates a subtle trap: site owners focus on making individual posts green rather than on the strategic SEO architecture of the whole site. The result is posts optimised in isolation, with duplicate keyphrases, inconsistent meta description lengths, and missing focus keywords on high-traffic pages.

An AI agent working across the whole site — not one post at a time — can identify and fix these systemic issues.

What the AI Can Access on Yoast

The wds/get-post ability returns full Yoast SEO metadata for every post:

  • seo_title — the custom title tag
  • seo_description — the meta description
  • seo_keyphrase — the focus keyphrase
  • seo_score — Yoast’s numeric SEO score (0–100)
  • seo_content_score — Yoast’s readability score

wds/update-post sets all of these fields. The agent can read, evaluate, rewrite, and push updates without opening a single post in the WP admin.

The Full-Site SEO Audit Workflow

  1. Fetch all posts via wds/get-posts — returns titles, URLs, and excerpts for up to 50 at a time
  2. Fetch each post’s full SEO data via wds/get-post
  3. Identify problems: missing keyphrases, duplicate keyphrases across posts, meta descriptions under 120 or over 160 characters, seo_score below 40
  4. Generate fixes: write new meta descriptions, assign target keyphrases based on content analysis, rewrite SEO titles following the {Primary Keyword} — {Brand} formula
  5. Push updates via wds/update-post
  6. Trigger reindex via wds/reindex-yoast-seo — refreshes Yoast’s indexables table so the SEO overview scores update

For a 100-post site, this workflow runs in a single Claude Code session in 15–20 minutes. Manual: days.

The Reindex Step: Why It Matters

Yoast caches SEO analysis results in its “indexables” table. After bulk metadata updates, the Yoast dashboard may still show old scores until the table is rebuilt. wds/reindex-yoast-seo triggers Yoast’s internal indexing routes programmatically — the same process as clicking “Optimize SEO Data” in the Yoast Tools screen, but callable from an agent workflow.

The WDS MCP Content Manager Pro also bundles two Claude Code skills — wds-seo and wds-geo — that give your agent structured playbooks for SEO auditing and Generative Engine Optimization (optimising for citation by ChatGPT, Perplexity, and Google AI Overview).