allfami

allfami for AI assistants and developers

allfami is a shared care record for families: the medicines somebody takes and the doses they were given, tasks, appointments and care notes, kept together by parents, relatives and paid carers. This page is for connecting an AI assistant to it - Claude, ChatGPT, a voice assistant, a home automation, or your own code - so it can say which medicines are due and what was given, what is on the day, who is coming and whether somebody checked in, when the next appointment is and what it is about, which tasks and routines need doing, when somebody last had a fever and what the family set up to give for it, and, where the family allows it, record a dose.

Everything an assistant can do is chosen by a person in the family, for named people and named actions, and can be switched off at any time. The app's own safety rules apply to an assistant exactly as they apply to a person, with two extra ones: an assistant can never override the double-dose guard, and it can never overwrite a dose somebody has already recorded.

At a glance

MCP connectorhttps://allfami.com/server/api/mcp (Streamable HTTP)
REST APIhttps://allfami.com/server/api/assistant/v1
OpenAPI 3https://allfami.com/server/api/assistant/v1/openapi.json
Sign-inOAuth 2.1 with PKCE and dynamic client registration, or a key
This guide as plain texthttps://allfami.com/llms-full.txt

Before you start

Two things happen in the family's allfami first:

  1. The family owner switches AI assistants on - Family, Settings, "Let members connect AI assistants". It is off until they do, because an assistant is run by a company outside allfami and reads a person's medicines. Switching it off later stops every assistant at once.
  2. A member connects the assistant - by signing in from the assistant (below), or in Settings, AI assistants. They choose who it is about, what it may see and do, and agree that what it reads is shared with the company that runs it. Letting it read more later - somebody new, or appointments or tasks - asks them to agree again.

An assistant acts for the member who connected it and never beyond them: if that member loses a right, or leaves the family, their assistant loses it too, on the next request.

Connecting

Claude (claude.ai and the Claude apps)

  1. In Claude, open Settings, Connectors, and add a custom connector.
  2. Give it the address https://allfami.com/server/api/mcp.
  3. Connect. Claude sends you to allfami to sign in and choose the family, the people and what it may do.
  4. Ask Claude something like "Which of Grandma's medicines are due?", "What needs doing today?", "When am I taking Philip to the allergist?" or "Philip has a 39 fever - what can I give him?".

ChatGPT

Where your plan allows custom connectors, add one with the address https://allfami.com/server/api/mcp. ChatGPT signs in to allfami the same way.

Claude Code

claude mcp add --transport http allfami https://allfami.com/server/api/mcp

Claude Code signs in through your browser. To use a key instead (see below):

claude mcp add --transport http allfami https://allfami.com/server/api/mcp --header "Authorization: Bearer afk_..."

Any other MCP client, or your own code

Make a key in allfami - Settings, AI assistants, "Connect an assistant" - and send it on every request:

Authorization: Bearer afk_...

The key is shown once, when it is made; allfami keeps only a hash of it. Disconnecting the assistant in Settings makes the key worthless immediately.

The MCP tools

The connector offers twenty-four tools: seven about medicines, seven that read the day - the calendar, who is coming, and what happened on a shift - three that read the care log, readings and the people's basics, and seven that write: a note, a reading, a check-in, a ticked task, an appointment, a question for one, and what the doctor said. Each answer has a say sentence - plain English, on the family's clock - to read out or to put in the person's own language without changing what it means, then the same facts as JSON, with the ids. The JSON comes as a second text block and again as structuredContent, so a client that shows its model only text still gets the ids.

To record a scheduled medicine, get the dose's id from doses_due and pass it to record_dose. For a medicine given only when needed, get its medicineId from as_needed_medicines and pass it to give_as_needed.

