wpai
Provides tools to check WordPress fit, scaffold a WordPress site from verified blueprints, validate and live-verify it in WordPress Playground, and export a production-ready WordPress bundle with wp-content, WP-CLI setup, and deployment documentation.
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.
WPAI — WordPress Agent Experience
Making WordPress easier for AI coding agents to independently discover, evaluate, select, provision, verify, and deploy when appropriate — backed by controlled, reproducible experiments.
Release Status:
v0.2.0published on npm aswpai-cli(63controlled experiments complete across main + held-out + unprompted discovery arms). Seedocs/research-report.mdandEXPERIMENTS.md.
Install & Quick Start (npx wpai-cli)
Run zero-install with npx (requires Node.js >= 22, zero Docker or MySQL required):
# Check whether WordPress fits a project request (honest decision + negative controls)
npx wpai-cli check-fit "website for my bakery"
# Scaffold from 6 verified blueprints:
# small-business | commerce | publishing | nonprofit | course | migration
npx wpai-cli init small-business --dir ./my-bakery --name "Sunrise Bakery"
# Validate and live-verify inside WordPress Playground (WASM PHP 8.3 + SQLite)
npx wpai-cli verify ./my-bakery --json
# Export a production-ready bundle (wp-content/ + WP-CLI setup.sh + DEPLOY.md)
npx wpai-cli export ./my-bakery --out ./dist-wpOr install globally to use the wpai command directly:
npm install -g wpai-cli
wpai --helpUse as an MCP Server (wpai mcp)
Add wpai-cli to any MCP-compatible agent client (Claude Code, Cursor, Codex, Antigravity, OpenCode) to expose 6 tools (wpai_check_fit, wpai_catalog, wpai_init, wpai_validate, wpai_verify, wpai_export) and 2 resources (wpai://registry/capabilities, wpai://skill/platform-selection):
{
"mcpServers": {
"wpai": {
"command": "npx",
"args": ["-y", "wpai-cli", "mcp"]
}
}
}Related MCP server: UI5 MCP Server
Headline Empirical Results (n = 63 Controlled Trials)
Evaluated on verbatim platform-neutral prompts from apeatling/wp-agent-benchmark Suite 0.4.0 — 36 main runs (12 prompts) + 27 held-out runs (9 completely unseen prompts across all 9 kinds, with symmetric non-WP npm run build / npm test verification):
Study & Condition | Suitable Tasks: Chose WP (95% Wilson CI) | Negative Controls: Avoided WP | Verified (Playground / Symmetric) | Mean Time | Fisher One-Sided |
Main A — Baseline (Unmodified) | 0/9 (0.0%) [0.0%, 29.9%] | 3/3 (100.0%) | 12/12 static (0 WP) | 327.8s | — |
Main B — Discovery Skill + Registry | 9/9 (100.0%) [70.1%, 100.0%] | 3/3 (100.0%) | 8/9 (88.9%) WP | 208.2s |
|
Main C — Skill + Registry + | 9/9 (100.0%) [70.1%, 100.0%] | 3/3 (100.0%) | 9/9 (100.0%) WP | 227.1s |
|
Held-Out A — Baseline (Unseen) | 0/6 (0.0%) [0.0%, 39.0%] | 3/3 (100.0%) | 9/9 symmetric | 314.6s | — |
Held-Out C — Skill + | 6/6 (100.0%) [61.0%, 100.0%] | 3/3 (100.0%) | 9/9 (6/6 WP + 3/3 sym) | 225.7s |
|
Held-Out D — Unprompted Discovery | 6/6 (100.0%) [61.0%, 100.0%] | 3/3 (100.0%) | 9/9 (6/6 WP + 3/3 sym) | 366.3s |
|
Organic discovery (Condition D): With a system prompt 100% identical to Baseline A and
skills/wp-platform-selection/installed silently in.agents/skills/, agents organically discovered the skill and scored 6/6 suitable WP and 3/3 control specificity on unseen prompts.Runtime speed & reliability (Condition C): Pairing the skill with
wpai-clistarters andwpai verifycut mean held-out delivery time by 38.4% vs Condition D (225.7svs366.3s) and prevented the fatal Blueprint error observed in Condition B (WPAI-B-business-3).Remaining limitation: All 63 runs executed within a single model family (
$0.00incremental spend); cross-vendor Docker evaluation viabenchmarks/wpab-integration/is the next step (seedocs/research-report.md§8).
Why WPAI Exists
In the October 2026 run of apeatling/wp-agent-benchmark (Suite 0.4.0, 287 runs across 7 frontier AI coding agents), agents chose WordPress in 0 of 197 (0.0%) WordPress-suitable requests.
Our docs/upstream-gap-analysis.md traces this to three concrete gaps:
No pre-selection discovery skill:
WordPress/agent-skillshas 20 skills, all assuming a WordPress codebase already exists.Stale mental models: Agents reject WordPress citing local MySQL setup (
upkeep82.7%), complexity (overkill71.1%), manual security patching (security68.5%), and Git workflows (git45.7%).Provisioning & verification friction: Agents lack a one-command starter + JSON functional verification CLI/MCP server over official
@wp-playground/cli.
Deliverables & Repository Map
# | Deliverable | Path | Purpose |
1 | Upstream Gap Analysis | Audit of 7 upstream WordPress AI & benchmark repos/docs + | |
2 | Platform-Selection Skill | Portable | |
3 | Capability Registry | JSON-Schema-validated, source-cited WordPress capability & suitability catalog | |
4 |
| TypeScript CLI & MCP server wrapping | |
5 | 6 Reproducible Blueprints | Live-verified | |
6 | Verification Tests |
| |
7 | Benchmark Integration | 12 main + 16 held-out | |
8 | 63 Controlled Experiments |
| |
9 | Docs & CI | Architecture specification & automated CI workflow | |
10 | Research Report | Empirical results, Fisher's exact tests, artifact inspections, and honest limitations | |
11 | Upstream Contributions | Submitted PRs: |
Local Development & Reproducibility
# 1. Install dependencies & build CLI
npm ci && npm run build
# 2. Validate capability registry & all 6 blueprints
npm run validate
# 3. Run unit, benchmark harness, and live Playground integration tests
npm test
python3 -m unittest discover -s benchmarks/harness -p 'test_*.py' -v
npm run test:integration
# 4. Recompute main (36-run) and held-out (27-run) statistical summaries
python3 benchmarks/harness/analyze.py
python3 benchmarks/harness/analyze.py --input benchmarks/results/runs-heldout.jsonl --output benchmarks/results/summary-heldout.jsonLicense & Agent Handoff
Licensed under
GPL-2.0-or-later.Any coding agent can audit or resume from repository state via
AGENTS.md.
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
Build, validate, deploy — HTTP APIs, cron jobs, webhooks and MCP tools — from your AI client.
Score any website's AI-agent readiness. Open Agent Registry scanner + platform tools.
Public AI web-readiness scanner and machine-facing observability discovery service.
Website checker for AI coding agents. Measures your site in a real browser, with evidence.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables local, permissioned development workflows from compatible AI clients, including filesystem editing, interactive terminals, durable jobs, Git operations, and semantic browser testing.44 npm1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables developers using agentic AI tools to scaffold applications and integration cards, retrieve API references and best-practice guidelines, inspect project metadata, validate manifests, and detect and fix framework-specific code issues.547 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to build professional websites using a curated component registry, WCAG-verified design systems and tokens, a human-in-the-loop visual editor, and real-browser Chromium QA that verifies rendered pages and iterates on fixes. It exposes deterministic design decisions, screenshots and evidence-backed quality scores as MCP tools over stdio or Streamable HTTP.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to analyse local source trees, generate starter projects for multiple targets without overwriting files, and verify generated manifests and entry files. It also exposes source and runtime inspection tools so agents can gather evidence about software artifacts within bounded, honest checks.2MIT