FleetWP is live. Read the launch announcement
FleetWP Docs
Developers

MCP server

Let AI agents manage your WordPress fleet through the Model Context Protocol.

FleetWP speaks the Model Context Protocol two ways, with the same tools and the same token:

  • Hosted: connect any MCP client that supports remote servers to https://app.fleetwp.io/api/mcp. Nothing to install.
  • Local: run @fleetwp/mcp alongside an agent that launches MCP servers as local commands (Claude Desktop, Claude Code).

Either way the agent can do exactly what its token allows, through the same checks as the REST API.

Hosted server

  1. In FleetWP, open Agents & API and create a token (see Authentication). Copy it; it starts with fwp_.
  2. In your MCP client, add a remote (Streamable HTTP) server:
    • URL: https://app.fleetwp.io/api/mcp
    • Header: Authorization: Bearer fwp_your_token_here

Check the connection from a terminal:

curl -s https://app.fleetwp.io/api/mcp \
  -H "Authorization: Bearer fwp_your_token_here" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The hosted server is stateless and always answers in plain JSON. A missing or invalid token is rejected with HTTP 401. When a single tool is refused (for example a read-only token asking for a backup), that call returns an error result and the connection stays up.

Local server

The server reads FLEETWP_URL and FLEETWP_TOKEN from its environment. In an MCP client config:

{
  "mcpServers": {
    "fleetwp": {
      "command": "npx",
      "args": ["-y", "@fleetwp/mcp"],
      "env": {
        "FLEETWP_URL": "https://app.fleetwp.io",
        "FLEETWP_TOKEN": "fwp_your_token_here"
      }
    }
  }
}

Tools

ToolDescriptionToken scope
list_sitesList all sites in the workspaceread
get_siteShow details for one siteread
list_backupsList a site's backupsread
create_backupStart a backup (type: full / db / files); returns a job_idwrite
restore_backupRestore a backup onto the live site (destructive); returns a job_idwrite
cancel_backupStop a queued or running backupwrite
set_backup_scheduleSet automatic backups and how many to keepwrite
update_siteUpdate plugins (by plugin file as get_inventory lists them, e.g. akismet/akismet.php), themes and/or WordPress core; returns a job_idwrite
list_plugin_versionsWordPress.org versions a plugin can roll back toread
rollback_pluginInstall an earlier version of a plugin (destructive); returns a job_idwrite
set_plugin_stateActivate or deactivate pluginswrite
install_packagesInstall plugins or themes from WordPress.orgwrite
switch_themeSwitch the active themewrite
lock_updateLock a plugin or theme against updates (unlocking stays in the dashboard)write
site_login_urlGenerate a one-click admin login URLwrite
get_activityRecent activity, for the workspace or one siteread
log_activityLog maintenance done outside FleetWP against a sitewrite
get_inventoryLive plugin, theme and core list with available updatesread
get_securityOpen security findings, for one site or the whole fleetread
list_site_tweaksSecurity fixes (Site Tweaks) and which are appliedread
apply_security_fixApply or revert security fixeswrite
get_performanceLatest performance sample and recent trendread
get_uptimeRecent uptime checksread
get_errorsDeduped PHP error logread
get_broken_linksBroken links from the last scanread
run_scanRun a fresh security, performance, broken-link, update, domain, server or database scanwrite
get_domain_healthDomain, SSL and email health, for one site or every site with problemsread
list_visual_checksA site's recent visual checks (screenshots before and after updates)read
get_visual_checkOne visual check's pages, what changed, and image linksread
get_server_healthA site's disk, PHP, OPcache, scheduled tasks and caching, from the last scanread
get_database_healthA site's database size, largest tables, autoloaded options and clutterread
get_store_healthWooCommerce card-testing activity and checkout exposure, for one store or every storeread
clean_databaseClean up database clutter, backing up the database firstwrite
list_reportsSaved reports with their dashboard links, and each kind's scheduleread
generate_reportBuild and save a site, security or performance report nowwrite
set_report_scheduleSet when a site saves each kind of reportwrite
get_site_settingsA site's name and which features are onread
update_site_settingsRename a site or turn features on or off (not available to agent tokens)write
list_ignoredWhat's ignored on a site, by kindread
ignore_issueHide a known PHP error, broken link, security finding or domain checkwrite
unignore_issueBring an ignored issue backwrite
update_connectorInstall the latest FleetWP connector (not available to agent tokens)write
get_jobCheck one backup, restore, update or database cleanup by job_idread
list_jobsRecent backups, restores, updates and other operationsread

Each tool also carries standard MCP hints (read-only, destructive, idempotent) so clients can ask for confirmation before risky actions. restore_backup, update_site, rollback_plugin, set_plugin_state, switch_theme and clean_database are marked destructive.

Scope your token

Give the agent a token whose scope matches what you want it to do. A read token lets it observe the fleet without being able to trigger backups, updates, or logins.

On this page