About Taiwan Health MCP
Taiwan Health MCP is an MCP server published by healthymind-tech in the Developer Tools category: 讓 AI agent 讀懂台灣醫療:63 個 MCP 工具,涵蓋 FHIR R4 / TW Core 驗證、ICD-10、SNOMED CT、LOINC、TFDA 藥品與臨床計算器。MCP server for Taiwan healthcare data. Conduid read 64 tools from its source: analyze_meal_nutrition, batch_interpret_lab_results, browse_icd_category, calculate_bmi, calculate_cdai, calculate_chads2_vasc and 58 more. No package is published for it, so it installs from a source checkout.
The repository has 171 stars and 25 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.1.0. It is the only release Conduid has on record for this repository. It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include health and taiwan.
Install
git clone https://github.com/healthymind-tech/Taiwan-Health-MCPTools (64)
analyze_meal_nutritionAggregate nutrition for a meal from multiple foods (100 g per food assumed). Returns per-food breakdowns and a combined meal total.| Parameter | Type | Description |
|---|---|---|
| foods * | array |
batch_interpret_lab_resultsInterpret a full panel of lab results against LOINC reference ranges in one call. results_json must be a JSON array of {loinc_code, value} objects; passing a non-array returns an error without calling the service.| Parameter | Type | Description |
|---|---|---|
| age * | number | |
| gender | string | |
| results_json * | string |
browse_icd_categoryBrowse ICD-10-CM structure by chapter or 3-character category. Omit category to enumerate all categories with counts; pass a category to expand it into codes.| Parameter | Type | Description |
|---|---|---|
| category | string | |
| limit | number |
calculate_bmiBody mass index with Taiwan (Asian) cutoffs: <18.5 underweight, 18.5–23.9 normal, 24–26.9 overweight, ≥27 obese. Height in cm (not metres), weight in kg.calculate_cdaiCDAI (lab-free) rheumatoid arthritis disease activity (0–76). Tender and swollen counts use the 28-joint assessment (0–28 each); patient and provider global assessments are 0–10.calculate_chads2_vascCHA₂DS₂-VASc stroke-risk score for non-valvular atrial fibrillation (0–9). Accepts raw age/sex and computes brackets internally; also returns the 2024 ESC CHA₂DS₂-VA adjusted score (sex removed). Decision support only.calculate_curb65CURB-65 community-acquired pneumonia severity (0–5). BUN in mg/dL (threshold >19), respiratory rate ≥30, hypotension SBP<90 or DBP≤60, confusion, age ≥65.calculate_das28DAS28 rheumatoid arthritis disease activity. formula=esr needs esr (mm/h); formula=crp needs crp (mg/L). Joint counts are 28-joint (0–28); global_health is a 0–100 VAS (not the 0–10 scale CDAI uses). Returns score and activity band (remission/low/moderate/high).calculate_egfrEstimated glomerular filtration rate using the CKD-EPI 2021 creatinine equation (race-free), adults ≥18 only. serum_creatinine_mgdl in mg/dL (convert µmol/L by dividing by 88.4). Returns eGFR in mL/min/1.73m² and KDIGO CKD stage.calculate_gcsGlasgow Coma Scale (3–15). eye_response 1–4, verbal_response 1–5, motor_response 1–6. Returns total, E/V/M sub-scores, and mild/moderate/severe severity (≤8 severe).calculate_has_bledHAS-BLED bleeding risk on oral anticoagulation (0–9). Accepts raw age (the >65 criterion is computed) and raw systolic BP (the H criterion is computed as SBP >160 mmHg). Returns score and high/low bleeding-risk category (≥3 high).calculate_qsofaqSOFA sepsis screening (0–3): respiratory rate ≥22, altered mentation (GCS <15), systolic BP ≤100. ≥2 suggests sepsis and further evaluation.calculate_wells_dvtWells criteria for deep-vein thrombosis (two-tier + three-tier risk). All items are binary clinical findings.calculate_wells_peWells criteria for pulmonary embolism (two-tier + three-tier risk). Binary findings are booleans; heart_rate_bpm is raw and the >100 criterion is computed.check_medical_conflictFetch full metadata for one diagnosis + one procedure code side-by-side for coding QA / conflict analysis. Returns facts only, no pass/fail verdict.| Parameter | Type | Description |
|---|---|---|
| diagnosis_code * | string | |
| procedure_code * | string |
crud_fhir_serverPerform a controlled FHIR REST operation against an admin-configured server. Never accepts arbitrary URLs; builds standard FHIR paths from operation/resource_type/resource_id. Write ops require confirm_write=true and must be in the server's allowed set.| Parameter | Type | Description |
|---|---|---|
| confirm_write | boolean | |
| operation | string | |
| patch_json | string | |
| query_json | string | |
| resource_id | string | |
| resource_json | string | |
| resource_type | string | |
| server_key * | string | |
| token_strategy | string |
fhir_build_bundleAssemble inline FHIR resources into a Bundle, wiring urn:uuid references. Each entry is {resource, key?, fullUrl?, request?}. A key becomes a deterministic UUID v5 fullUrl (same input → same Bundle); references written as the key, urn:uuid:<key> or <Type>/<key> are rewired to it; an invalid fullUrl (urn:uuid:patient-1, uppercase UUID) is normalised like fhir_finalize_bundle. data.changes lists every rewrite, data.unresolved the references no entry matches.| Parameter | Type | Description |
|---|---|---|
| bundle_type | string | |
| context_id | string | |
| entries * | array |
fhir_check_completenessfhir_check_groundingfhir_expand_valuesetExpand a ValueSet to its member codings, resolved locally where possible. Whole large external systems are not enumerated (TOO_BROAD).| Parameter | Type | Description |
|---|---|---|
| identifier * | string | |
| limit | number |
fhir_finalize_bundleCall this on the finished Bundle before you output it (在輸出最終 Bundle 前呼叫;修正可唯一確定的錯誤,不能確定的不猜、回報候選). repair="content" (default) = ids + content repairs; repair="ids" = only fullUrl / reference / id (v9). IDS: a fullUrl that is not a lowercase urn:uuid / urn:oid / absolute URL (e.g. urn:uuid:patient-1, missing) becomes a deterministic UUID v5; every Reference found through the StructureDefinition snapshot that names an entry by its old fullUrl, a case-different UUID, Type/id or bare id is rewired to the entry's final fullUrl; invalid Bundle.id / resource.id are repaired; a Bundle.type fixed by the Bundle profile is set and a document's Composition moved first. CONTENT (only when the fix is unique; every change listed with its reason): display — a Coding display the terminology rejects is replaced by the code's display only when it is the SAME concept written differently: it equals a valid display / designation after normalising case, punctuation, word order, semantic tag or initialism, or searching the display in the code's own system (fhir_normalize_code) finds that code first (exactly, or sharing ≥ half its words). If the display names another concept (another code ranks first — the code is probably wrong) it is NOT changed: repair_issues + the validator error carry the codes the display denotes; ucum — a Quantity's UCUM code / system from its unit or code text (mmHg → mm[Hg], °C/degC → Cel, 次/分 → /min, a LOINC code in Quantity.code replaced), fitted to the profile's fixed code or required UCUM ValueSet ('min' / '1/min' where /min is fixed; mL/min/1.73m2 → mL/min/{1.73_m2}; μIU/mL → u[IU]/mL); a LOINC code in Quantity.code with no unit is reported (quantity-code-not-ucum) unless the profile allows only one unit (then set); roc-date — 民國 dates (115-10-03, 115/10/03, 民國115年10月3日) → +1911; timezone — a date-time without UTC offset (ROC or Gregorian) takes the site timezone: `timezone` (+08:00 / Asia/Taipei), else a site_config line `timezone: +08:00`, never guessed (else reported: timezone-required); 1–2-digit years reported; system — a non-absolute Coding.system (ICD-10-CM, LOINC, SNOMED CT) or an unknown / ValueSet URL → the one CodeSystem it names (installed CodeSystems + the FHIR R4 external list, URL fragment / last segment, a THO / core ValueSet of that name, a similarly named renamed CodeSystem, the element's bound ValueSets) that holds the code; shape — Coding given as {coding:[one]} / {type: …}, CodeableConcept given as a bare Coding, a code element given as a CodeableConcept, one-item arrays of single elements, a property misplaced one level (Dosage.doseQuantity → doseAndRate[0].doseQuantity, timing.route → dosage.route, doseAndRate.unit → doseQuantity.unit, entry.meta → resource.meta), resourceType from meta.profile, a Bundle without resourceType or with numbered entry keys ("entry[1]"), deep-equal duplicate fullUrl entries dropped; empty — {}, [], "", null removed (ele-1); fixed-slice — a required coding slice the profile fully fixes added; alt-coding — a code missing from the package's excerpt CodeSystem (e.g. an NHI drug code outside TW Core 1.0.0's 35-code medication-nhi-tw) but defined in a fuller installed copy, whose concept links to exactly one coding of another system the validator accepts and a bound ValueSet / coding slice contains (its ATC code), is replaced by that coding (or dropped when already present); CodeableConcept.text kept (set to the original display when absent); code — a required-binding code written as its display or in another case. A change is withdrawn (repair_issues) if the Bundle would get a validation error it did not have (a display error exposed on the Coding whose system was corrected does not count: it stays reported with candidates). v19: the whole result is checked — the finalized Bundle never has a validation error the Bundle as sent does not have (| Parameter | Type | Description |
|---|---|---|
| bundle * | object | The complete Bundle as written |
| bundle_profile | string | Canonical URL (or id) of the target Bundle profile; omitted → the Bundle's meta.profile |
| bundle_type | string | Bundle.type to set (FHIR R4 bundle-type code, e.g. collection when a document has no Composition); never overrides a type the Bundle profile fixes |
| exposed_errors | string | How the no-new-error check counts an error that appears at / under a property finalize renamed or moved (it was an unrecognized property before, so the validator could not check it): "strict" (default) — it counts as new and the rename is withdrawn (listed in ambiguous); "allow_under_moved" — it was hidden, not added: the rename is kept and the error reported. |
| repair | string | "content": ids + uniquely-determined content repairs; "ids": only fullUrl / reference / id / Bundle.type / document order (v9). Omitted → "${DEFAULT_FINALIZE_REPAIR}" |
| site_config | string | Facility settings text (as fhir_check_grounding's site_config); a line `timezone: +08:00` (or 時區:Asia/Taipei) gives the site timezone when `timezone` is not passed. Never logged. |
| source_text | string | Optional clinical record text the Bundle was written from: the record checks (data.record_issues / record_checks) then also check date precision, Quantity values, free-text-only medicines, unconfirmed diagnoses and whether every identifier / date / quantity value is in the record against it. Never logged, never changes the Bundle. |
| timezone | string | The site timezone — a UTC offset (+08:00) or an IANA zone (Asia/Taipei) — for date-times written without an offset (ROC 民國 and Gregorian); never guessed |
fhir_finalize_resourceFinalize a draft resource you wrote as FHIR JSON against a profile, then validate it. Never invents content: sets meta.profile; pins fixed / pattern values only where the draft already has the parent node, including slice members the slicing discriminators identify (a component whose code is the systolic LOINC gets the slice's unit system / code, an identifier whose type matches gets the slice's system / use) and items tagged `_slice: <name>` at any depth (the tag is always removed, also when it names no slice); fills Coding.system when the bound ValueSet has a single system; rewrites references written as {reference: <key>} to the context's urn:uuid (context_id + key); generates the narrative; validates like fhir_validate_resource (issues carry suggestions). repair="content" (default; "ids" = off) first applies the same uniquely-determined content repairs as fhir_finalize_bundle — display of the SAME concept only (a display naming another concept is kept and reported with the codes it denotes), UCUM codes from unit text fitted to the profile, ROC (民國) dates, the site timezone (`timezone` / site_config) for date-times without an offset, Coding.system names / unknown URLs, lossless shape fixes, empty elements, required fixed coding slices, required-binding code spellings — listed in `changes`, undecidable ones in `repair_issues` (and on the validator issue as `repair`). Returns {resource, validation, changes, repair_issues, coerced, narrated, pinned, pinnedSlices, contextId, reference}; numbers keep the spelling you wrote. Does not auto-loop. Prefer fhir_author_resources when you have field VALUES rather than a drafted resource: it composes the resource for you (no raw FHIR JSON) and keeps it in a context for fhir_assemble_bundle.| Parameter | Type | Description |
|---|---|---|
| context_id | string | |
| draft * | object | |
| generate_narrative | boolean | |
| key | string | |
| profile * | string | |
| repair | string | "content": + uniquely-determined content repairs (see fhir_finalize_bundle); "ids": pinning / narrative / references only (1.5.0). Omitted → "${DEFAULT_FINALIZE_REPAIR}" |
| site_config | string | Facility settings text (as fhir_check_grounding's site_config); a line `timezone: +08:00` (or 時區:Asia/Taipei) gives the site timezone when `timezone` is not passed. Never logged. |
| source_text | string | Optional clinical record text the draft was written from: the record checks in validation.issues then also check date precision, Quantity values, free-text-only medicines, unconfirmed diagnoses and whether every identifier / date / quantity value is in the record. Never logged; the draft is never changed by them. |
| timezone | string | The site timezone — a UTC offset (+08:00) or an IANA zone (Asia/Taipei) — for date-times written without an offset (ROC 民國 and Gregorian); never guessed |
fhir_get_igDetails of one IG package: identity, dependencies, and per-resource-type artifact counts. data.deps_missing lists declared dependencies that are not installed (incomplete closure).fhir_get_profileSummary of one Profile / StructureDefinition: identity, base definition, derivation, element count. identifier may be an id or a canonical URL, optionally pinned as 'url|version' (an uninstalled version is ARTIFACT_NOT_FOUND).| Parameter | Type | Description |
|---|---|---|
| identifier * | string |
fhir_get_profile_elementsRead a Profile's StructureDefinition snapshot via a view: elements | element | slices | choices | binding | examples. path is required for element/slices/choices/binding. Raw min is per element and ignores parent optionality — for the effective required set use fhir_get_profile_required_elements.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| path | string | |
| profile * | string | |
| slice_name | string | |
| view | string |
fhir_get_profile_required_elementsReturn every element a profile effectively requires (min>=1 with required ancestors, required slices, choice types, invariant-implied value-or-dataAbsentReason) plus target-implied primary content, each classified as auto, coding, source_fact, workflow_default, derived, ... with cardinality, type, binding, fixed/pattern, mustSupport and a short fill hint. derived rows (e.g. Condition.category) carry allowedCodes and a derivation rule in `hint` (Condition.category: encounter-diagnosis for this visit's diagnoses, problem-list-item only for a longitudinal problem list). mustSupport is NOT required: unlisted and optional:true rows may be left out — never refuse a task because one is missing. Use it before writing a resource so every required field is filled; works for any installed IG (without package_id the package owning the profile is used; 'url|version' pins a version). Profiled extensions are expanded from their definitions, and profile-specific error invariants are listed under `invariants`. verbosity='compact' (default) keeps id/required_by/grounding_class/fixed|pattern|value/choices/allowedCodes/hint and folds profile-pinned subtrees into one copyable `value`; verbosity='full' adds min/max/types/binding/mustSupport per row.| Parameter | Type | Description |
|---|---|---|
| include_mustsupport | any | false (default): required elements only. "defaults": also the optional mustSupport elements whose value needs no source fact (fixed/pattern, a workflow default such as status, or a derivation rule). true: every mustSupport element. Added rows have required_by='mustSupport-only' and optional:true — they are NOT required. |
| include_target_implied | boolean | |
| instance | object | Optional draft resource: optional parents it populates make their min>=1 children required too |
| profile * | string | Profile id (e.g. Patient-twcore) or canonical URL |
| verbosity | string | compact (default): minimal keys per row, pinned subtrees folded; full: every row with min/max/types/binding/mustSupport |
fhir_get_resource_skeletonGet a blanked, annotated fill-form for authoring a resource against a profile (paths, cardinality, types, candidate codes, examples). Each field's `required` is the element's own min>=1; `effectiveRequired` also requires every ancestor to be required. For the complete required list (slices, invariants, where each value comes from) call fhir_get_profile_required_elements.| Parameter | Type | Description |
|---|---|---|
| candidate_limit | number | |
| include_examples | boolean | |
| profile * | string |
fhir_get_valuesetReturn a ValueSet's definition (compose block + metadata) without expanding it.| Parameter | Type | Description |
|---|---|---|
| identifier * | string |
fhir_list_artifactsList an IG's conformance artifacts (StructureDefinitions, ValueSets, CodeSystems, examples) as summary rows. Without package_id only the default IG is listed; all_packages=true lists every installed package. Zero rows comes with data.hint naming the other packages that match. compact=true returns id → title per resource type (about a fifth of the size) instead of full summary rows.| Parameter | Type | Description |
|---|---|---|
| grouping_id | string | |
| limit | number | |
| resource_type | string |
fhir_list_igsList the FHIR Implementation Guide (IG) packages installed on this server (isDefault, installOrigin manual|dependency, dependencies). Tools that omit package_id use the package owning the canonical / meta.profile involved, else the default IG. compact=true: just packageId#version → title by install origin, plus the default IG. query: a conversion target or IG name in any language / short name (e.g. '轉為健保事前審查 Bundle', 'TWCM', 'IPS') → the matching installed IGs, ranked, each with its Bundle profiles (bundle_profiles) — use it when you do not know which package_id / bundle_profile a task means.| Parameter | Type | Description |
|---|---|---|
| query | string | Conversion target / IG name (Chinese or English, short names allowed); returns matches with Bundle profiles |
fhir_list_resource_profilesList the IG's selectable resource Profiles (constraint StructureDefinitions), grouped by base FHIR resource type. Without package_id: the default IG (all_packages=true: every installed package; zero rows → data.hint). After choosing one, call fhir_get_profile_required_elements to learn exactly which elements it requires. compact=true (recommended when tool output is limited, e.g. all of TW Core: ~4k instead of ~13k chars) returns per base type a map profile id → title plus the canonical base; pass base_type to narrow further.| Parameter | Type | Description |
|---|---|---|
| base_type | string |
fhir_lookup_codeLook up the display/definition of a (system, code) pair from locally held terminology. accepted_by_validator says whether fhir_validate_* accepts the code for the package; a code defined only in a fuller installed copy of an excerpt CodeSystem returns defined_in and alternatives (accepted codings of another system, e.g. ATC).| Parameter | Type | Description |
|---|---|---|
| code * | string | |
| system * | string |
fhir_normalize_codeTurn free text into ranked candidate codes for a target system or ValueSet (ConceptMap + lexical + semantic). Provide at least one of value_set or system. Supported: SNOMED CT, LOINC, ICD-10-CM/PCS and every CodeSystem of an installed IG (e.g. TW Core medical-service-payment-tw = Taiwan NHI payment codes for lab tests and procedures, occupation, department codes). For IG CodeSystems the text may be Chinese or English, an abbreviation or chart wording (CRP, TKA, 清創縫合 …); system may also be the CodeSystem id or alias words (nhi_payment). Candidates carry matched_term / matched_language and same-group siblings (e.g. the same test by another method). Drugs: Taiwan NHI drug codes (健保藥品代碼) ARE supported — system='medication-nhi-tw' (TW Core) or 'nhi-medication' (TWPAS), text = brand or generic name in English or Chinese, strength optional (e.g. 'Glucophage 500mg', '脈優錠 5mg', 'amlodipine'); when the default IG ships only an excerpt of a CodeSystem the full installed copy is searched (see warnings / codesystem_copies). ATC: WHO ATC (http://www.whocc.no/atc) is not held as a searchable CodeSystem (TW Core medcation-atc-tw has only 27 Taiwan-specific codes); find the NHI drug instead — its candidate's `linked` lists the drug's ATC code (e.g. {system:'http://www.whocc.no/atc', code:'A10BA02'}). Every candidate carries accepted_by_validator (+ reason): whether fhir_validate_* accepts the code for the resolved package — codes found only in a fuller copy are flagged false (Unknown code under an excerpt); then use data.alternatives (codings of another system the validator accepts, e.g. the drug's ATC coding for the MedicationRequest atc slice) and keep the name in CodeableConcept.text. TFDA licence numbers: system='medication-fda-tw'. Taiwan FDA product details (ingredients, inserts): search_drug / get_drug_details.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| system | string | |
| text * | string | |
| value_set | string |
fhir_rank_resource_profilesRank candidate Profiles by how many of your source-data field keys match each profile's element paths. Suggests only (selectionRequired:true).| Parameter | Type | Description |
|---|---|---|
| base_type | string | |
| keys * | array | |
| limit | number |
fhir_resolve_referenceMint (or return) a stable urn:uuid reference for a logical key within a build context, so resources can reference each other before finalization.| Parameter | Type | Description |
|---|---|---|
| context_id | string | |
| display | string | |
| key * | string | |
| resource_type | string |
fhir_search_artifactsFull-text search an IG's artifacts by id / canonical URL / name / title / description. Without package_id only the default IG is searched; all_packages=true searches every installed package. Zero hits comes with data.hint naming the other packages that match (e.g. Claim → the PAS IG). compact=true returns id → title per resource type instead of full summary rows.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | |
| limit | number | |
| resource_type | string |
fhir_validate_bundle| Parameter | Type | Description |
|---|---|---|
| bundle * | object | |
| bundle_profile | string | The Bundle profile (canonical or id) the Bundle must conform to, besides its meta.profile — as validator_cli -profile. Pass the conversion target's Bundle profile: without it only meta.profile is checked. |
| normalize_ids | boolean | true: first apply fhir_finalize_bundle's fullUrl / reference / id normalisation, validate the normalised Bundle and return it as normalized_bundle with id_changes (the fixed ID issues become information). false (default): ID errors carry suggestions and data.id_map / id_changes list every fullUrl, reference and id that must change together. |
| repair | string | With normalize_ids=true: "ids" (default) normalises fullUrl / reference / id only; "content" also applies fhir_finalize_bundle's uniquely-determined content repairs (display of the same concept, UCUM, ROC dates, Coding.system, shapes) — listed in content_changes, undecidable ones in repair_issues — and validates the result. |
fhir_validate_codeCheck whether a (system, code) is a member of a ValueSet. Returns valid | invalid | unverifiable. value_set may be pinned as 'url|version'.| Parameter | Type | Description |
|---|---|---|
| code * | string | |
| system * | string | |
| value_set * | string |
fhir_validate_resource| Parameter | Type | Description |
|---|---|---|
| profile | string | |
| resource * | object |
get_drug_asset_linksReturn persisted asset metadata plus runtime-generated MinIO download links (presigned URLs are null when MinIO is unconfigured).| Parameter | Type | Description |
|---|---|---|
| asset_group | string | |
| asset_id | string | |
| latest_insert_only | boolean | |
| license_id | string |
get_drug_detailsReturn the canonical normalized drug record for one Taiwan FDA license, augmented with stage availability and document counts.| Parameter | Type | Description |
|---|---|---|
| include_cancelled | boolean | |
| license_id * | string |
get_fhir_server_statusGet the status and configuration of ONE admin-configured external FHIR server (same fields as list_fhir_servers). Does not make a live call — returns the last stored probe. Secrets are never returned.| Parameter | Type | Description |
|---|---|---|
| server_key * | string |
get_nearby_codesRetrieve the two ICD-10-CM codes immediately before and after a known code (alphabetical ordering neighbors, not semantic matches).| Parameter | Type | Description |
|---|---|---|
| code * | string |
get_snomed_relationshipsGet the clinical attribute relationships (non-IS-A) for a SNOMED CT concept, grouped by relationship type with a human-readable label and list of target concepts.| Parameter | Type | Description |
|---|---|---|
| concept_id * | number | |
| relationship_type_id | number |
health_checkReturn runtime readiness of the MCP server and every module-backed service. Call this first before any workflow to confirm the required services are online.identify_unknown_pillIdentify a Taiwan FDA drug by pill appearance keywords (space-separated), matched conjunctively against appearance fields with a small color/shape synonym map.| Parameter | Type | Description |
|---|---|---|
| features * | string |
infer_complicationsExplore the ICD-10-CM hierarchy for a diagnosis code or category prefix. Pure hierarchy lookup: parent codes expand to child codes; leaf codes list siblings.| Parameter | Type | Description |
|---|---|---|
| code * | string |
interpret_lab_resultInterpret one lab result against the applicable age/gender-stratified LOINC reference range. Returns the range, the measured value, and a normal/high/low flag. Reference values are general guidance only.| Parameter | Type | Description |
|---|---|---|
| age * | number | |
| gender | string | |
| loinc_code * | string | |
| value * | number |
list_fhir_serversList admin-configured external FHIR servers available for MCP workflows. Discovery entry point — returns {count, servers:[...]} with identity, capabilities, non-sensitive auth metadata, and the last stored probe. Secrets are never returned.| Parameter | Type | Description |
|---|---|---|
| include_disabled | boolean |
query_fhir_conditionGenerate a FHIR R4 Condition resource from an ICD-10-CM code or a diagnosis keyword. Provide exactly one of icd_code (Path A — full field support) or diagnosis_keyword (Path B — search-first; only patient_id/clinical_status/verification_status/severity applied).| Parameter | Type | Description |
|---|---|---|
| additional_notes | string | |
| category | string | |
| clinical_status | string | |
| diagnosis_keyword | string | |
| icd_code | string | |
| onset_date | string | |
| patient_id | string | |
| recorded_date | string | |
| severity | string | |
| verification_status | string |
query_fhir_medicationGenerate a FHIR R4 Medication or MedicationKnowledge resource for a TFDA drug. Provide exactly one of license_id (Path A — direct) or keyword (Path B — search-first). Derived from normalized TFDA data only (no RxNorm).| Parameter | Type | Description |
|---|---|---|
| keyword | string | |
| license_id | string | |
| resource_type | string |
query_food_ingredientSearch the Taiwan FDA food ingredient classification database by keyword, with an optional major_category filter (hybrid BM25 + semantic).| Parameter | Type | Description |
|---|---|---|
| category | string | |
| keyword * | string | |
| limit | number |
query_food_nutritionSearch Taiwan FDA food composition database for nutritional content per 100 g (hybrid BM25 + semantic). detailed=false (default): quick flat lookup with optional nutrient filter; detailed=true: full nutrient panel grouped by category (limit ignored).| Parameter | Type | Description |
|---|---|---|
| detailed | boolean | |
| food_name * | string | |
| limit | number | |
| nutrient | string |
query_loincLook up a known LOINC code for full detail or age/gender-stratified reference range. Use after you already know the LOINC code; for discovery use search_loinc.| Parameter | Type | Description |
|---|---|---|
| age | number | |
| gender | string | |
| loinc_code | string | |
| mode | string |
query_snomed_conceptFetch a SNOMED CT concept with optional IS-A hierarchy expansion (ancestors + children). The preferred entry point when you want the concept record AND its surrounding tree.| Parameter | Type | Description |
|---|---|---|
| child_limit | number | |
| concept_id * | number | |
| include_children | boolean | |
| include_parents | boolean | |
| parent_limit | number |
query_snomed_mappingMap between ICD-10-CM codes and SNOMED CT concepts (bidirectional). mode=icd: keyword is an ICD-10 code → mapped SNOMED concepts. mode=snomed: keyword is a numeric concept_id or English term → mapped ICD-10 codes.| Parameter | Type | Description |
|---|---|---|
| keyword | string | |
| mode | string |
search_drugSearch Taiwan FDA drug records by mode. drug_name (default), ingredient, license_id, atc_code. Output: { mode, keyword, include_cancelled, results }.| Parameter | Type | Description |
|---|---|---|
| include_cancelled | boolean | |
| keyword | string | |
| limit | number | |
| mode | string |
search_foods_by_nutrientRank Taiwan FDA foods by highest content of a specific nutrient (per 100 g). Nutrient resolution: alias map → partial ILIKE → semantic embedding fallback.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| nutrient * | string |
search_health_supplementsSearch Taiwan FDA certified health supplements (健康食品) by three modes. keyword (default): hybrid BM25 + semantic search across name/company/benefits. permit_no: look up one product by permit number or its digits (limit ignored). condition: map a disease name or ICD-10 code to recommended benefit categories, then find certified products matching those benefits (adds icd_code + recommended_benefits).| Parameter | Type | Description |
|---|---|---|
| keyword | string | |
| limit | number | |
| mode | string |
search_loincDiscover LOINC codes and categories with mode-specific search behavior. code (default): hybrid BM25 + semantic search by test name/abbreviation/analyte (optional category narrows to a LOINC class). category: list or filter categories. specimen: search by specimen/system type. component: search by analyte. keyword is required for code/specimen/component modes.| Parameter | Type | Description |
|---|---|---|
| category | string | |
| keyword | string | |
| limit | number | |
| mode | string |
search_medical_codesSearch ICD-10-CM diagnosis codes and ICD-10-PCS procedure codes (the editions loaded on this server; see health_check.terminology). diagnosis: hybrid BM25 + vector embedding re-ranking; procedure: BM25 only; all (default): both, returned under separate diagnoses/procedures keys. Results are ranked by relevance, not alphabetical. Optional system: icd10cm | icd10pcs, or any CodeSystem of an installed FHIR IG (canonical URL, id, or name words, e.g. nhi_payment = TW Core medical-service-payment-tw, the Taiwan NHI payment / fee-schedule codes for lab tests and procedures). For an IG CodeSystem the keyword may be Chinese or English free text, an abbreviation or chart wording; results carry code, display, matched_term and same-group siblings, and accepted_by_validator (whether fhir_validate_* accepts the code — an excerpt CodeSystem is searched in its fuller installed copy, whose extra codes are flagged false; then use `alternatives`, accepted codings of another system such as ATC). fhir_normalize_code(text, system) does the same within an IG; fhir_lookup_code gives the display of a known code.| Parameter | Type | Description |
|---|---|---|
| keyword * | string | |
| limit | number | |
| system | string | Code system to search. Omit for ICD-10 (see type). icd10cm | icd10pcs, or an installed IG CodeSystem: canonical URL, id (medical-service-payment-tw) or alias words (nhi_payment). |
| type | string |
search_snomed_conceptSearch SNOMED CT International Edition by English term (hybrid BM25 + semantic). Returns up to limit closest concepts with concept_id, fsn, preferred_term, active, and hierarchy_tag. For full detail use query_snomed_concept.| Parameter | Type | Description |
|---|---|---|
| hierarchy_filter | number | Restrict to this concept and its is-a descendants, e.g. 404684003 Clinical finding, 71388002 Procedure, 123037004 Body structure, 105590001 Substance. |
| limit | number | |
| query * | string |
validate_fhir_conditionValidate a FHIR R4 Condition resource for required fields (resourceType/code/subject) and status presence. Basic structural validation only.| Parameter | Type | Description |
|---|---|---|
| condition_json * | string |
validate_fhir_medicationValidate structure and core field semantics of FHIR Medication / MedicationKnowledge resources (resourceType, code.coding, ingredient items). Basic validation only.| Parameter | Type | Description |
|---|---|---|
| medication_json * | string |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 737 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by admin-ui/package-lock.json and 3 more.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 737 words, fetched a month ago. The original in the repository is authoritative.
Read full README