ToolWhat it doesArguments
who_am_iThe family, the member it acts for, the people it may act about, and what it may do. Call it first.-
doses_dueScheduled doses that need giving now (late, due, missed today) and the ones coming up.hours_ahead (default 3, at most 24), person_id
doses_givenWhat was given, skipped or refused on a day.date (yyyy-MM-dd), person_id
dose_historyDoses over a period, most recent first - "when did I last give Philip his paracetamol?". A year back unless from/to name a period; when nothing is found, the answer says which dates were searched and asks whether to look at another.medicine, medicine_id, person_id, from, to, outcome, limit
as_needed_medicinesMedicines given only when needed: what the family wrote each is for, how to give it, and whether it may be given now. With for ("fever"), the ones set up for that come first. "He has a 39 fever, what can I give him?"person_id, for
record_doseRecords a scheduled dose as given, skipped or refused.dose_id, outcome, given_at, note, request_id
give_as_neededRecords that an as-needed medicine was given.medicine_id, amount, given_at, note, request_id
day_planEverything on one day - appointments, routines with how far through each one is, tasks. Today also carries tasks still open from before and tasks with no date. "What needs doing today?"date, person_id, only_mine
appointmentsAppointments, soonest first: who for, when, where, with which doctor, who is going, what to bring and what to ask. "When is my next appointment?"query, person_id, from, to, limit
tasksTasks still to do, soonest first, including routine steps and household tasks.query, person_id, from, to, only_mine, include_done, limit
routinesThe family's routines, their steps, when they happen and the next day each is on.person_id
who_is_hereWho is coming and who is here: the rota and whether each carer has arrived, who is on duty, who is away, and each person's daily check-in. "Who is coming today?", "Did Grandma check in?" Never anybody's pay.date, person_id
shift_reportOne shift and what happened while it ran - "what happened during Anna's shift?": its times, the handover, medicines given and missed, tasks done, the care log and readings. The latest unless a date is named. Never pay.who, date
care_logThe care log, most recent first - notes, meals, sleep, mood, symptoms, incidents, handovers - and by who wrote it. Photos are never sent.query, person_id, by, kind, from, to, limit
readingsTemperatures, blood pressure and the other readings, most recent first. "When did he last have a fever?"type, person_id, only_out_of_range, from, to, limit
person_basicsAllergies, current conditions, doctors and emergency contacts. "Is Philip allergic to anything?" Never insurance numbers or documents.person_id
add_noteWrites a note in the care log - "Philip ate half his dinner". Not incidents or handovers.person_id, text, kind, title, needs_attention, when, request_id
add_readingRecords a reading - "Philip's temperature is 38.5". Out of range tells the family at once.person_id, type, value, second_value, notes, when, request_id
check_inSays somebody is all right today - "I rang Grandma, she's fine".person_id, note, request_id
complete_taskTicks off a task or a routine's step - "I've done the shopping".task_id, outcome, note, request_id
add_appointmentBooks an appointment - "Dentist for Philip next Tuesday at 10".person_id, title, starts_at, duration_minutes, kind, with, location, going_with_me, notes, request_id
add_questionAdds a question to ask at an appointment.appointment_id, question, request_id
add_visit_notesWrites down what the doctor said, and marks the visit done.appointment_id, notes, done, follow_up_on, request_id
medicinesThe medicines each person takes: amount, when in words, what each is for and how to give it, how many are left and the day they run out. "What does Grandma take?", "when do we need to reorder?"person_id, query, only_running_low
adherenceScheduled doses over the last 30 days (or from/to): given, skipped, refused, missed, the share given, and when the missed ones were. "Has she been taking her medicines?"person_id, medicine, from, to
waitingEverything waiting for attention, as far as the assistant may see: entries marked for attention, incidents to follow up, doses missed or late today, medicines running low, overdue tasks, late check-ins, carers not arrived, hours and expenses to approve. Says what it could not look at.-
summaryHow a period went - the last 7 days unless named - for each person: doses, the care log, readings out of range, appointments, tasks, check-ins and hospital. "How was Grandma's week?"person_id, from, to
reading_trendOne type of reading over the last 30 days (or from/to): lowest, highest, the first third's average against the last third's, up/down/steady, and how many were out of range. Arithmetic, not a judgement.type, person_id, from, to
hospitalWhether somebody is in hospital now - where, since when, the family's note - or their latest stay in the last year.person_id
body_mapBruises, pressure sores, wounds in words: where, since when, first and latest size, the last look. Never the photographs.person_id, query, include_healed
rotaWho is coming over several days - the next 7 unless named, at most 31 - and who is away and covering. Never pay.from, to, person_id, who
hoursHours worked over a period - this month unless named - per person: total, shifts, one still running, waiting for approval. Never pay.who, from, to
documentsThe documents the family keeps, by title, kind, person and expiry - only ones the member could open. Never the files.query, person_id
shared_costsWho owes whom for shared costs (all-time), how to even up, and what was spent this month.from, to
update_stockA medicine's count: added (a new box of 30) or count (12 left). For a member who manages medicines.medicine_id, added, count, request_id
add_medicineAdds a medicine the doctor prescribed, with its schedule - "amoxicillin 500 mg every 8 hours for 10 days" is every_hours 8 and days 10, exactly 30 doses from the first. Or times; or as_needed. No length means taken from now on. Stops at a medicine the person already takes or a recorded allergy under that name until confirm_warning. For a member who manages medicines.person_id, name, strength, amount, unit, every_hours, times, first_dose, days, doses, until, as_needed, min_hours_between, max_per_day, purpose, instructions, food, prescribed_by, quantity, confirm_warning, request_id
assign_taskTakes a task on (to: "me"), hands it back ("nobody") or gives it to a member by name; both people are told.task_id, to, request_id
add_taskAdds a task or reminder - "remind me to ring the pharmacy at 5". A time with no date is today. For a member who manages tasks.title, person_id, date, time, assign_to, remind_minutes_before, notes, request_id
pause_routinePauses a routine, taking back its untouched days ahead, or resumes it from today.routine_id, paused, request_id
acknowledgeMarks an entry that was marked for attention as read by the member.entry_id, request_id
answer_questionWrites down the doctor's answer to a question on an appointment's list, and ticks it off.question_id, answer, asked, request_id
change_appointmentMoves an appointment (starts_at) or cancels it (cancel) - a cancelled one stays in the calendar and stops reminding.appointment_id, starts_at, cancel, request_id
clockClocks the member in or out, now. Clocking out submits the shift and writes the handover. Not where the family checks the address.action, note, break_minutes, request_id
time_awayFiles the member's time away; what is theirs on those days goes to whoever covers.from, to, cover, note, request_id
add_shared_costWrites down money the member paid for the family, split as the family agreed.amount, description, category, spent_on, person_id, request_id
add_expenseClaims an expense for the member to be paid back. Household plan only; never mileage.amount, description, category, spent_on, person_id, request_id
undoTakes back this assistant's own last write - or the latest matching what - within 15 minutes, while nobody has changed it since.what, request_id
findSearches appointments and tasks by words - "barber", "allergology". Upcoming first; if nothing is ahead, the most recent before. "When am I going to the barber?"query, person_id

