MCP Server

Manage your WordPress sites from Claude, Cursor, VS Code and other AI assistants.

Overview

XeroWP runs a Model Context Protocol (MCP) server. Connect it to your AI assistant and ask it, in plain language, to list your sites, change PHP versions, install plugins, connect domains or manage WordPress users. The assistant only sees and changes the sites on your account.

Server URL

https://xerowp.com/mcp

Connect Your Assistant

Add the server URL to your client. The first time it connects, your browser opens XeroWP: sign in, review the access the app asks for and click Allow. No API key is needed.

Claude (claude.ai & Claude Desktop)

  1. Open Settings → Connectors and click "Add custom connector".
  2. Name it XeroWP and paste https://xerowp.com/mcp as the URL.
  3. Click Connect, sign in to XeroWP and approve access.

Claude Code

  1. Add the server from your terminal, then run /mcp inside Claude Code and choose XeroWP to sign in.
claude mcp add --transport http xerowp https://xerowp.com/mcp

Cursor

  1. Add the server to ~/.cursor/mcp.json, then click "Connect" next to XeroWP in Cursor's MCP settings.
{
  "mcpServers": {
    "xerowp": {
      "url": "https://xerowp.com/mcp"
    }
  }
}

VS Code

  1. Add the server to .vscode/mcp.json in your project (or your user mcp.json), then start it from the editor and sign in when prompted.
{
  "servers": {
    "xerowp": {
      "type": "http",
      "url": "https://xerowp.com/mcp"
    }
  }
}

Windsurf

  1. Add the server to ~/.codeium/windsurf/mcp_config.json, then refresh the MCP servers list and sign in.
{
  "mcpServers": {
    "xerowp": {
      "serverUrl": "https://xerowp.com/mcp"
    }
  }
}

Authentication & Access

  • Clients sign in with OAuth 2.1. Each approved app gets its own token that only works with the MCP server and lasts 90 days.
  • Connected apps are listed on your API Keys page, where you can revoke them at any time.
  • The assistant has the same permissions as you in the dashboard. Most changes need the site to be active, and other users' sites are never visible.

Clients without OAuth

If your client can't sign in with OAuth, create a key on the API Keys page and send it as a Bearer token:

{
  "mcpServers": {
    "xerowp": {
      "url": "https://xerowp.com/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}

Available Tools

Sites

Find, create and remove sites. Tools that act on a site take a site argument: its ID or any of its domains.

ToolWhat it does
list-sites-toolList your sites with their status, PHP and WordPress versions and plan. Filter by status or search by domain.
get-site-toolGet one site in detail: status, versions, plan and billing, location, server IP, admin user and domains.
create-wp-site-toolCreate a free-trial WordPress site, on a free *.mywpsite.xyz subdomain by default.
delete-site-toolPermanently delete a site with its files and database. The site's domain must be given again to confirm.

Site control

Change how a site runs.

ToolWhat it does
set-site-maintenance-mode-toolTurn maintenance mode on or off.
update-site-php-version-toolSwitch the site to another PHP version.
update-site-wp-version-toolUpdate WordPress core to a newer version or the latest release.
get-site-login-link-toolGet a one-time WordPress admin login link that expires after 5 minutes.

Plugins & themes

Plugins and themes that aren't installed are installed from WordPress.org when activated.

ToolWhat it does
list-site-plugins-toolList installed plugins with their status and version.
manage-site-plugins-toolActivate, deactivate or delete plugins by slug.
list-site-themes-toolList installed themes with their status and version.
manage-site-themes-toolActivate a theme, or delete themes by slug.

Domains

Connect custom domains. SSL is set up automatically once DNS points to the site.

ToolWhat it does
list-site-domains-toolList the site's domains, whether their DNS is verified, and the DNS records to set.
add-site-domain-toolAdd a domain to the site.
verify-site-domain-dns-toolCheck whether a domain's DNS now points to the site.
remove-site-domain-toolRemove a domain. The primary domain can't be removed.

WordPress users

Manage the users of a site's WordPress admin.

ToolWhat it does
list-site-wp-users-toolList users with their ID, username, email and role.
create-site-wp-user-toolCreate a user. A strong password is generated if none is given.
update-site-wp-user-toolChange a user's email, role, password or profile.
delete-site-wp-user-toolDelete a user, optionally reassigning their posts to another user.

Things to Try

  • “List my XeroWP sites and tell me which ones are still on PHP 8.1.”
  • “Put myshop.com into maintenance mode while I update the theme.”
  • “Install and activate WooCommerce on myshop.com.”
  • “Add shop.example.com to myshop.com and tell me which DNS records to set.”
  • “Create an editor account for [email protected] on blog.example.com.”
  • “Give me a login link for the WordPress admin of myshop.com.”

Assistants are told to confirm with you before deleting anything. Deleting a site also requires its domain to be typed again, and it can't be undone, so take a backup first if you might need the site later.

Need more help? Contact Support