AI MCP server
The WP Engine AI Model Context Protocol (MCP) server connects AI agents to your WP Engine accounts and WordPress sites. Examples of these agents include Claude Code and Claude Desktop. Through the server, an agent can find and run WordPress abilities, search site content, and manage hosting on your behalf.
What you can do
Section titled “What you can do”- List your WordPress sites — see all sites registered to your WP Engine account
- Search abilities — find WordPress operations by keyword across all your sites
- Run abilities — run WordPress actions from your AI agent, such as creating posts or managing plugins
- Manage content — create, update, and delete posts and pages
- Search site content — search a site’s knowledge base and read the documents it cites
- Manage hosting — manage backups, domains, Secure Sockets Layer (SSL), caching, installs, and staging with the
wpe_*tools - Work on an environment — run shell commands and read, write, or edit files directly on a live WP Engine environment
How it works
Section titled “How it works”- You configure your MCP client with the server URL, then sign in with your WP Engine account
- Your client connects to the MCP server when you start a session
- You ask your client to perform a WordPress operation in natural language
- Your client calls the MCP server with the appropriate tool (
list_accounts,list_account_sites,search_abilities,run_site_ability) - The server verifies your identity, checks permissions, and runs the ability on your WordPress site
- Your client returns the result to you
Your MCP client turns each request into tool calls. The server authorizes every call as the signed-in user and runs it against your account or site.
Explore the available tools
Section titled “Explore the available tools”| Tool | Needs | Purpose |
|---|---|---|
list_accounts |
Sign-in only | List your accounts that have AI turned on and a connected site |
list_account_sites |
Site connection | List active sites by default, or filter by registration status |
search_abilities |
WordPress account connection | Find abilities by keyword |
list_site_abilities |
WordPress account connection | List all abilities for a site |
run_site_ability |
WordPress account connection | Run a WordPress ability |
get_site_knowledge_base |
Site connection | Get a site’s knowledge base identity and searchable filter values |
search_knowledge_base |
Site connection | Search a site’s knowledge base for content that grounds an answer |
fetch_knowledge_base_document |
Site connection | Fetch one full document from a site’s knowledge base by ID |
list_knowledge_base_documents |
Site connection | List every matching document in a site’s knowledge base |
wpe_* hosting tools |
Sign-in only | Manage sites, installs, domains, backups, SSL, and caching |
environment_* tools |
Sign-in only | Run commands and edit files directly on a live environment |
A tool that needs an account takes an account_id. Take it from
list_accounts, or from wpe_list_accounts for the hosting tools.
Each tool publishes its input schema. Retrieve the current schemas with
tools/list, or browse them in
MCP Inspector.
Try example requests
Section titled “Try example requests”List your sites
Section titled “List your sites”claude "Use the wpengine MCP server to list all my active WordPress sites"Claude Code calls list_account_sites and returns a summary similar to this:
You have 3 sites:1. example.com - Active, WordPress account connected2. staging.example.com - Active, needs a WordPress account connection3. dev.example.com - Active, WordPress account connectedCreate a post
Section titled “Create a post”claude "Use the wpengine MCP server to create a draft post on example.com titled 'Hello from Claude' with the content 'This was created via MCP.'"Claude Code then does the following:
- Searches for the site’s Create Post ability (
wp-engine-ai/create-posts) - Runs it with your input
- Returns the new post ID and admin link
Search abilities
Section titled “Search abilities”claude "Use the wpengine MCP server to find WordPress abilities for managing comments"Claude Code searches across your connected sites and returns the matching abilities.
Choose an MCP client
Section titled “Choose an MCP client”Any MCP client that supports the Streamable HTTP transport and MCP OAuth can connect. WP Engine tests the following clients:
| Client | Client docs | Setup guide |
|---|---|---|
| Claude Code | MCP in Claude Code | Connect Claude Code |
| Claude Desktop | Custom connectors using remote MCP | Connect Claude Desktop |
| MCP Inspector | Inspector | — |
Connect another client
Section titled “Connect another client”To connect a client that isn’t listed, configure it with these settings:
| Setting | Value |
|---|---|
| Endpoint | https://api.ai.wpengine.com/v1/mcp |
| Transport | Streamable HTTP with JSON-RPC 2.0. The server is stateless and accepts POST requests only. It doesn’t keep MCP sessions or open a server-to-client stream. |
| Authentication | MCP OAuth. The server’s 401 response identifies the authorization server. After sign-in, the client sends Authorization: Bearer <access_token> on every request. |
All other behavior follows the MCP specification.
The server doesn’t support API keys. A client configured with an API key can
connect, but every tool call returns forbidden. To use the server, a client
must support MCP OAuth. See
Authentication.
Use one server entry for every site
Section titled “Use one server entry for every site”A connection belongs to the WP Engine user who signed in, not to a single site or account. You configure the server once, however many sites or accounts you have.
Each site-scoped tool takes an account_id and a site_id, and each call is
independent. An agent can work on several of your sites in the same
conversation. It doesn’t need to reconnect or select a site first.