"I" and "me" are the member the assistant acts for, named by who_am_i. An appointment they are going to carries goingWithIsYou: true, and a task given to them assignedToYou: true, so "when am I going with Philip to the allergist?" has an answer. A search matches each word by its start, ignoring accents and case, so "allergiology" still finds "Allergology"; send the words that name the thing, not the question.

Asked what to give for something, an assistant answers only from as_needed_medicines: the medicines the family set up, their own words about what each is for and how to give it, and whether each may be given now. It never suggests a medicine, an amount or a time that is not there, never one allfami says should not be given now, and says that if the person seems very unwell they should call a doctor. allfami is the family's record, not medical advice.

Questions about the past - when a medicine was last given, when somebody last had a fever - look back one year unless a period is named. When nothing is found, the answer says which dates were searched and asks the person whether to look at a different period: "not in those dates" is never "it never happened".

Everything an assistant writes - a note, a reading, a check-in, a ticked task, an appointment, a question, what the doctor said - follows the dose's rules: it is read back to the person first, written as the member's own and shown in the family's record as "via" the assistant, never overwrites what somebody else already did, takes a request_id so a retry is saved once, and the family's open screens update at once.

Taking it back. An assistant mishears. When it wrote something wrongly, or the person says "no, undo that", undo takes back its own last write - a dose, a note, a task, a moved appointment, a cost - within 15 minutes, once, and only while nobody has changed it since; a dose taken back gives its tablets back to the count. Anything older, or somebody else's, is put right in the app, where the change can be seen. A clock-in can be taken back only while nothing was recorded during the shift; a clock-out only until the family acts on the shift.

Languages. who_am_i says the language the member reads allfami in - en, el or pl. The say sentences are in English, for the assistant to put in the person's language without changing what they mean; medicine names, strengths, amounts, times and dates stay exactly as given. allfami does not write the sentences in Greek or Polish itself: a person's name changes its ending in both languages depending on its place in the sentence, and a sentence assembled from parts would get that wrong in exactly the places that matter.

Before calling record_dose or give_as_needed, an assistant should read the medicine, the person and what happened back to the person it is helping, and wait for a clear yes. request_id is a UUID the assistant makes up for one action and sends again if it retries; the dose is then recorded once, however many times the call arrives.

The REST API

The same actions over plain HTTPS, for code that does not speak MCP. Base address https://allfami.com/server/api/assistant/v1, JSON in and out, Authorization: Bearer on every request. The full description is the OpenAPI document at /openapi.json under the base address.

