# Fleets [Health: Active]

**Category:** ☁️ Cloud Platforms  
**Repository:** https://github.com/runFleets/cli  
**GitHub Stars:** 0  
**npm Downloads (last month):** 200  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fleets

## Description
Multi-site analytics as tools: GA4, Search Console, Cloudflare edge, PageSpeed, insights.

## Tools
Capabilities this server exposes over MCP:

- **list_sites** — List all sites on your Fleets account with their connected sources (GA4 property, Cloudflare zone, GSC site). Start here to get slugs.
- **stats** — GA4 summary for a site: sessions, users, pageviews, events, engagement, bounce.
- **sources** — GA4 top traffic sources / channels for a site.
- **campaigns** — GA4 UTM campaign breakdown for a site.
- **referrals** — GA4 referral traffic breakdown for a site.
- **landers** — GA4 top landing pages for a site.
- **events** — GA4 event breakdown (event name, count, users) for a site.
- **users** — GA4 user + session breakdown (country + device) for a site.
- **devices** — GA4 device-category breakdown with engagement and bounce rate.
- **demographics** — GA4 age + gender breakdown (requires Google Signals).
- **funnel** — GA4 conversion funnel across two or more event/step names.
- **seo** — Google Search Console summary (clicks, impressions, CTR, position) for a site.
- **edge** — Cloudflare edge analytics for a site: bots vs humans, cache hit rate, requests.
- **speed** — PageSpeed Insights score + Core Web Vitals for a site's homepage.
- **insights** — AI-ready signals worth investigating across all sites, or filtered to one. Each insight includes a ready-to-run prompt.
- **ask** — Ask a natural-language analytics question; the Fleets agent runs the right tools server-side and returns an answer with citations.
- **log_change** — Record a change you or your agent made to a site (deploy, copy edit, campaign) so it can be correlated with analytics later.
- **recall** — Show recent logged changes for a site (from log_change / `fleets log`).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "fleets": {
    "command": "npx",
    "args": ["-y","fleets-mcp"],
    "env": {
      "FLEETS_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `FLEETS_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Fleets MCP server does

The Fleets MCP server gives AI agents access to analytics collected for sites in a Fleets account. It works across several data sources: Google Analytics 4 for traffic and audience reporting, Google Search Console for search performance, Cloudflare Analytics for edge activity, and PageSpeed Insights for performance data.

The server is organized around site slugs. An agent should call `list_sites` first to discover available sites and see which sources are connected. It can then request summaries, breakdowns, funnels, SEO data, edge metrics, speed results, or generated investigative signals for a selected site. The `ask` tool accepts a natural-language analytics question and returns a server-side answer with citations.

## How it works

Fleets MCP server runs through the `fleets-mcp` command and communicates with MCP clients over the configured command connection. Analytics tools accept a site `slug` and may accept a time range such as `7d`, `30d`, or `24h`. The available range defaults to seven days when no value is supplied.

Most tools are read-only. `log_change` writes an entry to a site's change log, while `recall` reads that log. GA4 tools include summary metrics, traffic sources, campaigns, referrals, landing pages, events, users, devices, demographics, and multi-step funnels. Other tools cover Search Console, Cloudflare edge behavior, PageSpeed Insights, and Core Web Vitals.

## Setup and configuration

Install the package globally with `npm install -g fleets`. The documented runtime requirement is Node.js 22 or later, and the package supports macOS, Linux, and Windows.

Authenticate by running `fleets login`. The CLI can use a browser device flow or a pasted personal token. For automation, set `FLEETS_TOKEN`; this skips interactive login and takes precedence over the token stored in `~/.fleets/config.json`. After authentication, add `fleets-mcp` as the server command in the MCP client configuration. The package also documents an `npx -y fleets-mcp` launcher for setups without a global install.

Before querying data, add or connect sites through the CLI. `fleets add <domain>` creates a site, while connection commands can detect or explicitly select GA4 and Search Console properties.

## Tools and capabilities

- `list_sites` returns sites and their connected GA4, Cloudflare, and Search Console sources.
- `stats` reports GA4 sessions, users, pageviews, events, engagement, and bounce metrics.
- `funnel` evaluates a conversion path containing at least two steps.
- `seo`, `edge`, and `speed` query Search Console, Cloudflare edge analytics, and PageSpeed data respectively.
- `insights` returns signals worth investigating, either across sites or for a selected site.
- `ask` answers natural-language questions with citations.
- GA4 breakdown tools cover sources, campaigns, referrals, landing pages, events, users, devices, and demographics.
- `log_change` and `recall` provide per-site change-log writing and retrieval.

## Limitations and notes

The Fleets MCP server requires an authenticated Fleets account and connected site data. The agent must use a valid site slug, normally obtained from `list_sites`. Results depend on which providers are connected for that site, so a site may not support every analytics category.

Only `log_change` is documented as a write operation; the analytics tools are read-only. The server is intended for live Fleets analytics access rather than direct credentials or query execution against GA4, Search Console, Cloudflare, or PageSpeed APIs.

_Full upstream README: https://allmcps.com/mcp/fleets/readme_

