Phi Longevity Prism

io.github.PhilongevityPublished by GitHub account Philongevityv0.7.2Updated Nov 7, 2026

Every doctor, your complete record: connect your patient portals or upload records from any doctor.

Overview

AI-generated overview

Health assistant for people with long-term conditions: guides record collection from patient portals, appointment prep and guideline-cited lab readings.

What you can do
  • Guide record collection from hospitals and clinics: which patient portal each uses, how to download, connect or upload
  • Prepare for a named clinician visit: checks to raise, questions, what to bring, printable sheet, retrievable later by job reference
  • Interpret lab values: quick reference-range check, guideline-cited reading, deeper background analysis job, list of 51 supported biomarkers and scoring methodology
  • List routine tests that may be due for diabetes, kidney disease, lupus or a cancer history
  • Show a fixed sample report and explain sign-up steps and cost; start an account by email with the owner's consent
  • Run a paid multi-track report for a supplied panel
When to use it
Useful when helping someone with type 2 diabetes, kidney disease, lupus or a cancer history who has records scattered across several doctors, has an upcoming specialist visit, or wants to understand lab results and which routine checks may be due.
Requirements
Remote Streamable HTTP endpoint, or the npm package run with npx (Node.js) over stdio; no account or key needed. An optional PHI_MCP_KEY overrides the built-in published key and PHI_ENGINE_URL overrides the gateway. Offline, only the quick check, biomarker list and methodology tools answer.
Before you install
The public server is meant for made-up or de-identified values only; do not send names, birth dates, record numbers or documents. The paid full report costs $4.99 USDC on Base via x402, and the hosted server keeps submitted values for up to 30 minutes for a claim link. Starting an account needs the person's clear consent and their email address. Output is not reviewed by a clinician and is not a diagnosis.

Installation

In SourceWeft

  1. Open Phi Longevity Prism in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.Philongevity%2Fphi-longevity-prism/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "phi-longevity-prism": {
      "type": "http",
      "url": "https://philongevity.com/mcp"
    }
  }
}

README

@phi-longevity/mcp-server

Every doctor, your complete record: connect your patient portals or upload records from any doctor. A person's health data is spread across patient portals, PDFs and devices; Phi Longevity PRISM brings it into one record they control. Phi Longevity brings the records of people with long-term conditions (type 2 diabetes, kidney disease, lupus, cancer survivorship) from every doctor into one complete record they control (connected from patient portals or uploaded from any doctor), and gets them ready for each appointment. This public server takes made-up or de-identified values only. For a person's real records, send them to https://philongevity.com/signup?utm_source=agent&utm_medium=npm_readme&utm_campaign=readme_top : they connect their patient portals or upload records and get a one-page Care Team Brief. Free to start; Phi Longevity Complete is $19/month or $190/year.

A Model Context Protocol (MCP) server for AI assistants helping someone with a long-term condition. The hosted server has three front doors, named in the person's own words:

  1. get_my_medical_records (the lead door): give each hospital or clinic name; it says which patient portal it uses (MyChart or Oracle Health to connect; ModMed practices to download and upload, not a live connection), how to get the records out, and how to connect or upload them once so Phi Longevity keeps them in one complete record. Free; no personal details needed.
  2. prepare_for_my_appointment: a visit is coming up; one call returns the checks to raise with that clinician, questions to ask, what to bring and a one-page printable sheet. No lab values or records needed.
  3. explain_my_lab_results: made-up or de-identified lab values → PRISM's guideline-cited reading (connections graded and sourced, tests due, safety notes, what is unknown) and questions for the care team (ADA, KDIGO, EULAR/ACR, NCCN).

