# GymCam Analytics — MCP Server

GymCam ships as an MCP (Model Context Protocol) server so AI agents can call its analytics tools natively.

## Tools

- `get_today_summary` — classes held today, total attendance, top classes
- `get_trainer_attendance` — fill rate / no-shows per trainer (day or week)
- `get_class_performance` — classes ranked by fill rate (spot dead classes)
- `get_revenue_insights` — most profitable vs. dead classes

## Install (stdio)

```bash
uvx --from git+https://github.com/axelfreeman/gymcamanalytics gymcam
```

## Hosted endpoint (streamable HTTP)

Connect directly to `https://gymcamanalytics.com/mcp`.

## Auth

Set `GYMCAM_API_KEY` to your API key (free at [get-key](/get-key)). Without a key, tools return onboarding text.

## Server card

Machine-readable server card at `/.well-known/mcp/server-card.json`.
