Skip to content

Instantly share code, notes, and snippets.

@juanmaguitar
Last active October 13, 2025 15:32
Show Gist options
  • Select an option

  • Save juanmaguitar/29c5a7b70d605a5a3b9ade1c23fe398a to your computer and use it in GitHub Desktop.

Select an option

Save juanmaguitar/29c5a7b70d605a5a3b9ade1c23fe398a to your computer and use it in GitHub Desktop.
State of Artificial Intelligence Integration in WordPress (October 2025)

State of Artificial Intelligence Integration in WordPress (October 2025)

Version: October 2025 Based on: official Core AI Team documentation and the workshop "Turn your local WordPress install into your AI coding assistant" (WordCamp US 2025, Jonathan Bossinger)


🧠 1. Overview

WordPress is developing an open infrastructure called the AI Layer, designed to allow any artificial intelligence model or agent (GPT, Claude, Ollama, etc.) to interact with the WordPress ecosystem using interoperable APIs and open standards.

πŸ’‘ β€œWordPress isn’t building an AI β€” it’s building the language that lets any AI speak WordPress.”

This approach is implemented through the AI Building Blocks, a set of foundational components that define the interoperability layer between WordPress and AI models.


🧱 2. AI Building Blocks

Component Primary Role Status Public Distribution
Abilities API Defines what β€œabilities” or actions WordPress can execute via AI. βœ… Stable WordPress/abilities-api
PHP AI API Server-side layer that runs AI models via adapters (OpenAI, LocalAI, etc.). βœ… Active β€”
MCP Adapter Turns WordPress into a Model Context Protocol (MCP) server. βœ… Public WordPress/mcp-adapter

βš™οΈ 3. Abilities API

The Abilities API allows registering, listing, and executing abilities (AI-powered actions) from PHP or JavaScript. Each ability defines its title, description, input/output schema, and execution callback.

wp_register_ability( 'get_site_info', [
	'title'       => 'Get Site Info',
	'description' => 'Returns basic site metadata',
	'outputSchema' => [
		'type'       => 'object',
		'properties' => [
			'site_name'  => [ 'type' => 'string' ],
			'wp_version' => [ 'type' => 'string' ],
		],
	],
	'execute' => function() {
		return [
			'site_name'  => get_bloginfo( 'name' ),
			'wp_version' => get_bloginfo( 'version' ),
		];
	},
] );

These abilities can be exposed as MCP tools, allowing external LLMs to discover and use them directly within their development environment.


πŸ’» 4. PHP AI API

The PHP AI API is the layer that abstracts communication between WordPress and AI models. It provides adapters for multiple providers and handles authentication, prompts, and contextual management.

use WP_AI\Models\TextModel;

$model    = new TextModel( 'gpt-4o' );
$response = $model->generate( 'Summarize this post' );

πŸ” 5. Authentication

Method Usage Status
Cookies + Nonce Block editor authentication βœ… Active
Application Passwords Local or remote MCP connections βœ… Active
permission_callback() Fine-grained ability access control βœ… Active
OAuth / JWT Tokens Advanced permission systems πŸ§ͺ In design

🌐 6. JSON-RPC and MCP

The MCP Adapter is based on JSON-RPC 2.0, exposing registered abilities as callable methods to AI models.

Example:

{
  "jsonrpc": "2.0",
  "method": "run",
  "params": { "ability": "get_site_info" },
  "id": 1
}

Response:

{
  "jsonrpc": "2.0",
  "result": {
    "site_name": "Local WP",
    "wp_version": "6.8"
  },
  "id": 1
}

🧩 7. MCP Adapter

The MCP Adapter turns a WordPress site into a Model Context Protocol (MCP) server, enabling communication with AI-powered editors such as VS Code, Claude, or GitHub Copilot.

Architecture Overview:

AI Editor (VS Code / Claude / Copilot)
        β”‚ JSON-RPC (MCP)
        β–Ό
MCP Remote Bridge (Node.js)
        β”‚ HTTP
        β–Ό
WordPress MCP Adapter Plugin
        β”‚
        β–Ό
Abilities API β†’ PHP AI API β†’ Model

πŸ“¦ Official Repository


πŸ–₯️ 8. MCP WordPress Remote (CLI)

πŸ”— Repository: Automattic/mcp-wordpress-remote πŸ“¦ npm: @automattic/mcp-wordpress-remote

Description

A Node.js tool that acts as a bridge between WordPress (MCP server) and AI development environments like VS Code or Claude.

Usage

   {
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": ["-y", "@automattic/mcp-wordpress-remote"],
      "env": {
        "WP_API_URL": "https://your-wordpress-site.com"
      }
    }
  }
}

πŸ“¦ 9. Available Repositories and Tools (October 2025)

Type Project URL Status
🧩 Plugin Abilities API WordPress/abilities-api βœ… Active
🌐 Plugin MCP Adapter WordPress/mcp-adapter βœ… Active
βš™οΈ CLI / Bridge MCP WordPress Remote Automattic/mcp-wordpress-remote 🧩 Public
🧩 PHP AI API (in development) β€” β€” πŸ”§ Internal development
🧩 Example AI Experiments MCP Server jonathanbossenger/ai-experiments-mcp-server 🧠 Workshop example
πŸ“˜ Documentation Core AI Team Blog make.wordpress.org/ai Active

πŸ—‚οΈ 10. Historical Repositories

Repository Historical Role Status
Automattic/ai-experiments Original sandbox for Abilities and PHP AI API Archived
Automattic/wordpress-mcp First MCP Adapter prototype Replaced
Automattic/wp-feature-api Early experiments on feature APIs Historical

πŸ“ Note: The Automattic/wp-ai-server repository mentioned in internal documents never existed publicly; it was a temporary internal name used during early PHP AI API development.


🧭 11. Roadmap 2025 β†’ 2026

Milestone Date Status
AI Experiments Plugin (Automattic) Q1 2025 βœ… Completed
Core AI Team formation Q2 2025 βœ… Completed
Abilities API (public plugin) Q3 2025 βœ… Completed
MCP Adapter migrated to WP org Q3 2025 βœ… Completed
MCP WordPress Remote (CLI) Q3 2025 βœ… Completed
Experimental Core integration Q4 2026 🧩 Planned

πŸ’‘ 12. What Developers Can Try Today

  1. Install and activate the plugins:

    git clone https://github.com/WordPress/abilities-api
    git clone https://github.com/WordPress/mcp-adapter
  2. Configure the MCP client in the LLM like for example:

   {
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": ["-y", "@automattic/mcp-wordpress-remote"],
      "env": {
        "WP_API_URL": "https://your-wordpress-site.com"
      }
    }
  }
}
  1. Register custom abilities via the PHP or JS API.
  2. Connect VS Code or Claude to the local MCP server.
  3. Explore real examples: jonathanbossenger/ai-experiments-mcp-server

✨ 13. Conclusion

WordPress is moving toward an open, modular, and interoperable integration of artificial intelligence, focused on enabling communication between AI models and the CMS through open standards.

The three current technical pillars are:

  1. Abilities API
  2. PHP AI API
  3. MCP Adapter

Together, these tools position WordPress as an β€œAI-native” platform, ready to interoperate with any AI model or agent using open standards such as MCP.

🧠 β€œAI in WordPress isn’t a feature β€” it’s a new interoperability layer for the entire ecosystem.”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment