Skip to main content

Developers

Build on Triangle, with the person’s consent.

Your app can read and act on someone’s records, labs, wearables and genome once they approve it on Triangle’s consent screen. Register an app, add Connect with Triangle, and call the same MCP server ChatGPT and Claude use.

Triangle MCP serverhttps://app.trianglehealth.com/mcp

How it works

Three steps from a new app to your first tool call.

  1. Register an app

    In the developer portal, create a public client (PKCE, Client ID only) for browser and mobile apps, or a confidential client (Client ID and a Client Secret shown once) for a server. Add your redirect URIs and the name, logo and policy links people see when they approve your app.

  2. Send people through Connect with Triangle

    OAuth 2.1 with PKCE (S256). The person signs in to Triangle, sees what your app is asking for and approves it. You get an access token that lasts about an hour and a refresh token for the next one.

  3. Call the MCP server

    Send the access token as a Bearer token to https://app.trianglehealth.com/mcp. It speaks JSON-RPC over Streamable HTTP: tools/list shows every tool and tools/call runs one. Each tool checks the permissions the person granted.

    tools/call
    curl -X POST 'https://app.trianglehealth.com/mcp' \
      -H 'authorization: Bearer ACCESS_TOKEN' \
      -H 'content-type: application/json' \
      -H 'accept: application/json, text/event-stream' \
      -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
           "params":{"name":"get_health_overview","arguments":{}}}'

What your app can reach

62 tools on one server, grouped by the permission each needs. The person grants or withholds each permission on Triangle’s consent screen.

  • Profile and health topics12 tools

    Who the person is, one overview of everything Triangle holds, what changed since a given time, setup status, and the health topics their record is organised around.

    notes:read · patient:read · patient:write

    • get_health_overview
    • get_patient
    • get_changes_since
    • get_setup_status
    • get_topics
    • list_topics
    • create_topic
    • create_topic_group
    • rename_topic_group
    • set_topic_group
    • delete_topic
    • delete_topic_group
  • Records and documents9 tools

    Documents with their text and summaries, search by meaning, the clinical summary, where records come from, uploads and a records sync.

    medical_records:read · medical_records:write

    • get_clinical_summary
    • get_medical_records
    • get_medical_record
    • search_documents
    • get_record_sources
    • request_document_upload
    • complete_document_upload
    • create_document
    • request_record_sync
  • Notes9 tools

    Notes under each health topic: read, search, write and edit.

    notes:read · notes:write

    • get_notes
    • get_note
    • get_topic_notes
    • list_topic_notes
    • search_topic_notes
    • list_note_kinds
    • create_topic_note
    • update_topic_note
    • delete_topic_note
  • Labs3 tools

    The latest lab report: results outside their range, whole panels, and single tests with ranges and plain-language explanations.

    labs:read

    • get_labs_overview
    • get_lab_panel
    • get_lab_result
  • Measurements and wearables5 tools

    Measurement history from labs, vitals and devices, a day-by-day wearables table, connected devices, and a link to connect another.

    devices:read · devices:write · measurements:read

    • list_measurement_types
    • get_measurements
    • get_wearable_days
    • list_wearable_connections
    • request_wearable_connection
  • Medications3 tools

    Medications, supplements and allergies, with dose and status. Add one or change one.

    medications:read · medications:write

    • get_medications
    • create_medication
    • update_medication
  • Genome2 tools

    The genome report: genes with findings, risk levels, evidence, the medications they affect and the action plan.

    genome:read

    • get_genome_overview
    • get_genome_gene
  • Tumor genomics5 tools

    An approved tumor genomic analysis: reportable alterations, ranked therapies, matched trials and the result files.

    genomics_run:read

    • get_genomics_run
    • list_genomics_files
    • read_genomics_artifact
    • read_genomics_registry
    • get_genomics_gene
  • Care team6 tools

    The person’s doctors and clinicians. Add, update, remove or invite one.

    care_team:read · care_team:write

    • get_care_team_practitioners
    • get_care_team_practitioner
    • create_care_team_practitioner
    • update_care_team_practitioner
    • invite_care_team_practitioner
    • delete_care_team_practitioner
  • Appointments5 tools

    Visits with Triangle clinicians: list them, check open times, book, move or cancel.

    appointments:read · appointments:write

    • list_appointments
    • get_appointment_availability
    • schedule_appointment
    • reschedule_appointment
    • cancel_appointment
  • Routines2 tools

    Reminders and routines, and when each fires next. Create or change them from plain words.

    routines:read · routines:write

    • list_routines
    • update_routines
Every tool and what it does

