Metriport MCP by usefulapi

v1.42.1
io.usefulapi/metriport Checked 3 days ago Published 1 day ago

Read and write patients, facilities, medical documents, and consolidated FHIR records in Metriport.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

metriport_list_facilities List facilities

List all Facilities under your Metriport Organization (id, name, npi, address). Medical API: GET /medical/v1/facility.

metriport_get_facility Get facility

Get a single Facility by its Metriport ID. Medical API: GET /medical/v1/facility/{id}.

ParameterTypeDescription
id *stringThe Metriport Facility ID.

metriport_list_patients List patients

List Patients — all Patients, or only those at a given Facility if facilityId is supplied. Medical API: GET /medical/v1/patient.

ParameterTypeDescription
facilityIdstringOptional Facility ID to filter by. Omit to list all patients.

metriport_get_patient Get patient

Get a single Patient by its Metriport ID (demographics + facility IDs). Medical API: GET /medical/v1/patient/{id}.

ParameterTypeDescription
id *stringThe Metriport Patient ID.

metriport_list_documents List documents

List the document references currently available for a Patient at Metriport (optionally filtered by date range and content search). Medical API: GET /medical/v1/document.

ParameterTypeDescription
patientId *stringThe Patient ID whose available documents to list.
contentstringText to search within the document reference and contents (min 3 chars).
dateFromstringInclusive start date yyyy-mm-dd.
dateTostringInclusive end date yyyy-mm-dd.

metriport_get_document_query_status Get document query status

Check the progress/status of a Patient's document query (download + FHIR conversion counts). Medical API: POST /medical/v1/document/query with only patientId (no facilityId) returns current status without starting a new query.

ParameterTypeDescription
patientId *stringThe Patient ID whose document-query status to check.

metriport_get_document_url Get document download URL

Get a temporary, downloadable URL for a document by its file name (optionally converting XML/CDA to html or pdf). Medical API: GET /medical/v1/document/download-url.

ParameterTypeDescription
fileName *stringThe file name of the document (from metriport_list_documents).
conversionTypestringOptional doc type to convert to, e.g. pdf, html, xml (for XML/CDA files).

metriport_list_consolidated_queries List consolidated queries

Get the status of the Patient's consolidated-data (FHIR) queries. Medical API: GET /medical/v1/patient/{id}/consolidated/query.

ParameterTypeDescription
id *stringThe Metriport Patient ID.

metriport_get_medical_record_summary Get medical record summary

Get a URL to the Patient's medical record summary rendered as pdf or html. Medical API: GET /medical/v1/patient/{patientId}/medical-record.

ParameterTypeDescription
conversionType *stringThe format to render: pdf or html.
patientId *stringThe Metriport Patient ID.

metriport_create_patient Create patient

Creates a Patient in Metriport (writes PHI and initiates health-information-exchange queries). Medical API: POST /medical/v1/patient (facilityId is a required query param).

ParameterTypeDescription
address *arrayOne or more addresses for the Patient.
dob *stringDate of birth, yyyy-mm-dd.
facilityId *stringREQUIRED. The Facility ID where the Patient receives care.
firstName *stringThe Patient's first name(s).
genderAtBirth *stringGender at birth: M, F, O (other), or U (unknown).
lastName *stringThe Patient's last name(s).
contactarrayOptional contact info (phone / email).
middleNamestringThe Patient's middle name(s).
personalIdentifiersarrayOptional personal IDs (driver's license / SSN).

metriport_start_document_query Start document query

Starts a document query — retrieves the patient's medical documents from connected HIE networks. Returns a requestId; results arrive asynchronously. Medical API: POST /medical/v1/document/query (patientId and facilityId are required query params).

ParameterTypeDescription
facilityId *stringREQUIRED. The Facility ID where the patient receives care.
patientId *stringREQUIRED. The Patient ID to query documents for.
metadataobjectOptional custom string key-value pairs returned in the webhook.

metriport_start_consolidated_query Start consolidated query

Starts a consolidated-data (FHIR) query for the patient. Returns a requestId; the bundle is delivered asynchronously (webhook). Medical API: POST /medical/v1/patient/{id}/consolidated/query.

ParameterTypeDescription
id *stringThe Metriport Patient ID.
conversionTypestringOutput format: json, pdf, or html.
dateFromstringInclusive start date yyyy-mm-dd.
dateTostringInclusive end date yyyy-mm-dd.
metadataobjectOptional custom string key-value pairs returned in the webhook.
resourcesstringComma-separated, case-sensitive list of FHIR resource types. Omit for all.