Metriport MCP by usefulapi
v1.41.0Read 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
facilityId | string | Optional 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}.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
patientId * | string | The Patient ID whose available documents to list. |
content | string | Text to search within the document reference and contents (min 3 chars). |
dateFrom | string | Inclusive start date yyyy-mm-dd. |
dateTo | string | Inclusive 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.
| Parameter | Type | Description |
|---|---|---|
patientId * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
fileName * | string | The file name of the document (from metriport_list_documents). |
conversionType | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
conversionType * | string | The format to render: pdf or html. |
patientId * | string | The 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).
| Parameter | Type | Description |
|---|---|---|
address * | array | One or more addresses for the Patient. |
dob * | string | Date of birth, yyyy-mm-dd. |
facilityId * | string | REQUIRED. The Facility ID where the Patient receives care. |
firstName * | string | The Patient's first name(s). |
genderAtBirth * | string | Gender at birth: M, F, O (other), or U (unknown). |
lastName * | string | The Patient's last name(s). |
contact | array | Optional contact info (phone / email). |
middleName | string | The Patient's middle name(s). |
personalIdentifiers | array | Optional 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).
| Parameter | Type | Description |
|---|---|---|
facilityId * | string | REQUIRED. The Facility ID where the patient receives care. |
patientId * | string | REQUIRED. The Patient ID to query documents for. |
metadata | object | Optional 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | The Metriport Patient ID. |
conversionType | string | Output format: json, pdf, or html. |
dateFrom | string | Inclusive start date yyyy-mm-dd. |
dateTo | string | Inclusive end date yyyy-mm-dd. |
metadata | object | Optional custom string key-value pairs returned in the webhook. |
resources | string | Comma-separated, case-sensitive list of FHIR resource types. Omit for all. |