
AI Agent Hub is the most complete AI integration plugin for WordPress. It provides 80+ abilities across 10 modules, a built-in MCP (Model Context Protocol) server for AI agent connectivity, AI experiments directly in the Gutenberg block editor, role-based access control, JWT authentication, a workflow builder, and full WooCommerce support.
Unlock the full power of AI Agent Hub with AI Agent Hub Pro:
Each module can be independently enabled or disabled from the AI Agent Hub dashboard.
AI-powered content analysis, generation, and improvement for posts and pages.
Full CRUD for WordPress posts, categories, and tags.
CRUD operations for WordPress pages.
Upload, update, and manage media files.
Search, create, and manage WordPress users.
CRUD operations for any registered custom post type.
Discover and execute any WordPress REST API endpoint dynamically.
View site info, plugins, themes, and users at a glance.
View and update WordPress site settings.
Full WooCommerce management through AI. Requires WooCommerce to be active.
Monitor PHP errors in real time and fix them faster. Works out of the box — no configuration required to start tracking errors.
Free features:
* Real-time PHP error tracking grouped by file and message.
* Email notifications for errors in plugins and themes — configurable recipient, severity levels, and rate limit.
* Fix Command in every email — a pre-filled text snippet you can paste into any AI assistant to get fix instructions.
* Admin dashboard widget showing the last 5 errors and a 24-hour error count.
* Debug log scanner catches errors that occur before the plugin loads (e.g. fatal parse errors during activation).
Pro features (requires AI Agent Hub Pro):
* MCP Fix Command — paste directly into Claude Desktop, Cursor, or any connected MCP client. The AI reads the file, suggests a fix, creates a backup, and applies it.
* Webhook notifications — send error alerts to Slack, Discord, or a custom URL.
* Backups Manager — all AI-applied fixes are backed up; restore any backup with one click.
* Extended error sources — monitor WordPress Core, MU-Plugins, and Drop-ins in addition to plugins and themes.
AI Agent Hub adds AI-powered experiment panels directly into the WordPress block editor:
With AI Agent Hub Pro, experiments gain advanced features: prompt templates library, batch generation mode, “Explain This Generation” reasoning, generation history, and keyboard shortcuts.
The Error Debugger module monitors PHP errors on your WordPress site and helps you fix them faster.
How it works:
Free fix flow:
Copy the pre-filled text from the email paste into ChatGPT, Claude, Gemini, or any AI chat the AI explains the error and how to fix it.
Pro fix flow (MCP):
Copy the MCP command block from the email paste into Claude Desktop, Cursor, or any MCP client connected to your site the AI reads the file, suggests a fix, creates a backup, and applies it automatically.
Admin dashboard widget:
When the Error Debugger module is active, a “AI Agent Hub — Recent Errors” widget appears on the WordPress admin dashboard showing the last 5 errors and a 24-hour error count. You can disable the widget from the Error Debugger settings without disabling the module.
AI Agent Hub includes a built-in MCP (Model Context Protocol) server that lets external AI agents interact with your WordPress site. The MCP endpoint is:
https://your-site.com/wp-json/awfah_mcp/mcp
Any MCP-compatible AI client can connect and use all enabled abilities as tools, resources, and prompts.
On every post and page edit screen, the AI Content Steward meta box provides:
Claude Desktop supports MCP servers natively. To connect it to your WordPress site:
Step 1: Generate a JWT token
Send a POST request to your site to get a JWT token:
curl -X POST "https://your-site.com/wp-json/jwt-auth/v1/token" -H "Content-Type: application/json" -d "{\"username\":\"your-username\",\"password\":\"your-password\",\"expires_in\":2592000}"
This returns a token valid for 30 days (2592000 seconds). Copy the token value from the response.
Step 2: Configure Claude Desktop
Open the Claude Desktop config file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.jsonAdd this MCP server entry:
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": [
"-y",
"@anthropic-ai/mcp-wordpress-remote@latest",
"--url",
"https://your-site.com/wp-json/awfah_mcp/mcp"
],
"env": {
"JWT_TOKEN": "paste-your-jwt-token-here"
}
}
}
}
Step 3: Restart Claude Desktop
After saving the config, restart Claude Desktop. All enabled abilities will appear as tools. You can then ask Claude to manage posts, pages, media, users, settings, and WooCommerce from natural language.
Claude Code can also connect to MCP servers. Add the server using:
claude mcp add wordpress -- npx -y @anthropic-ai/mcp-wordpress-remote@latest --url https://your-site.com/wp-json/awfah_mcp/mcp
Then set the JWT token as an environment variable before running Claude Code:
export JWT_TOKEN="paste-your-jwt-token-here"
Any editor or AI tool that supports MCP can connect. The setup is similar:
https://your-site.com/wp-json/awfah_mcp/mcp@anthropic-ai/mcp-wordpress-remote transport package, or configure your client’s native MCP settings with the URL and JWT token.Authorization: Bearer <your-jwt-token>You can test the MCP endpoint directly using Postman or any HTTP client. The MCP protocol uses JSON-RPC 2.0 over HTTP.
Step 1: Initialize a session
Send a POST request to https://your-site.com/wp-json/awfah_mcp/mcp with:
Authorization: Bearer <your-jwt-token>Content-Type: application/jsonCopy the Mcp-Session-Id header from the response.
Step 2: Send initialized notification
Send a POST with the session ID header:
Mcp-Session-Id: <session-id-from-step-1>Step 3: Call a tool
Now you can call any ability as a tool:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "awfah-site-get-site-info",
"arguments": {}
}
}
Note: In MCP tool names, the / in ability IDs is replaced with -. So awfah-site/get-site-info becomes awfah-site-get-site-info.
AI Agent Hub provides three JWT endpoints:
POST /wp-json/jwt-auth/v1/token – Pass username, password, and optional expires_in (seconds, min 3600, max 2592000).GET /wp-json/jwt-auth/v1/tokens – List all active tokens (requires authentication).POST /wp-json/jwt-auth/v1/revoke – Revoke a specific token (requires authentication).Tokens are signed with HS256 using a per-site secret key stored in the awfah_jwt_secret_key option. Each token includes the user ID, issued-at time, expiration, and a unique JTI.
AI Agent Hub provides role-based access control for MCP connections. This means different WordPress users see different abilities depending on their role.
How it works:
Example scenarios:
Setting up role-based access:
Multiple MCP connections:
You can create multiple MCP connections in your AI client config, each authenticating as a different WordPress user. For example:
This lets you switch between permission levels depending on the task at hand.
If you prefer not to use JWT, you can also authenticate with WordPress Application Passwords (available in WordPress 5.6+):
However, JWT is recommended for MCP connections as it avoids sending credentials with every request.