Automate FleetWP
Drive your fleet programmatically with the REST API, the CLI, and the MCP server for AI agents.
Everything you can do in the dashboard, you can do programmatically. FleetWP exposes three surfaces, all backed by the same token-authenticated REST API:
REST API
Token-authed HTTP endpoints under /api/v1 for sites, backups, actions, and activity.
CLI
A zero-dependency Node CLI (fleetwp) for the terminal and CI.
MCP server
A Model Context Protocol server so AI agents can manage your fleet.
Base URL and auth
All three read the same two settings:
| Setting | Default | Purpose |
|---|---|---|
FLEETWP_URL | https://app.fleetwp.io | Base URL of the FleetWP app |
FLEETWP_TOKEN | — | Your API token (Bearer) |
The REST API lives under ${FLEETWP_URL}/api/v1. Requests authenticate with a
Bearer token — see Authentication to issue one.
API requests have no user session. Every request is scoped to the workspace that owns the token, and tokens carry a read or write scope — write actions require the write scope.