Read38

Look at your record without changing it.

  • get_health_overview

    One picture of what Triangle holds for you: health topics, medications and allergies, notes, documents, the clinical summary, labs, measurements, wearables, genome, upcoming appointments and routines.

    Permission: patient:read

  • get_patient

    Who you are in Triangle: name, sex and gender, date of birth, phone, addresses, and whether your identity is verified.

    Permission: patient:read

  • get_changes_since

    What has changed in your record since a given time: new documents, records imports, summary updates, notes, topics, appointments and messages.

    Permission: patient:read

  • get_setup_status

    Where you are with Triangle: whether you have a plan, whether setup is finished, how many records are in, which wearables are connected, and the link for the next step.

    Permission: patient:read

  • get_topics

    Your health topics: the conditions and concerns Triangle organizes your record around.

    Permission: patient:read

  • list_topics

    Your health topics, shown as an interactive view in assistants that support one.

    Permission: notes:read, patient:read

  • get_clinical_summary

    Triangle’s written summary of your records, one section per health topic, with whether each section is current.

    Permission: medical_records:read

  • get_medical_records

    The documents in your records, with filters.

    Permission: medical_records:read

  • get_medical_record

    One document: its summary, the text read from it and a download link.

    Permission: medical_records:read

  • search_documents

    Search your documents by meaning and return the passages that match best, each with a link to its document.

    Permission: medical_records:read

  • get_record_sources

    Where your records come from, and whether an import or upload is in progress.

    Permission: medical_records:read

  • get_labs_overview

    Your most recent lab report at a glance, with every result outside its reference range.

    Permission: labs:read

  • get_lab_panel

    Every result in one panel of your latest lab report, such as lipids, liver, kidney or thyroid.

    Permission: labs:read

  • get_lab_result

    One test from your latest lab report, with its range, flag and a plain-language explanation.

    Permission: labs:read

  • list_measurement_types

    Which measurements Triangle holds for you, with the latest value of each.

    Permission: measurements:read

  • get_measurements

    The history of one measurement, newest first, from lab reports, vitals and connected devices.

    Permission: measurements:read

  • get_wearable_days

    A day-by-day table of what your wearables recorded: steps, sleep, heart rate, HRV, weight and more.

    Permission: measurements:read

  • list_wearable_connections

    The wearables and health apps connected to your account, and when each last sent data.

    Permission: devices:read

  • get_medications

    Your medications, supplements and allergies, with dose, frequency and status.

    Permission: medications:read

  • get_notes

    Your notes, with filters.

    Permission: notes:read

  • get_note

    One note in full.

    Permission: notes:read

  • get_topic_notes

    The notes under one health topic.

    Permission: notes:read

  • list_topic_notes

    The notes under one health topic, shown as an interactive view in assistants that support one.

    Permission: notes:read

  • search_topic_notes

    Search your notes by keyword.

    Permission: notes:read

  • list_note_kinds

    The kinds of notes Triangle keeps, and which of them can be written.

    Permission: notes:read

  • get_care_team_practitioners

    The doctors and clinicians on your care team.

    Permission: care_team:read

  • get_care_team_practitioner

    One member of your care team.

    Permission: care_team:read

  • list_appointments

    Your appointments with Triangle clinicians, upcoming and past.

    Permission: appointments:read

  • get_appointment_availability

    Open times when a Triangle clinician can see you, and how long the visit is.

    Permission: appointments:read

  • list_routines

    Your reminders and routines, how often each runs and when it fires next.

    Permission: routines:read

  • get_genome_overview

    Your genome report, if you have one: how many genes have findings, in which categories, and where to start.

    Permission: genome:read

  • get_genome_gene

    One gene from your genome report: the finding, its risk level and evidence, the medications it affects and the action plan.

    Permission: genome:read

  • get_genomics_run

    A map of your tumor genomic analysis, if you have an approved report, and where each part of it lives.

    Permission: genomics_run:read

  • list_genomics_files

    The result files in your tumor genomic analysis, and what each one answers.

    Permission: genomics_run:read

  • read_genomics_artifact

    One page of a result file from your tumor genomic analysis, such as ranked therapies or matched trials.

    Permission: genomics_run:read

  • read_genomics_registry

    Every reportable alteration in your tumor genomic analysis, with its tier and evidence.

    Permission: genomics_run:read

  • get_genomics_gene

    Everything your tumor genomic analysis says about one gene.

    Permission: genomics_run:read

  • start_session

    Starts an ID that groups one conversation’s tool calls. It reads no health data.

    No permission needed

Write15

