AI
What Is MCP and Why WordPress Developers Should Care
Model Context Protocol (MCP) is an open standard originally developed to solve a simple problem: AI clients need a consistent way to connect to external tools, databases, and APIs. Before MCP, every integration was bespoke — paste credentials into a chat, hope the model parses your instructions, manually copy results back into wp-admin.
MCP replaces that chaos with a contract. The client lists available tools, calls them with typed parameters, and receives structured responses. AI Bridge implements that contract inside WordPress at /wp-json/ai-bridge/v1/ — so Cursor, Claude Desktop, VS Code, and Windsurf connect directly to your install.
The MCP stack in plain language
Think of three layers:
- AI client — where you prompt, plan, and review (Cursor, Claude, etc.)
- MCP transport — authenticated HTTP/JSON-RPC to your WordPress site
- Tool execution — real PHP, real files, real database through WordPress APIs
Unlike hosted “WordPress AI” services, nothing in layer 2 or 3 runs on a third-party server unless you choose to use the optional AI Bridge Console as a local interface.
Why WordPress is a perfect MCP host
WordPress is not just a CMS — it is a runtime. It already has:
- A mature REST API and authentication via Application Passwords
- A plugin ecosystem (WooCommerce, Elementor, ACF, CF7) loaded into PHP memory
- Filesystem access for themes, plugins, and uploads
- Hooks, filters, and wpdb for deep customization
When an agent calls run_php, it executes inside that runtime. WooCommerce product queries work. Elementor page JSON updates work. No per-plugin MCP adapter required.
Built-in AI Bridge tools
AI Bridge ships with tools developers use every day:
run_php— execute PHP with full WP API accesswrite_file/edit_file— deploy themes, plugins, assetsdb_query— controlled database reads and writesmanage_posts— create and update pages, posts, CPTsget_site_info— map the install for the agent
Getting started in 15 minutes
Install AI Bridge from your plugins directory. In WP Admin → AI Bridge, enable abilities and confirm you understand the security implications. Create an Application Password for your admin user. In Cursor or Claude Desktop, add an MCP server pointing at:
https://your-site.com/wp-json/ai-bridge/v1/
Your agent discovers tools on the first connection. Ask it to run a diagnostic:
POST /wp-json/ai-bridge/v1/tools/run_php
{ "code": "return get_bloginfo('version');" }
What MCP is not
MCP is not a chatbot. It does not generate marketing copy or hold customer conversations. Your AI client handles language and reasoning; MCP handles structured access to WordPress. That separation is a feature — it keeps responsibilities clear and your data on your server.
The future of WordPress development is not copy-pasting SQL into ChatGPT. It is agents operating on your install through protocol-native tools — and MCP is how we get there.