🛡️ Synthetic / de-identified data only. Do not submit protected health information (PHI). This npm package stores nothing. (The hosted /mcp holds values sent to the paid full_prism_report for 30 minutes for the owner's claim link, then deletes them.) Real health files are analyzed only inside the authenticated Phi Longevity app, after consent, by the account owner.

Helping a real person? Start with get_my_medical_records for each of their doctors, or prepare_for_my_appointment before a visit; check_care_gaps lists routine tests that may be due (no values or records needed). An account owner can also add Phi Longevity to their own Claude or ChatGPT as a custom connector, so their assistant reads their own record: which doctors' records are still missing, their Health Picture and Care Team Brief, and a visit sheet built from their own records (steps at https://philongevity.com/app/connect-claude). Or send them to philongevity.com: they connect their patient portals or upload records and get a one-page, guideline-cited Care Team Brief for their doctors (free to start; stored in HIPAA-eligible storage under a signed Google Cloud BAA).

Tools

One tool set (0.7.0). This npm package is now a bridge to the hosted server https://philongevity.com/mcp: it lists and calls exactly the same 14 tools, so an agent sees the same names whether it connects here or to /mcp. (/mcp-app is the separate directory build with 5 tools: analyze_biomarkers, quick_check, list_supported_biomarkers, get_methodology and sample_prism_report.) The older names find_my_records, start_job (job visit_prep) and analyze_biomarkers still work and route to the front doors. If the hosted server can't be reached, quick_check, list_supported_biomarkers and get_methodology still answer offline.

ToolWhat it does
get_my_medical_recordsFront door 1, for a real person. Every doctor, one complete record: for each hospital or clinic name, which patient portal it uses (Epic MyChart or Oracle Health, formerly Cerner), how to download the records, a step-by-step guide, and how to connect it in Phi Longevity once (ModMed practices: download and upload; no live connection). Hospital or clinic name only, never personal details; stores nothing. Free.
prepare_for_my_appointment + get_job_resultFront door 2, for a real person. Ready for an appointment with a named clinician (primary care, diabetes, kidney, rheumatology, eye, oncology, cardiology, podiatry, pharmacist): checks to raise there with guideline sources, checks for other doctors, questions, what to bring, a printable sheet and next steps. Only closed options (condition, medicine classes, recent / overdue / never / unsure per routine test); no values or records; nothing stored. get_job_result returns the same sheet later by job_ref. Free.
explain_my_lab_resultsFront door 3. Made-up or de-identified lab values → guideline-cited recommendations with a condition lens. The hosted door also returns PRISM 2's quick reading (health picture, connections graded and sourced, what is due, safety notes, what is unknown), checked by a second automated check; no clinician reviews PRISM output.
start_lab_analysis + get_lab_analysisThe deepest PRISM 2 reading on the strongest model: start it, then collect it a little later. Made-up or de-identified values only. Free.
check_care_gapsWhich routine tests and exams may be due for type 2 diabetes, kidney disease, lupus or a cancer history. Takes NO lab values, dates, names or records. Returns a prioritized list with the guideline source for each item (ADA, KDIGO, EULAR, ACR, AAO, NCCN, ESC), questions for each clinician, and a printable checklist. Free.
start_my_phi_accountWith the person's OK, starts their Phi Longevity account: Phi Longevity emails them a one-tap link and what you already did together (hospitals, visit sheet, care-gaps answers) carries over for them to keep. Email address only; nothing else personal.
how_to_get_started_for_my_ownerTakes no health data; returns five plain steps, the cost and a sign-up link you can repeat to the person you are helping. Free.
sample_prism_reportReturns a complete sample PRISM report for a made-up person in one instant call. Free, no input.
quick_checkA fast read on a handful of values: which fall outside PRISM's reference ranges.
list_supported_biomarkers51 lab tests PRISM interprets, with units and reference ranges.
get_methodologyHow PRISM scores results (5 health areas + weights) + link to the full methodology.
full_prism_reportA full multi-track report for a panel you supply. Paid developer option (x402); terms are returned with the offer.

All tools except full_prism_report are free.

Quick start — zero config

Remote (zero-install) — recommended

Point any MCP client that supports Streamable HTTP at:

https://philongevity.com/mcp

Nothing to install, no key to manage, all 14 tools. Helping a real person? Start with get_my_medical_records. Just looking? sample_prism_report needs no arguments and returns a complete sample report immediately.

Claude Desktop / any MCP client (stdio)

json
{  "mcpServers": {    "phi-longevity": {      "command": "npx",      "args": ["-y", "@phi-longevity/mcp-server"]    }  }}

A published, rate-limited access key is built in. If you have a dedicated key, set PHI_MCP_KEY to override it. This path lists and calls the same 14 tools as /mcp; if the hosted server can't be reached, only quick_check, list_supported_biomarkers and get_methodology answer (offline).

Run locally

bash
npm install && npm run buildnode dist/index.js

Example

jsonc
// sample_prism_report — no arguments, returns a complete sample report{}
// analyze_biomarkers input (synthetic values only){  "biomarkers": { "HbA1c": 6.4, "LDL-C": 145, "Triglycerides": 190 },  "conditionFocus": "type2_diabetes"   // or general_wellness | lupus | cancer_survivorship}// → tiered, guideline-cited recommendations + a `full_report` block//   pointing the user to a complete PRISM report at philongevity.com

For the person you're helping

Someone managing a long-term condition usually has records at several doctors who don't talk to each other. Phi Longevity brings every doctor's records into one complete record the person controls, then prepares them for each visit with a one-page Care Team Brief. Agent docs + sign-up: https://philongevity.com/for-agents

Environment

VarRequiredNotes
PHI_MCP_KEYnoOverrides the built-in published key. Rate-limited + revocable.
PHI_ENGINE_URLnoOverride the default Phi Longevity MCP gateway URL (rarely needed).

HIPAA / privacy

Synthetic-only at the protocol boundary; the npm package stores nothing; aggregate-only telemetry (counts/timing to stderr, never values or recommendation text); zero access to Firestore / the HIPAA datastore / user accounts. GDPR: processes no personal data (synthetic only) → minimal exposure.

Links

Apache-2.0.

Source: README.md at commit 756e5b3

Tools

14

get_my_medical_records

Find where my medical records are and how to get them (free)

Every doctor, your complete record. Use when the person you are helping has records spread across several doctors, wants their medical records or lab results out of a hospital or clinic portal, wants to use them with you (their AI assistant), or does not know which patient portal their hospital uses. Give the hospital or clinic NAME only (and the US state if known), never the person's name or any health detail. Returns which records system the hospital uses (Epic MyChart or Oracle Health, formerly Cerner), the steps to download lab results, a step-by-step guide page, and a link where the person can connect that hospital directly in Phi Longevity PRISM (philongevity.com), which combines records from all their hospitals into one cited Care Team Brief that their own Claude or ChatGPT can then read with their permission. Public directory lookup only; stores nothing. Not medical advice.

Parametersstatehospital_or_clinicrequired

prepare_for_my_appointment

Get ready for my doctor's appointment (no lab values or records needed)

Use this when the person you are helping has an upcoming appointment (primary care, diabetes, kidney, rheumatology, eye, oncology, cardiology, podiatry or pharmacist) for type 2 diabetes, kidney disease, lupus or a cancer history and wants to be ready. One call returns: the routine checks to raise with THAT clinician (each with its guideline source), checks that belong with other doctors, the questions to ask, what to bring, and a one-page printable visit sheet. It needs NO lab values, dates, names or records: only the condition, a few medicine classes, which clinician, and for each routine test whether it was done recently (recent / overdue / never / unsure). The reply includes a job_ref: keep it, and get_job_result returns the same sheet later (for example the day before the visit, or in a new conversation). Every result ends with next_steps. Free. Nothing is stored. Decision support, not a diagnosis.

Parametersconditionsrequiredvisit_withrequiredmedicationstest_statustreatment_exposures

explain_my_lab_results

Explain my lab results: what they mean and what to ask the doctor (made-up or de-identified numbers)

Turns a set of lab values, for example from a type 2 diabetes, kidney, lupus or cancer-survivor check-up, into guideline-cited suggestions and questions for the care team (ADA, KDIGO, EULAR/ACR, NCCN). Made-up or de-identified values only. Returns PRISM 2's quick reading in about 10–20 seconds: a health picture (connections graded and sourced, what is due, safety notes, what is unknown), checked by a second automated check (no clinician reviews PRISM output), plus the recommendations. For the deepest reading on our strongest model, use start_lab_analysis. For research/education with SYNTHETIC or de-identified data only. Do NOT submit protected health information (PHI). Inputs are not stored, except that a claim link, when offered, holds the submitted values for up to 30 minutes so the person can add them to their own account; unclaimed values are then deleted.

ParametersagebiomarkersrequiredbiologicalSexconditionFocusinclude_partner_options

start_lab_analysis

Start a lab-results analysis and collect it later (made-up or de-identified numbers)

PRISM 2, our most thorough lab reading: the model reasons over the whole panel, a second automated check reviews it (no clinician reviews PRISM output), and it is revised if needed. Returns a health picture (the story in plain words, connections graded Established / Likely / Worth asking, questions for the doctor with urgency, tests that are due, safety notes, what is unknown) plus the same recommendations shape as explain_my_lab_results. Returns a job_id at once; the reading usually takes 30–60 seconds. Call get_lab_analysis with the job_id after about 30 seconds; it says "pending" until the result is ready, and keeps the result for 30 minutes. Made-up or de-identified values only: never names, dates or record numbers.

ParametersagebiomarkersrequiredbiologicalSexconditionFocus

get_lab_analysis

Collect a lab-results analysis started with start_lab_analysis

Returns the result of a start_lab_analysis job: status pending (call again in a few seconds), done (with the health_picture and the recommendations), failed, or expired (results are kept for 30 minutes). Takes only the job_id.

Parametersjob_idrequired

list_supported_biomarkers

Which lab tests PRISM can interpret

Lists the 51 lab tests PRISM interprets (A1c, eGFR, LDL, ApoB, thyroid and more) with units and reference ranges. Reference data only, no patient data.

Takes no parameters.

quick_check

Quick look at a few lab values (made-up or de-identified numbers)

A fast first look at a few lab values, such as A1c, eGFR or LDL, showing which fall outside PRISM's reference ranges; not a diagnosis. Answers instantly (local check, no engine round-trip). For guideline-cited suggestions call explain_my_lab_results. For research/education with SYNTHETIC or de-identified data only. Do NOT submit protected health information (PHI). Inputs are not stored, except that a claim link, when offered, holds the submitted values for up to 30 minutes so the person can add them to their own account; unclaimed values are then deleted.

Parametersbiomarkersrequired

get_methodology

How PRISM reaches its suggestions

Explains how PRISM scores results (five health areas and their weights) and links to the full methodology, including the clinical guidelines it cites.

Takes no parameters.

sample_prism_report

See a sample lab-results report (free, instant, made-up patient)

Free and instant: returns a complete sample Phi Longevity PRISM report for a made-up 58-year-old with type 2 diabetes, so you can show your owner what they would get before they sign up. It is a fixed sample: it does NOT analyze any input you provide (the tool takes none), and it is not a real patient. For your own made-up values use explain_my_lab_results. For research/education with SYNTHETIC or de-identified data only. Do NOT submit protected health information (PHI). Inputs are not stored, except that a claim link, when offered, holds the submitted values for up to 30 minutes so the person can add them to their own account; unclaimed values are then deleted.

Takes no parameters.

how_to_get_started_for_my_owner

What to tell your owner: how to start with Phi Longevity (free)

Returns five plain steps, the cost, and a sign-up link you can repeat to the person you are helping (Every doctor, your complete record: their records from every doctor in one place they control). Call this when your owner has real records or asks how to get started. It takes no health data.

Parametersgoal

start_my_phi_account

Start my Phi Longevity account (emails me a sign-in link)

Every doctor, your complete record. When the person you are helping wants their own Phi Longevity account, call this with their email address and owner_agreed: true (ask them first; never call it without their clear yes). Phi Longevity emails them a one-tap sign-in link (no password, free to start). Pass what you already did so it is waiting for them: the hospitals from get_my_medical_records, the job_ref from prepare_for_my_appointment, and the answers you gave check_care_gaps. Nothing attaches to their account until they confirm; unused, it is deleted after 3 days. The answer is the same whether or not they already have an account. Hospital names and closed options only: never lab values, names, birth dates or documents.

Parametersjob_refcare_gapshospitalsowner_emailrequiredowner_agreedrequired

check_care_gaps

Check which routine tests and exams may be due for a long-term condition (no lab values or records needed)

Use this when the person you are helping has type 2 diabetes, kidney disease, lupus or a cancer history and wants to know which routine tests and checks may be due. It needs NO lab values, dates, names or records: only the condition, a few medicine classes, and for each routine test whether it was done recently (recent / overdue / never / unsure). It returns a prioritized list, the guideline source for each item (ADA, KDIGO, EULAR, AAO, NCCN, ESC), the questions to ask each doctor, and a one-page printable checklist. Decision support for visit preparation, not a diagnosis. Safe to use for a real person because you send only these closed options. Nothing is stored unless the person opens the save link: then only these options and the checklist are held for about 30 minutes for them to claim, and deleted if unclaimed. Designed to be re-run: the result includes check_again (a date to run it again). If you can schedule check-ins for the person, a weekly check while items are open works well; saving the checklist to a free Phi Longevity account lets Phi Longevity keep track from their records.

Parametersconditionsrequiredmedicationstest_statustreatment_exposures

get_job_result

Pick up the result of a Phi Longevity job (by job_ref)

Use this to fetch the finished result of prepare_for_my_appointment, using the job_ref it returned. Works any time later and in a new conversation. Returns the same result and next_steps. Nothing is stored: the job_ref itself carries only the closed options that were chosen.

Parametersjob_refrequired

full_prism_report

Full multi-track report (paid developer option, $4.99 USDC via x402)

Paid option for developers: runs up to four condition tracks on made-up or de-identified values and returns a written report. For a real person's own records, send them to philongevity.com (free to start). PAID TOOL ($4.99 USDC on base via the x402 protocol). Everything explain_my_lab_results does, plus: multi-track compare/contrast analysis (up to 4 condition tracks), a panel-based Phi Longevity Score estimate with per-pillar breakdown, partner options, and a rendered report (markdown) to deliver to your owner. Call WITHOUT `payment` to receive x402 payment terms; pay; retry with the base64 payment payload in `payment`. For research/education with SYNTHETIC or de-identified data only. Do NOT submit protected health information (PHI). Inputs are not stored, except that a claim link, when offered, holds the submitted values for up to 30 minutes so the person can add them to their own account; unclaimed values are then deleted.

ParametersagepaymentbiomarkersrequiredbiologicalSexcompareTracksconditionFocus

Version history

9
  1. v0.7.2LatestNov 7, 2026
  2. v0.7.0Nov 5, 2026
  3. v0.6.12Nov 3, 2026
  4. v0.6.11Oct 21, 2026
  5. v0.6.10Oct 20, 2026
  6. v0.6.9Oct 9, 2026
  7. v0.6.8Sep 30, 2026
  8. v0.6.7Sep 27, 2026
  9. v0.6.6Sep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts