Zarstat

Docs

MCP

A small JSON-RPC endpoint for one site. Auth is the same site id as the read API. It does not invent visitors, rand, or pages. There is no CLI.

Endpoint

POST https://www.zarstat.co.za/api/mcp?site=YOUR_SITE

site can also be a tool argument. Same id you already send to GET /api/read. No extra secret.

Methods

  • initialize — protocol 2024-11-05, server name zarstat
  • tools/listzarstat_overview, zarstat_pages, zarstat_channels
  • tools/call — same numbers as the read API for that site and range
  • ping

Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "zarstat_overview",
    "arguments": { "site": "YOUR_SITE", "range": "7d" }
  }
}

Empty sites return zeros and empty arrays. Range is 7d, 30d, or all. GET /api/mcp lists the tools. This is not a full MCP product surface and not a CLI.