pickuppatrol-mcp
An MCP server for PickUp Patrol — the school
dismissal app. Read and change how your children leave school: their weekly
default plan, one-off changes for specific dates, and the school's dismissal
options and cutoff times.
Developed and maintained by AI (Claude Code). Use at your own discretion.
What it talks to
app.pickuppatrol.net runs a ServiceStack JSON API
behind an Ionic/Vue SPA. There is no published API, but the service is reachable
server-side with an ordinary HTTPS request — no browser extension, no bot wall,
no captcha. The server signs in with your own email and password and holds the
resulting session in memory.
Every request shape is captured in docs/PICKUPPATROL-API.md,
read off the shipped client rather than guessed, and exercised against a real
account — reads, a write, and its restore.
Install
// .mcp.json
{
"mcpServers": {
"pickuppatrol": {
"command": "npx",
"args": ["-y", "@chrischall/pickuppatrol-mcp"],
"env": {
"PICKUPPATROL_USERNAME": "[email protected]",
"PICKUPPATROL_PASSWORD": "…"
}
}
}
}
For local development, copy .env.example to .env and fill it in.
The server starts without credentials — it answers the host's install-time probe
and only reports the configuration error on the first tool call.
Tools
Reads
| Tool | What it gives you |
|---|
pup_get_session | The signed-in account and the students linked to it |
pup_list_students | Every student with their weekly defaults and review flag |
pup_get_student | One student in full |
pup_get_default_plans | A student's weekly default plan, day by day |
pup_list_plans | Day-by-day plans across a date range (view: "brief" for one line per child per day) |
pup_get_plan | One student, one date — including whether it is locked |
pup_list_transportations | A school's dismissal options and the rules each imposes |
pup_get_school | School profile, notify times, cutoff times, settings |
pup_list_non_school_days | Dates no plan can be set for, and dates already changed |
pup_list_car_numbers | Car numbers the school issued to this account |
pup_healthcheck | Credentials sign in and the API answers; on failure, error.kind says which hop broke (edge_blocked, credential_rejected, …) |
Reads are projected to known fields. Plan notes can be written by any guardian
on the account, and option hints and school settings by school staff, so every
read that carries them is marked untrusted_content with a note telling the
model to treat the text as data, not instructions. pup_list_plans,
pup_get_plan, pup_get_school and pup_get_student take raw: true for the
untouched API record (still marked untrusted) — the only way to see fields such
as SASId or SafetyFlag.
Writes — every one asks you to confirm first. A client that can show a
confirmation prompt (Claude Code) shows one, unless MCP_CONFIRM_ELICITATION=off.
Otherwise the first call makes no
change and returns a preview of the exact payload it would send plus a
confirmToken, and only a repeat call with that token makes the change — see
Confirmations.
| Tool | What it changes |
|---|
pup_set_plan | Dismissal for one or more specific dates, or clears them back to the default |
pup_set_default_plans | The weekly default plan, or clears every default |
pup_mark_defaults_reviewed | The school's "defaults need review" prompt |
Confirmations
| variable | default | |
|---|
MCP_CONFIRM_MODE | ask-user | What a write does on a client that cannot show a confirmation prompt (claude.ai, Claude Desktop). ask-user: two steps — the first call does nothing and returns a preview plus a token, and the model must get your approval in chat before calling again with it. auto: the same two steps, but the model may use the token after reviewing the preview itself. refuse: writes are refused on such clients. A client that can show prompts (Claude Code) always gets the real prompt, unless MCP_CONFIRM_ELICITATION=off. An unrecognised value is treated as refuse. |
MCP_CONFIRM_ELICITATION | on | off never shows a confirmation prompt, so every client gets the MCP_CONFIRM_MODE path. Set it for a client that claims to support prompts but never shows one (the write hangs — opencode 2.0.x). Any other value stays on, with a warning on stderr. |
MCP_CONFIRM_TTL_SECONDS | 600 | How long a token stays valid. |
MCP_CONFIRM_SECRET | random per process | Signing key; set it only if tokens must survive a server restart. On mcp-host the host supplies a stable per-child key (MCP_HOST_CONFIRM_SECRET) and spent tokens are recorded under MCP_DATA_DIR, so an approval survives an idle restart. |