MethodPathWhat it does
GET/meWho this assistant is connected as
GET/doses/due?hoursAhead=3&personId=Doses that need giving, and coming up
GET/doses/given?date=2026-10-22&personId=What was recorded on a day
GET/doses/history?q=paracetamol&personId=&from=&to=&outcome=When a medicine was last given - a year back by default
GET/medicines/as-needed?personId=&for=feverAs-needed medicines, what each is for, and whether each may be given now
GET/day?date=&personId=&mine=Appointments, routines and tasks on a day
GET/appointments?q=&personId=&from=&to=&limit=Appointments, soonest first
GET/tasks?q=&personId=&from=&to=&mine=&done=&limit=Tasks, soonest first
GET/routines?personId=Routines, their steps and when they happen
GET/who?date=&personId=Who is coming and who is here, who is away, and the check-in
GET/shift-report?who=Anna&date=What happened on a shift
GET/care-log?q=&personId=&by=&kind=&from=&to=&limit=The care log, most recent first
GET/readings?type=temperature&outOfRange=true&personId=Readings, most recent first
GET/people?personId=Allergies, conditions, doctors and emergency contacts
POST/care-logWrite a note in the care log
POST/readingsRecord a reading
POST/check-insCheck in for somebody
POST/tasks/{id}/completeTick off a task
POST/appointmentsBook an appointment
POST/appointments/{id}/questionsAdd a question for an appointment
POST/appointments/{id}/visitWrite down what the doctor said
GET/find?q=barberAppointments and tasks matching words
GET/medicines?personId=&q=&runningLow=The medicines, what each is for, and how many are left
GET/adherence?personId=&medicine=&from=&to=How well scheduled doses were taken
GET/waitingEverything waiting for attention
GET/summary?personId=&from=&to=How a period went
GET/readings/trend?type=bloodPressure&personId=&from=&to=Which way one type of reading is going
GET/hospital?personId=Hospital stays
GET/body-map?personId=&q=&healed=The body map, in words
GET/rota?from=&to=&personId=&who=The rota over several days
GET/hours?who=&from=&to=Hours worked
GET/documents?q=&personId=The family's documents, by name
GET/costs?from=&to=Shared costs: who owes whom
POST/medicinesAdd a medicine the doctor prescribed, with its schedule
POST/medicines/{id}/stockUpdate a medicine's count
POST/tasks/{id}/assignTake on or hand over a task
POST/tasksAdd a task or reminder
POST/routines/{id}/pausePause or resume a routine
POST/care-log/{id}/acknowledgeAcknowledge an entry marked for attention
POST/questions/{id}/answerWrite down the answer to an appointment's question
POST/appointments/{id}/changeMove or cancel an appointment
POST/clockClock in or out
POST/awayFile time away
POST/costsAdd a shared cost the member paid
POST/expensesClaim an expense
POST/undoTake back this assistant's last write
POST/doses/{id}/recordRecord a scheduled dose
POST/doses/as-neededRecord an as-needed dose that was given

What is due:

curl -H "Authorization: Bearer afk_..." https://allfami.com/server/api/assistant/v1/doses/due
{
  "nowLocal": "2026-10-22T08:10:00",
  "doses": [
    {
      "id": 812, "personId": 3, "person": "Margaret",
      "medicineId": 5, "medicine": "Metformin", "strength": "500 mg",
      "dueAtLocal": "2026-10-22T08:00:00", "state": "due",
      "say": "Metformin 500 mg for Margaret is due now (08:00)."
    }
  ],
  "say": "1 dose needs attention: Metformin 500 mg for Margaret is due now (08:00)."
}

state is upcoming, due (within an hour either side of its time), late (over an hour past and not recorded), missed (the app has marked it missed), given, skipped or refused. Every ...Local time is on the family's clock; /me names its time zone.

Recording it:

curl -X POST https://allfami.com/server/api/assistant/v1/doses/812/record \
  -H "Authorization: Bearer afk_..." \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 6f1c2a54-0b8e-4d3f-9a1e-2c7d5e8f0a11" \
  -d '{ "outcome": "given" }'
{ "ok": true, "say": "Recorded. Metformin 500 mg, 1 tablet, was given to Margaret at 08:11 by Helen (through Claude).", "dose": { ... } }

outcome is given, skipped or refused. givenAt, when it was not just now, is 14:05 (today, family clock), 2026-10-22T14:05 (family clock), or an instant with Z or an offset - never the future. Send an Idempotency-Key header (a UUID) with every recording: a retry after a lost answer is then saved once, and answered with the first answer.

When is something - the barber, the allergist:

curl -H "Authorization: Bearer afk_..." "https://allfami.com/server/api/assistant/v1/find?q=allergology"
{
  "query": "allergology",
  "appointments": [
    {
      "id": 41, "personId": 7, "person": "Philip", "title": "Allergology", "kind": "specialist",
      "state": "upcoming", "startsAtLocal": "2026-10-28T10:30:00", "endsAtLocal": "2026-10-28T11:00:00",
      "with": "Dr Papadopoulos", "location": "Athens Medical Centre",
      "goingWith": "Helen", "goingWithIsYou": true,
      "prepNotes": "Bring the blood test results", "questions": ["Can he stop the antihistamine?"],
      "say": "Allergology (specialist) for Philip is on Wednesday 28 October at 10:30, with Dr Papadopoulos, at Athens Medical Centre. You are going with Philip."
    }
  ],
  "tasks": [], "fromThePast": false,
  "say": "Allergology (specialist) for Philip is on Wednesday 28 October at 10:30, ..."
}

What can be given for a fever - only what the family set up, and whether it may be given now:

curl -H "Authorization: Bearer afk_..." "https://allfami.com/server/api/assistant/v1/medicines/as-needed?personId=7&for=fever"
[
  {
    "medicineId": 12, "personId": 7, "person": "Philip", "medicine": "Paracetamol", "strength": "120 mg/5 ml",
    "amount": 5, "unit": "ml", "purpose": "For fever over 38", "lastGivenAtLocal": "2026-10-23T08:00:00",
    "canGiveNow": true, "matches": true,
    "say": "Paracetamol 120 mg/5 ml for Philip (For fever over 38) can be given now: 5 ml. Last given today at 08:00."
  }
]

Through the connector, as_needed_medicines with for answers in one sentence, and closes it the same way every time: this is only what the family wrote down, and somebody very unwell needs a doctor.

Alerts: when something needs saying

An assistant only speaks when spoken to. For one that should speak up on its own - "it's eight o'clock, time for Grandma's Metformin" - give the connection an address for alerts in Settings, AI assistants. allfami then sends it a POST at the same moments it reminds the family:

Each one only if the connection may see that kind of thing. The facts come under a key named for them - dose, checkIn, visit, reading, appointment or briefing - beside say.

Each alert is sent once. The address must be https:// and on the public internet.

POST /your/address
Content-Type: application/json
Allfami-Signature: t=1761120000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

{
  "id": "b3a1...", "type": "dose.due", "createdAt": "2026-10-22T05:00:00Z",
  "family": "Carters", "assistant": "Kitchen speaker",
  "dose": { "id": 812, "person": "Margaret", "medicine": "Metformin", "strength": "500 mg", "state": "due", ... },
  "say": "Time for Metformin 500 mg, 1 tablet, for Margaret. It is due at 08:00."
}

Check the signature. It is HMAC-SHA256 of {t}.{body} - the timestamp, a dot, and the raw body - with the connection's alert secret (shown once, when the address is given; a new one can be made in Settings), as lower-case hex:

import crypto from "node:crypto";

function fromAllfami(rawBody, header, secret) {
  const { t, v1 } = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false; // older than five minutes
  const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

Answer with any 2xx within ten seconds. After ten failures in a row allfami stops sending to that address, until the address is changed or a test alert from Settings gets through.

Signing in with OAuth

For assistants that sign in themselves - Claude, ChatGPT, Claude Code, the MCP Inspector - allfami is an OAuth 2.1 authorization server:

The rules an assistant works under

Errors

Every refusal is JSON with a stable error code, a message, and a say sentence.

StatusMeaning
400Something in the request cannot be read - an outcome, a time.
401No key or token, or one that has run out or been disconnected. WWW-Authenticate says why.
403The connection may not do this - the ability was not given, or its member lost it.
404No such dose or medicine for anybody it looks after.
409Refused on purpose: the double-dose guard, or already recorded.
422An Idempotency-Key reused for a different request.
429Too many requests from one key. Retry-After says when to try again.

Privacy

An assistant reads the medicines and doses of the people it was given and, if the member ticked them, their appointments and their tasks and routines, with the household's own tasks, who is coming and their daily check-in - never anybody's pay - and, only if ticked on their own, their care log, readings and body map, their allergies, conditions, doctors and emergency contacts, the names of the family's documents, and shared costs - never a photo, a document's file or an insurance number. Nothing else in the family's record. What it reads leaves allfami for the company that runs the assistant, under that company's terms - which is why a member has to agree to it, and why the family owner can switch every assistant off at once. Disconnecting one ends its key and its tokens immediately. See the privacy policy.

Machine-readable

Questions: info@allfami.com.