WordPress AI Toolkit
A storefront MCP server with 5 tools for WooCommerce stores: searching products, retrieving product details, listing orders, getting store info, and fetching store statistics.
The core target: a dev server that analyzes themes and plugins, validates PHP/templates/block.json, searches WordPress developer docs, introspects REST API endpoints, audits the database and site health, scaffolds plugins/blocks/widgets, manages sites via WP-CLI, and publishes content to a WordPress site with SEO metadata.
Analyzes and publishes SEO metadata through a universal SEO REST API mu-plugin that auto-detects and works with Yoast SEO (as well as Rank Math and All in One SEO).
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why?
WordPress powers 43% of the web — but AI dev tools don't speak WordPress natively.
This toolkit bridges that gap with 23 tools, 33 skills, and universal SEO plugin support:
For Developers
Validate PHP, templates, block.json
Scaffold plugins, blocks, Elementor widgets
Analyze themes & plugins like Theme Check
Introspect REST API endpoints live
For Content Teams
Score content SEO quality (0-100)
Detect AI writing patterns
Publish to WordPress with SEO metadata
Analyze competitor sites & tech stacks
For Store Owners
Search WooCommerce products
Track orders & store stats
Manage sites via WP-CLI
Works with Yoast, RankMath, AIOSEO
Related MCP server: WordPress MCP Server
Quick Start
One command. That's it.
claude mcp add wp-ai-toolkit npx -y @erayusta/wp-ai-toolkitThen open Claude Code and try:
> Analyze the theme in my wp-content/themes/flavor directory
> Scaffold an Elementor widget called Pricing Card
> Score this article's SEO quality and check for AI patterns
> Publish this draft to my WordPress site as a draft with SEO metadataThe AI calls the right tools automatically.
Architecture
Claude Code · Cursor · VS Code · Gemini CLI · Codex
│
│ stdio (JSON-RPC)
▼
┌─────────────────────────────────────┐ ┌─────────────────────────────┐
│ wp-ai-toolkit (Dev Server) │ │ wp-storefront (Commerce) │
│ 18 tools │ │ 5 tools │
╞═════════════════════════════════════╡ ╞═════════════════════════════╡
│ │ │ │
│ DOCS & DISCOVERY │ │ search_products │
│ ├── learn_wordpress_api │ │ get_product_details │
│ ├── search_docs │ │ get_orders │
│ ├── fetch_full_docs │ │ get_store_info │
│ └── introspect_rest_api │ │ get_store_stats │
│ │ │ │
│ VALIDATION │ └─────────────────────────────┘
│ ├── validate_php │
│ ├── validate_block_json │ ┌─────────────────────────────┐
│ └── validate_theme_template │ │ WordPress MU-Plugins │
│ │ ╞═════════════════════════════╡
│ ANALYSIS & SEO │ │ Universal SEO REST API │
│ ├── analyze_theme │ │ (auto-detects plugin) │
│ ├── analyze_plugin │ │ │
│ ├── analyze_content_seo │ │ ✅ Yoast SEO │
│ ├── analyze_competitors │ │ ✅ Rank Math │
│ └── score_content_quality │ │ ✅ All in One SEO │
│ │ └─────────────────────────────┘
│ ACTIONS │
│ ├── manage_wp_site │ ┌─────────────────────────────┐
│ ├── scaffold_component │ │ 33 Agent Skills │
│ └── publish_to_wordpress │ ╞═════════════════════════════╡
│ │ │ REST API · Hooks · Blocks │
└─────────────────────────────────────┘ │ Themes · Plugins · WooC │
│ Gutenberg · Custom Fields │
│ Security · Multisite │
│ Page Builders · Perf │
│ Admin UI · Cron · SEO │
│ Migrations · Copywriting │
│ Content Strategy · CRO │
│ Analytics · Forms · Media │
│ Email · Debug · Backup │
│ Database · Testing · PHPCS │
│ Blogging · E-Commerce+ │
│ Plugin Dev · Multilingual │
│ Popular Themes │
└─────────────────────────────┘Highlights
Installation
# Option 1: npx (zero install — recommended)
npx -y @erayusta/wp-ai-toolkit
# Option 2: Global install
npm install -g @erayusta/wp-ai-toolkit
# Option 3: Build from source
git clone https://github.com/erayusta/wp-ai-toolkit.git
cd wp-ai-toolkit && npm install && npm run buildDev Server — 18 Tools
Docs & Discovery
Tool | Description |
Start here — creates session, loads context | |
Search developer.wordpress.org | |
Full doc page as markdown | |
Explore REST endpoints + live discovery |
Validation
Tool | Description |
Hooks, security, deprecated, anti-patterns | |
block.json / theme.json schema checks | |
Template hierarchy, escaping, The Loop |
Analysis & SEO
Tool | Description |
Full theme directory audit | |
Full plugin directory audit | |
Readability, keyword density, SEO score | |
Detect theme/plugins/tech of any WP site | |
5-dimension score + AI pattern detection | |
Table sizes, bloat, orphaned data, cleanup |
Diagnostics
Tool | Description |
Debug log, config constants, checksums, conflicts | |
Health score: PHP, DB, updates, SSL, cron |
Actions
Tool | Description |
WP-CLI commands with safety checks | |
Generate 13 component types | |
Publish with Yoast/RankMath/AIOSEO metadata |
See
src/tools/README.mdfor full tool reference with example calls.
scaffold_component — 13 Types
analyze_content_seo — What It Scores
┌──────────────────────────────────────────────────────────────┐
│ SEO Score: 82/100 (A) │
├──────────────────────────────────────────────────────────────┤
│ │
│ Word Count 2,847 words ✅ Excellent │
│ Readability Flesch 64 (Standard) ✅ Optimal │
│ Keyword Density 1.8% ✅ Optimal │
│ Keyword in H1 Yes ✅ │
│ Keyword in H2 Yes ✅ │
│ First Paragraph Yes ✅ │
│ Heading Structure 1×H1, 5×H2, 3×H3 ✅ │
│ Internal Links 4 ✅ │
│ External Links 2 ✅ │
│ Images 3 (all with alt) ✅ │
│ Meta Title 54 chars ✅ (50-60) │
│ Meta Description 148 chars ✅ (140-160) │
│ │
└──────────────────────────────────────────────────────────────┘score_content_quality — 5 Dimensions
┌──────────────────────────────────────────────────────────────┐
│ Content Quality: 76/100 (B) │
├──────────────────────────────────────────────────────────────┤
│ │
│ Humanity ████████░░ 16/20 Natural writing │
│ Specificity ██████░░░░ 12/20 Needs more data/examples │
│ Structure █████████░ 18/20 Well organized │
│ Engagement ███████░░░ 14/20 Good use of questions │
│ Completeness ████████░░ 16/20 Solid depth │
│ │
├──────────────────────────────────────────────────────────────┤
│ AI Patterns Detected: │
│ ⚠ "leverage" (2x) → use "use" │
│ ⚠ "In conclusion" (1x) → state the takeaway directly │
└──────────────────────────────────────────────────────────────┘analyze_competitors — What It Detects
┌──────────────────────────────────────────────────────────────┐
│ Competitor Analysis: competitor.com │
├──────────────────────────────────────────────────────────────┤
│ │
│ Platform WordPress 6.7 │
│ Theme flavor (custom) │
│ Page Builder Elementor │
│ SEO Plugin Rank Math │
│ E-Commerce WooCommerce │
│ Analytics Google Analytics + GTM │
│ CDN/Cache Cloudflare + WP Rocket │
│ REST API wp/v2, wc/v3, rankmath/v1 │
│ │
│ Detected Plugins (8): │
│ elementor, woocommerce, wordpress-seo, wp-rocket, │
│ contact-form-7, wp-mail-smtp, updraftplus, wordfence │
│ │
└──────────────────────────────────────────────────────────────┘Storefront Server — 5 Tools
WooCommerce store operations via REST API.
Tool | Description |
Search with filters (category, price range, stock) | |
Full product data by ID or slug | |
Order listing with status filters | |
Store settings, payment gateways, shipping zones | |
Sales totals, top sellers, order counts |
claude mcp add wp-storefront node dist/storefront.jsAgent Skills — 33
Deep expertise files that give AI agents WordPress superpowers.
Core Development
Skill | |
API |
|
Hooks |
|
Blocks |
|
React |
|
Fields |
|
Plugins |
|
Themes |
|
Testing |
|
Standards |
|
Database |
|
Plugin Dev |
|
Infrastructure
Skill | |
Security |
|
Speed |
|
Network |
|
Jobs |
|
Admin |
|
Builders |
|
Deploy |
|
Debug |
|
Backup |
|
|
Content & Marketing
Skill | |
Commerce |
|
SEO |
|
Strategy |
|
Writing |
|
CRO |
|
Analytics |
|
Forms |
|
Media |
|
Themes |
|
i18n |
|
Blog |
|
E-Com+ |
|
SEO Plugins
WordPress MU-plugins that expose SEO data via REST API.
Universal Plugin (Recommended)
One file. Three SEO plugins. Zero config.
cp wordpress/wp-ai-toolkit-seo-rest.php /path/to/wp-content/mu-plugins/Auto-detects Yoast SEO, Rank Math, or All in One SEO and exposes a unified seo field:
Read SEO data:
GET /wp-json/wp/v2/posts/123{
"title": "My Post",
"seo": {
"plugin": "rankmath",
"seo_title": "My Post | My Site",
"meta_description": "A great post about...",
"focus_keyword": "wordpress seo",
"seo_score": "87",
"canonical_url": "",
"og_title": "My Post",
"og_description": "...",
"og_image": "https://...",
"twitter_title": "...",
"twitter_description": "..."
}
}Write SEO data:
POST /wp-json/wp/v2/posts/123{
"seo": {
"seo_title": "New Title | My Site",
"meta_description": "Updated desc",
"focus_keyword": "new keyword"
}
}Check active plugin:
GET /wp-json/wp-ai-toolkit/v1/seo-status{
"active_plugin": "rankmath",
"supported": ["yoast", "rankmath", "aioseo"]
}Individual Plugins
File | SEO Plugin | Use Case |
Universal (auto-detect) | Recommended for most sites | |
Yoast SEO only | Yoast-only environments | |
Rank Math only | RankMath-only environments | |
All in One SEO only | AIOSEO-only environments |
See
wordpress/README.mdfor full SEO plugin documentation with field mapping and API examples.
MCP Configuration
claude mcp add wp-ai-toolkit npx -y @erayusta/wp-ai-toolkitOr .mcp.json in project root:
{
"mcpServers": {
"wp-ai-toolkit": {
"command": "npx",
"args": ["-y", "@erayusta/wp-ai-toolkit"]
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"wp-ai-toolkit": {
"command": "npx",
"args": ["-y", "@erayusta/wp-ai-toolkit"]
},
"wp-storefront": {
"command": "npx",
"args": ["-y", "@erayusta/wp-ai-toolkit/dist/storefront.js"]
}
}
}.cursor/mcp.json:
{
"mcpServers": {
"wp-ai-toolkit": {
"command": "npx",
"args": ["-y", "@erayusta/wp-ai-toolkit"]
}
}
}settings.json:
{
"mcp.servers": {
"wp-ai-toolkit": {
"command": "npx",
"args": ["-y", "@erayusta/wp-ai-toolkit"]
}
}
}Uses the gemini-extension.json file in the package root.
Tool Reference
Parameter | Type | Required | Description |
| string | Yes |
|
| string | No | Existing session to add another API context |
Parameter | Type | Required | Description |
| string | Yes | PHP code to validate |
| string | Yes | Session ID |
| string | No |
|
Checks: Hook mismatches · Security (nonces, escaping, SQL injection) · Deprecated functions (30+) · Anti-patterns (query_posts, extract, direct cURL) · Function prefixing · Absolute includes · Plugin headers
Parameter | Type | Required | Description |
| string | Yes | See 13 types above |
| string | Yes | Component name |
| string | Yes | Session ID |
| string | No | Custom slug override |
| string | No | PHP namespace/prefix |
| string | No | Component description |
Parameter | Type | Required | Description |
| string | Yes | Article content (HTML or text) |
| string | Yes | Session ID |
| string | No | Primary keyword to check |
| string[] | No | Additional keywords to track |
| string | No | Meta title to validate (50-60 chars) |
| string | No | Meta description to validate (140-160 chars) |
Returns: Word count · Readability (Flesch) · Keyword density · Heading structure · Link counts · Image analysis · Overall SEO score with A+ to F grade
Parameter | Type | Required | Description |
| string | Yes | WordPress site URL |
| string | Yes | Post title |
| string | Yes | Post content (HTML) |
| string | Yes | Session ID |
| string | No |
|
| string | No |
|
| string | No | SEO title — works with Yoast/RankMath/AIOSEO |
| string | No | Meta description |
| string | No | Focus keyword |
| string | No | Open Graph title |
| string | No | Open Graph description |
| string | No | Open Graph image URL |
| string | No | WP username for auth |
| string | No | WP Application Password |
Requires: wp-ai-toolkit-seo-rest.php MU-plugin for SEO fields
Parameter | Type | Required | Description |
| string | Yes | Competitor website URL |
| string | Yes | Session ID |
Detects: WordPress version · Theme · Plugins (from HTML) · Page builders (Elementor, Divi, Beaver) · SEO plugins (Yoast, RankMath) · WooCommerce · Analytics (GA4, GTM) · CDN (Cloudflare) · Caching (WP Rocket, LiteSpeed) · REST API namespaces · Security indicators
Parameter | Type | Required | Description |
| string | Yes | Content to score (HTML or text) |
| string | Yes | Session ID |
| string | No |
|
Dimensions:
Humanity — AI pattern detection (delve, leverage, seamlessly, holistic...)
Specificity — Numbers, data points, quotes, URLs, examples
Structure — Headings, lists, images, code blocks, paragraphs
Engagement — Questions, personal pronouns, transitions, examples
Completeness — Depth, conclusion, CTA, topic coverage
Tool | Key Parameters |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Storefront Server:
Tool | Key Parameters |
|
|
|
|
|
|
|
|
|
|
Environment Variables
Variable | Default | Description |
|
|
|
Development
npm install # Install dependencies
npm run dev # Watch mode (tsx)
npm run build # Compile TypeScript
npm test # Run 140 tests
npm run lint # ESLint
npm run typecheck # tsc --noEmitProject Structure
wp-ai-toolkit/
│
├── src/
│ ├── index.ts # Dev MCP server (18 tools)
│ ├── storefront.ts # Storefront MCP server (5 tools)
│ ├── types.ts # Shared type definitions
│ │
│ ├── tools/ # 18 tool implementations
│ │ ├── learn-wordpress-api.ts # Session bootstrap
│ │ ├── search-docs.ts # Documentation search
│ │ ├── fetch-full-docs.ts # Full page retrieval
│ │ ├── introspect-rest-api.ts # REST API explorer
│ │ ├── validate-php.ts # PHP validation
│ │ ├── validate-block-json.ts # Block/theme JSON validation
│ │ ├── validate-theme-template.ts # Template validation
│ │ ├── manage-wp-site.ts # WP-CLI bridge
│ │ ├── scaffold-component.ts # Code generation (13 types)
│ │ ├── analyze-theme.ts # Theme audit
│ │ ├── analyze-plugin.ts # Plugin audit
│ │ ├── analyze-content-seo.ts # SEO content analysis
│ │ ├── analyze-competitors.ts # Competitor detection
│ │ ├── publish-to-wordpress.ts # REST publishing + SEO
│ │ ├── score-content-quality.ts # Quality scoring
│ │ ├── debug-wordpress.ts # Debug log & diagnostics
│ │ ├── check-site-health.ts # Site health score
│ │ └── analyze-database.ts # Database analysis
│ │
│ ├── data/ # Built-in reference data
│ │ ├── wp-api-descriptions.ts # API domain descriptions
│ │ ├── wp-hooks-registry.ts # 50+ hooks reference
│ │ └── wp-rest-schema.ts # 60+ REST endpoints
│ │
│ └── utils/
│ ├── conversation.ts # Session management
│ ├── http.ts # HTTP client
│ └── logger.ts # Structured logging
│
├── skills/ # 33 agent skill files (markdown + README each)
│
├── wordpress/ # SEO REST API MU-plugins
│ ├── wp-ai-toolkit-seo-rest.php # Universal (auto-detect)
│ ├── wp-ai-toolkit-rankmath-rest.php
│ ├── wp-ai-toolkit-aioseo-rest.php
│ └── seo-machine-yoast-rest.php
│
├── tests/ # 140 tests (Vitest)
│ ├── tools/ # 14 tool test files (140 tests)
│ └── utils/ # 2 utility test files
│
├── examples/ # MCP config examples
├── scripts/ # Setup & install scripts
│
├── .claude-plugin/ # Claude Code plugin
├── .cursor-plugin/ # Cursor plugin
├── .codex-plugin/ # Codex plugin
├── plugin.json # Plugin manifest
├── gemini-extension.json # Gemini CLI extension
│
└── .github/workflows/ # CI/CD (Node 20 + 22)
├── ci.yml # Build, lint, test on push/PR
└── publish.yml # npm publish on releasePlatform Support
Platform | Method | Status |
Claude Code |
| ✅ |
Claude Desktop |
| ✅ |
Cursor |
| ✅ |
VS Code |
| ✅ |
Gemini CLI |
| ✅ |
Codex |
| ✅ |
Contributing
Fork the repository
Create a feature branch:
git checkout -b feature/my-featureMake changes
Run checks:
npm test && npm run lintCommit and open a pull request
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage WordPress blogs and WooCommerce shops from Claude, ChatGPT, Cursor and other MCP apps.
Manage your WordPress site from your AI assistant: posts, pages, media, comments and WooCommerce.
Manage your WordPress site from ChatGPT or Claude: posts, WooCommerce, SEO, images and upkeep.
Run all of WordPress from Claude, ChatGPT or Cursor: SEO, security, your WooCommerce shop and Elementor pages, on up to 10 websites in one connector. Start free. SEO: titles, descriptions and focus keywords for every page, post and product. Security & updates: core, plugin and theme updates with a live test, site health and HTTPS checks, users and roles. WooCommerce shop: products, prices, orders, coupons and customers. Elementor and many more page builders: texts, links and images. Blog posts, pages, media, comments and menus. 10 websites in one connector: all your sites in the same chat. Deploy (Agency): build a site locally and push it to your own server. Just say it: "Write SEO titles for every product." "Install all updates and check that the site still works." "Show today's orders and create a weekend coupon." You choose what your AI may change, with one switch. Install the free AlphaBridge MCP plugin from WordPress.org, connect and approve on your own site. No account, no key to copy.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage WordPress sites through natural conversation, supporting post creation, content updates, site queries, and draft-to-publish workflows via the WordPress REST API.9MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to manage WordPress content, design, SEO, WooCommerce, and more through natural language commands.1004MIT
- AlicenseNot gradedqualityDmaintenanceConnects WordPress sites to AI agents, enabling content management through natural language commands via the WordPress REST API.8 npm2MIT
- AlicenseNot gradedqualityDmaintenanceConnects self-hosted WordPress sites to AI assistants for content creation, SEO, media management, and WooCommerce via 163 tools across 33 categories.2MIT