PageSpeed Ultra MCP
Provides tools to generate Elementor Flexbox container JSON, optimize Elementor JSON by stripping heavy motion JavaScript effects, and enforce image aspect ratios for zero CLS.
Provides tools to generate WordPress MU-Plugin PHP code and WP-CLI commands, audit WordPress/Gutenberg HTML, and optimize WordPress page performance.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@PageSpeed Ultra MCP Audit this HTML for CLS and TBT issues, then suggest fixes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PageSpeed Ultra MCP (WordPress, Elementor & Technical SEO)
High-Performance Model Context Protocol (MCP) server engineered for WordPress, Elementor & Modern Web Technical SEO. Enforces zero Cumulative Layout Shift (CLS), zero Total Blocking Time (TBT), and 100/100 Google Core Web Vitals.
Inspired by the speed and architectural benchmarks of SastraPro (by Mas Sugeng), this MCP server equips AI coding agents (Claude Code, Cursor, Antigravity IDE, Cline, Claude Desktop) with tools to audit, generate, and optimize web layouts for extreme Google PageSpeed scores.
π¦ Free Starter Templates (.json) for Beginners
Don't want to use AI terminal commands? You can directly download our pre-optimized, ready-to-import Elementor Flexbox templates:
Template | File Path | Use Case |
SastraPro Clean Article | Clean editorial blog layout with 16:9 anti-CLS hero container and semantic typography. | |
SastraPro High-Speed Landing Page | High-converting 1-column sales hero layout with zero render-blocking animations. |
How to Import to WordPress (No Coding Required):
Download the
.jsonfile from thetemplates/folder above.In your WordPress Admin, go to Templates -> Saved Templates.
Click Import Templates at the top, upload the
.jsonfile.Insert it onto any Elementor page with 1 click!
Related MCP server: google-seo-mcp
π‘ 1-Line Shortcut Prompts for Beginners
For quick vibe coding in Cline, Claude Code, or Cursor without memorizing long instructions:
Create a New Fast Blog Post:
"Build a new blog post layout about [Your Topic] using
generate_sastra_layoutfrom PageSpeed Ultra. Ensure 16:9 image aspect-ratio (0 CLS) and generate a valid Article JSON-LD schema."Audit an Existing Page:
"Audit this HTML code using
audit_pagespeed_rulesfrom PageSpeed Ultra: [Paste HTML]. List the top 3 issues causing layout shift or high TBT."Clean Up an Elementor Template:
"Optimize this Elementor JSON using
optimize_elementor_jsonfrom PageSpeed Ultra: [Paste JSON]. Strip out any heavy motion JavaScript effects."
π Universal Builder Support (Beyond Elementor)
pagespeed-ultra-mcp is platform-agnostic and works across the entire web ecosystem:
Elementor & Elementor Pro: Cleans motion effects, flattens container div-soup, enforces aspect ratios on image widgets.
Gutenberg (WordPress Core Block Editor): Audits HTML comments (
<!-- wp:... -->), enforces mobile-first semantics.Bricks Builder & Breakdance: Audits output HTML and optimizes CSS payload delivery.
Headless & Jamstack (Astro, Next.js, HTML5): Universal Core Web Vitals audit, JSON-LD Schema generation, and sub-14KB Critical CSS inlining.
π€ The Dream Team: Synergy with Elementor & Novamira
pagespeed-ultra-mcp works in synergy with the WordPress AI MCP ecosystem:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI AGENT WORKFLOW β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββΌββββββββββββββββββββ
βΌ βΌ βΌ
[ Novamira MCP ] [ Elementor Ultra ] [ PageSpeed Ultra ]
Infrastructure Page & Widgets Performance & SEO
- WP-CLI - Layout building - Zero-CLS image rules
- PHP runtime - Pro widgets - Zero-TBT JS optimizer
- Database - Visual editing - Inline Critical CSS
- MU-Plugin writer - Rollback/backups - Rich Results SchemasNovamira MCP (Infrastructure Engine): Prepares WordPress multisite, executes WP-CLI, and writes MU-plugins directly to
wp-content/mu-plugins/for server-level optimization.Elementor MCP / Elementor Ultra MCP (Visual Builders): Constructs pages, containers, widgets, and templates.
PageSpeed Ultra MCP (The Gatekeeper): Sanitizes JSON payloads, guarantees 0 CLS, injects
<14KBCritical CSS, and embeds Google Rich Results JSON-LD Schemas.
π§ Master Prompt for AI Coding Agents
You are a World-Class Full-Stack WordPress & Technical SEO Architect.
Your objective is to build a high-converting, accessible WordPress page achieving 95-100 on Mobile Google PageSpeed Insights (0ms TBT, 0 CLS, FCP < 0.8s, LCP < 1.2s) following SastraPro speed standards.
Execute the 3-Phase Workflow in order:
### PHASE 1: LAYOUT & BUILDER DRAFTING
1. If using Elementor: Use Elementor MCP / Elementor Ultra MCP to build modern Flexbox Containers (max 2 levels deep).
2. If using Gutenberg / HTML: Use semantic milestone elements (<header>, <main>, <article>, <footer>).
3. Explicit Image Dimensions: Every <img> element MUST include explicit width, height, and CSS aspect-ratio.
4. LCP Priority: The primary above-the-fold hero image MUST have fetchpriority="high" and loading="eager".
### PHASE 2: QUALITY & PERFORMANCE GATEWAY (PAGESPEED ULTRA MCP)
Before publishing, invoke tools from `pagespeed-ultra-mcp`:
1. Call `audit_pagespeed_rules` on the generated HTML. Fix any flagged CLS risks or render-blocking scripts.
2. If using Elementor, call `optimize_elementor_json` to strip heavy JavaScript motion animations.
3. Call `generate_critical_css` to produce sub-14KB inline styles and embed them inside <head>.
4. Call `generate_seo_schema` to generate valid Google Rich Results JSON-LD (Article, Breadcrumbs, FAQ).
### PHASE 3: SERVER ENGINE OPTIMIZATION (NOVAMIRA)
1. Use `generate_novamira_wp_optimizer` to generate a lightweight MU-Plugin (wp-content/mu-plugins/pagespeed-ultra.php).
2. Defer non-critical JavaScript and dequeue unneeded block stylesheets or emoji scripts.β‘ 1-Click Easy Installation (Multi-Client)
1. Claude Code CLI (1 Single Terminal Command)
claude mcp add pagespeed-ultra -- npx -y github:ndrean-id/pagespeed-ultra-mcp2. Cursor Editor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"pagespeed-ultra": {
"command": "npx",
"args": ["-y", "github:ndrean-id/pagespeed-ultra-mcp"]
}
}
}3. Cline & Antigravity IDE
Add to cline_mcp_settings.json:
{
"mcpServers": {
"pagespeed-ultra": {
"command": "npx",
"args": ["-y", "github:ndrean-id/pagespeed-ultra-mcp"],
"disabled": false,
"autoApprove": []
}
}
}4. Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"pagespeed-ultra": {
"command": "npx",
"args": ["-y", "github:ndrean-id/pagespeed-ultra-mcp"]
}
}
}π οΈ Included Tools
Tool Name | Purpose | Interoperability |
| Audits HTML layout against Core Web Vitals (TBT, CLS, LCP) with 0-100 score. | Universal (Any Builder/Framework) |
| Generates semantic HTML5 and Elementor Flexbox Container JSON. | Elementor / Gutenberg / HTML |
| Strips heavy JS animation triggers and enforces image aspect ratios. | Elementor MCP / Ultra |
| Generates WordPress MU-Plugin PHP and WP-CLI commands. | Novamira MCP / WordPress |
| Produces sub-14KB inline Critical CSS for the initial mobile viewport. | Universal / Novamira |
| Generates 100% valid Google Rich Results JSON-LD schema scripts. | Universal (Any Site) |
π License
Available Tools
6 toolsaudit_pagespeed_rulesB
Audit HTML code or layout snippet against Google Core Web Vitals (TBT, CLS, LCP) and SastraPro speed standards.
Inputs: html (required).
generate_critical_cssB
Generate lightweight (<14KB) above-the-fold inline Critical CSS to eliminate render-blocking stylesheet delays.
Inputs: theme, fontFamily, maxWidthPx, primaryColor.
generate_novamira_wp_optimizerC
Generate a high-performance WordPress MU-Plugin PHP snippet and WP-CLI commands designed for Novamira MCP to inject into WordPress (disables emojis, block CSS, dashicons, and injects critical CSS/schema).
Inputs: siteType, jsonLdSchema, disableEmojis, disableDashicons, +3 more.
generate_sastra_layoutC
Generate an ultra-fast, semantic HTML5 layout and Elementor Flexbox Container JSON guaranteed for 0 CLS and 0ms TBT.
Inputs: title (required), type, authorName, description, +1 more.
generate_seo_schemaC
Generate 100% valid Google Rich Results JSON-LD schema (Article, BlogPosting, BreadcrumbList, FAQPage, Organization).
Inputs: url (required), schemaType (required), faqs, headline, +6 more.
optimize_elementor_jsonA
Sanitize and optimize Elementor export JSON (from Elementor Official MCP or Elementor Ultra MCP) by stripping heavy JS motion effects and enforcing zero-CLS image dimensions.
Inputs: elementorJson (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 6 tools
The tools mostly target distinct actions: auditing, layout generation, critical CSS, SEO schema, Elementor JSON optimization, and WordPress MU-plugin generation. There is minor overlap between generate_sastra_layout and optimize_elementor_json, and between generate_critical_css and generate_novamira_wp_optimizer, but descriptions clarify their different scopes.
All tool names follow a consistent snake_case verb_noun pattern: audit_*, generate_*, and optimize_*. The convention is predictable throughout the set.
Six tools is well-scoped for a PageSpeed/performance optimization server. Each tool has a clear role and none appear redundant or excessive.
The surface covers auditing, layout generation, critical CSS, schema, Elementor optimization, and WordPress injection, which are core for this domain. Minor gaps exist, such as live URL performance testing or image/JS optimization, but agents can work around them.
Maintenance
Related MCP Connectors
Automated SEO: Site Health, fix plan, Search Console, keywords and draft scoring for AI agents.
Website audits for AI agents: one-call AI visibility report, schema, WCAG, PageSpeed, AI crawlers.
Finds why Google and AI cannot read your site, gives the exact fix, applies it once you approve.
AI SEO agent on your Google Search Console data: audits, quick wins, content, WordPress publishing.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to monitor website performance by scanning sites, retrieving Core Web Vitals, detecting regressions, and receiving AI-powered optimization recommendations.1140 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to diagnose and fix technical SEO, content, and generative engine optimization issues by providing 72 tools that integrate Google Search Console, Google Analytics 4, PageSpeed Insights, structured data, llms.txt, WordPress, and GitHub.7232MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to crawl live websites, audit AEO readiness, generate Schema.org @graph JSON-LD, llms.txt, ai.txt, and robots.txt, inject structured data into HTML, validate optimizations, and retrieve framework-specific code snippets.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and coding agents to audit, compare, and optimize websites for performance, SEO, AEO, GEO, and AI crawler accessibility directly from chat or development workflows.MIT