Setup MCP with AI Engine
The easiest way to connect AI agents to WordPress. One setting. Two minutes. Done.
⚡ Simple Setup
Just set a bearer token in AI Engine settings, then connect your AI agent. That's it.
Install AI Engine
Install the free AI Engine plugin from WordPress.org.
Enable MCP & Set Token
Go to Meow Apps → AI Engine → Settings → MCP. Enable it and set a secure bearer token.
my-super-secret-token-123
💡 Use a strong, random token. This is your API key.
Get Your MCP URL
Your MCP endpoint is:
https://yoursite.com/wp-json/mcp/v1/http
Or use the token-in-URL variant (no header needed):
https://yoursite.com/wp-json/mcp/v1/YOUR_TOKEN
Connect Your AI Agent
Choose your client:
Add to your .mcp.json or project config:
{
"mcpServers": {
"wordpress": {
"type": "http",
"url": "https://yoursite.com/wp-json/mcp/v1/http",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
Or use the simpler token-in-URL approach:
{
"mcpServers": {
"wordpress": {
"type": "http",
"url": "https://yoursite.com/wp-json/mcp/v1/YOUR_TOKEN"
}
}
}
Edit claude_desktop_config.json:
{
"mcpServers": {
"wordpress": {
"type": "http",
"url": "https://yoursite.com/wp-json/mcp/v1/YOUR_TOKEN"
}
}
}
📁 Config location: ~/Library/Application Support/Claude/ (Mac) or %APPDATA%\Claude\ (Windows)
Add to VS Code's MCP settings:
{
"servers": {
"wordpress": {
"type": "http",
"url": "https://yoursite.com/wp-json/mcp/v1/http",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}
Done! Try It Out
Open your AI client and try these commands:
- "List my latest 5 posts"
- "Create a draft post about Tokyo"
- "Show me all images uploaded this month"
- "Update post 123 to add a new paragraph"
Available MCP Tools
🆓 Free Version
mcp_ping
Test connection
list_posts
List blog posts
get_posts
Get post by ID
create_posts
Create new post
update_posts
Update existing post
delete_posts
Delete post
list_pages
List pages
get_pages
Get page by ID
create_pages
Create new page
update_pages
Update page
delete_pages
Delete page
list_media
List media files
get_media
Get media by ID
create_media
Upload media
update_media
Update media metadata
delete_media
Delete media
⭐ Pro Version
Everything in Free, plus:
wp_db_query
Execute SQL queries
wp_get_plugins
List installed plugins
wp_activate_plugin
Activate plugin
wp_deactivate_plugin
Deactivate plugin
wp_get_themes
List themes
wp_switch_theme
Change active theme
wp_get_options
Get WordPress options
wp_set_option
Update options
woo_*
WooCommerce tools (products, orders)
polylang_*
Polylang multilingual tools
Troubleshooting
Connection refused or timeout?
Make sure your WordPress site is accessible from the internet. If behind Cloudflare, ensure the MCP endpoint isn't being cached or blocked.
401 Unauthorized?
Check your bearer token matches exactly what you set in AI Engine settings. Tokens are case-sensitive.
No tools showing up?
Restart your AI client after adding the MCP configuration. Some clients cache the tool list.
Works locally but not in production?
Some hosts strip the Authorization header. Try the token-in-URL approach instead: /wp-json/mcp/v1/YOUR_TOKEN