Add or change something in your record.

  • create_topic

    Add a health topic, or return it if it already exists.

    Permission: patient:write

  • create_topic_group

    Add a group for organizing topics.

    Permission: patient:write

  • rename_topic_group

    Rename a topic group.

    Permission: patient:write

  • set_topic_group

    Put a topic in a group, or take it out.

    Permission: patient:write

  • create_topic_note

    Write a new note.

    Permission: notes:write

  • update_topic_note

    Edit one of your notes.

    Permission: notes:write

  • create_medication

    Add a medication, supplement or allergy to your list.

    Permission: medications:write

  • update_medication

    Change a medication’s name, details or status.

    Permission: medications:write

  • create_care_team_practitioner

    Add a doctor or clinician to your care team.

    Permission: care_team:write

  • update_care_team_practitioner

    Update a care team member’s details.

    Permission: care_team:write

  • request_document_upload

    Get a one-hour link for uploading a file to your records.

    Permission: medical_records:write

  • complete_document_upload

    Tell Triangle an upload has finished, so it reads the file into your records.

    Permission: medical_records:write

  • create_document

    Add a document to your records from its text, such as a pasted report or letter, when the file itself can’t be sent. Triangle labels it as sent by an assistant and reads it like any upload.

    Permission: medical_records:write

  • request_record_sync

    Ask the health information network for your newest records. Triangle limits how often this can run.

    Permission: medical_records:write

  • request_wearable_connection

    Start connecting a wearable or health app. You finish it yourself on the link Triangle returns.

    Permission: devices:write

Sensitive write9

Book, move or cancel visits, delete, invite someone or change reminders. The agent should confirm each one with you.

  • schedule_appointment

    Book a visit with a Triangle clinician at a time you have agreed to.

    Permission: appointments:write

  • reschedule_appointment

    Move an upcoming visit to a new time you have agreed to.

    Permission: appointments:write

  • cancel_appointment

    Cancel an upcoming visit. This can’t be undone.

    Permission: appointments:write

  • update_routines

    Create, change, pause or stop reminders from an instruction in plain words.

    Permission: routines:write

  • invite_care_team_practitioner

    Email a care team member an invitation to join Triangle.

    Permission: care_team:write

  • delete_care_team_practitioner

    Remove someone from your care team.

    Permission: care_team:write

  • delete_topic

    Remove a health topic.

    Permission: patient:write

  • delete_topic_group

    Delete a topic group.

    Permission: patient:write

  • delete_topic_note

    Delete a note.

    Permission: notes:write

Good to know

  • A new app is live as soon as you create it. There is no review queue, and one account can create up to 10 apps a day.
  • Booking, moving or cancelling a visit, deleting anything, inviting someone and changing reminders are sensitive writes. Confirm each one with the person before you call it.
  • If someone hasn’t finished setting up Triangle, tools return a link to the next step instead of data. get_setup_status tells you where they are.
  • People can disconnect your app any time in Triangle’s settings. Their refresh token stops working, so plan for them to connect again.
  • Triangle can suspend an app that misuses access, which blocks new authorizations and token requests.

Which registration to use

Your own products register in the developer portal. Known AI platforms use Dynamic Client Registration instead.

  • Your own product

    Developer portal, then Connect with Triangle.

  • Your MCP app or local tool

    Self-serve in the developer portal.

  • ChatGPT, Claude, Grok, Cursor, VS Code, Claude Code, Codex

    They register themselves. Follow the setup guide for each on AI agents.

Endpoints

Clients that read the metadata documents find the rest on their own. Triangle’s MCP server is also listed in the official MCP Registry.

  • MCP server
    https://app.trianglehealth.com/mcp
  • Authorize
    https://app.trianglehealth.com/oauth/authorize
  • Token
    https://app.trianglehealth.com/oauth/token
  • Authorization server metadata
    https://app.trianglehealth.com/.well-known/oauth-authorization-server
  • Protected resource metadata
    https://app.trianglehealth.com/.well-known/oauth-protected-resource
  • Signing keys (JWKS)
    https://app.trianglehealth.com/.well-known/jwks.json
  • Dynamic Client Registration (known AI platforms only)
    https://app.trianglehealth.com/oauth/register
  • MCP Registry name
    com.trianglehealth/triangle

HTTP API

A documented HTTP API for the same data, under the same consent, is on the way and will be published here. Until then, the MCP server is the supported way to read and write a person’s record.

Guides

Setting up ChatGPT, Claude, Grok or another agent instead? See AI agents.

Ready to build?

Sign in to Triangle, open the developer portal and create a Client ID.