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.
https://app.trianglehealth.com/mcpHow it works
Three steps from a new app to your first tool call.
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.
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.
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/listshows every tool andtools/callruns 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_overviewget_patientget_changes_sinceget_setup_statusget_topicslist_topicscreate_topiccreate_topic_grouprename_topic_groupset_topic_groupdelete_topicdelete_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_summaryget_medical_recordsget_medical_recordsearch_documentsget_record_sourcesrequest_document_uploadcomplete_document_uploadcreate_documentrequest_record_sync
Notes9 tools
Notes under each health topic: read, search, write and edit.
notes:read · notes:write
get_notesget_noteget_topic_noteslist_topic_notessearch_topic_noteslist_note_kindscreate_topic_noteupdate_topic_notedelete_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_overviewget_lab_panelget_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_typesget_measurementsget_wearable_dayslist_wearable_connectionsrequest_wearable_connection
Medications3 tools
Medications, supplements and allergies, with dose and status. Add one or change one.
medications:read · medications:write
get_medicationscreate_medicationupdate_medication
Genome2 tools
The genome report: genes with findings, risk levels, evidence, the medications they affect and the action plan.
genome:read
get_genome_overviewget_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_runlist_genomics_filesread_genomics_artifactread_genomics_registryget_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_practitionersget_care_team_practitionercreate_care_team_practitionerupdate_care_team_practitionerinvite_care_team_practitionerdelete_care_team_practitioner
Appointments5 tools
Visits with Triangle clinicians: list them, check open times, book, move or cancel.
appointments:read · appointments:write
list_appointmentsget_appointment_availabilityschedule_appointmentreschedule_appointmentcancel_appointment
Routines2 tools
Reminders and routines, and when each fires next. Create or change them from plain words.
routines:read · routines:write
list_routinesupdate_routines
Every tool and what it does
Read38
Look at your record without changing it.
get_health_overviewOne 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_patientWho you are in Triangle: name, sex and gender, date of birth, phone, addresses, and whether your identity is verified.
Permission: patient:read
get_changes_sinceWhat 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_statusWhere 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_topicsYour health topics: the conditions and concerns Triangle organizes your record around.
Permission: patient:read
list_topicsYour health topics, shown as an interactive view in assistants that support one.
Permission: notes:read, patient:read
get_clinical_summaryTriangle’s written summary of your records, one section per health topic, with whether each section is current.
Permission: medical_records:read
get_medical_recordsThe documents in your records, with filters.
Permission: medical_records:read
get_medical_recordOne document: its summary, the text read from it and a download link.
Permission: medical_records:read
search_documentsSearch your documents by meaning and return the passages that match best, each with a link to its document.
Permission: medical_records:read
get_record_sourcesWhere your records come from, and whether an import or upload is in progress.
Permission: medical_records:read
get_labs_overviewYour most recent lab report at a glance, with every result outside its reference range.
Permission: labs:read
get_lab_panelEvery result in one panel of your latest lab report, such as lipids, liver, kidney or thyroid.
Permission: labs:read
get_lab_resultOne test from your latest lab report, with its range, flag and a plain-language explanation.
Permission: labs:read
list_measurement_typesWhich measurements Triangle holds for you, with the latest value of each.
Permission: measurements:read
get_measurementsThe history of one measurement, newest first, from lab reports, vitals and connected devices.
Permission: measurements:read
get_wearable_daysA day-by-day table of what your wearables recorded: steps, sleep, heart rate, HRV, weight and more.
Permission: measurements:read
list_wearable_connectionsThe wearables and health apps connected to your account, and when each last sent data.
Permission: devices:read
get_medicationsYour medications, supplements and allergies, with dose, frequency and status.
Permission: medications:read
get_notesYour notes, with filters.
Permission: notes:read
get_noteOne note in full.
Permission: notes:read
get_topic_notesThe notes under one health topic.
Permission: notes:read
list_topic_notesThe notes under one health topic, shown as an interactive view in assistants that support one.
Permission: notes:read
search_topic_notesSearch your notes by keyword.
Permission: notes:read
list_note_kindsThe kinds of notes Triangle keeps, and which of them can be written.
Permission: notes:read
get_care_team_practitionersThe doctors and clinicians on your care team.
Permission: care_team:read
get_care_team_practitionerOne member of your care team.
Permission: care_team:read
list_appointmentsYour appointments with Triangle clinicians, upcoming and past.
Permission: appointments:read
get_appointment_availabilityOpen times when a Triangle clinician can see you, and how long the visit is.
Permission: appointments:read
list_routinesYour reminders and routines, how often each runs and when it fires next.
Permission: routines:read
get_genome_overviewYour genome report, if you have one: how many genes have findings, in which categories, and where to start.
Permission: genome:read
get_genome_geneOne 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_runA 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_filesThe result files in your tumor genomic analysis, and what each one answers.
Permission: genomics_run:read
read_genomics_artifactOne page of a result file from your tumor genomic analysis, such as ranked therapies or matched trials.
Permission: genomics_run:read
read_genomics_registryEvery reportable alteration in your tumor genomic analysis, with its tier and evidence.
Permission: genomics_run:read
get_genomics_geneEverything your tumor genomic analysis says about one gene.
Permission: genomics_run:read
start_sessionStarts 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_topicAdd a health topic, or return it if it already exists.
Permission: patient:write
create_topic_groupAdd a group for organizing topics.
Permission: patient:write
rename_topic_groupRename a topic group.
Permission: patient:write
set_topic_groupPut a topic in a group, or take it out.
Permission: patient:write
create_topic_noteWrite a new note.
Permission: notes:write
update_topic_noteEdit one of your notes.
Permission: notes:write
create_medicationAdd a medication, supplement or allergy to your list.
Permission: medications:write
update_medicationChange a medication’s name, details or status.
Permission: medications:write
create_care_team_practitionerAdd a doctor or clinician to your care team.
Permission: care_team:write
update_care_team_practitionerUpdate a care team member’s details.
Permission: care_team:write
request_document_uploadGet a one-hour link for uploading a file to your records.
Permission: medical_records:write
complete_document_uploadTell Triangle an upload has finished, so it reads the file into your records.
Permission: medical_records:write
create_documentAdd 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_syncAsk the health information network for your newest records. Triangle limits how often this can run.
Permission: medical_records:write
request_wearable_connectionStart 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_appointmentBook a visit with a Triangle clinician at a time you have agreed to.
Permission: appointments:write
reschedule_appointmentMove an upcoming visit to a new time you have agreed to.
Permission: appointments:write
cancel_appointmentCancel an upcoming visit. This can’t be undone.
Permission: appointments:write
update_routinesCreate, change, pause or stop reminders from an instruction in plain words.
Permission: routines:write
invite_care_team_practitionerEmail a care team member an invitation to join Triangle.
Permission: care_team:write
delete_care_team_practitionerRemove someone from your care team.
Permission: care_team:write
delete_topicRemove a health topic.
Permission: patient:write
delete_topic_groupDelete a topic group.
Permission: patient:write
delete_topic_noteDelete 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_statustells 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.
Connect with Triangle
Add OAuth to your app so users authorize Triangle on your behalf
Developer Portal
Register OAuth apps for MCP clients and Connect with Triangle
Ready to build?
Sign in to Triangle, open the developer portal and create a Client ID.
Triangle