Medical Terminologies MCP

v4.3.3
io.github.SidneyBissoli/medical-terminologies-mcp Checked 6 hours ago Published 1 day ago

Diagnoses, functioning, drugs & labs: ICD-11, ICF, LOINC, RxNorm, MeSH, ATC, CID-10.

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

icd11_lookup ICD-11 Entity Details

Get detailed information about ONE ICD-11 entity you already have a code or URI for. Use this tool to: - Get the full definition of a disease - Retrieve coding notes, inclusions and exclusions - Get the official title and index terms (synonyms) Provide `code` (e.g., "BA00") or `uri` (any URI a previous answer returned) — at least one is required; calling with neither returns a validation error naming both. Set `language` for WHO's official translations (e.g. `language: "pt"` for official Portuguese). Returns a single entity (no pagination). A code WHO does not know comes back as a "not fo…

ParameterTypeDescription
codestringICD-11 code (e.g., "BA00", "1A00")
languagestringLanguage code (default: en). Returns the source's OFFICIAL translation when it exists (e.g. 'pt' for official Portuguese); content is never machine-translated.
uristringFull ICD-11 foundation URI

icd11_hierarchy Browse ICD-11 Hierarchy

Navigate the ICD-11 hierarchy to find parent or child entities. Use this tool to: - Find broader categories (parents) of a condition - Find specific subtypes (children) of a condition - Understand the classification structure Name the entity by `code` (a leaf code like "5A11", or a block range like "5A10-5A2Y" — blocks come back from 'parents' with an empty code and a code_range) or by `uri` (the URI any previous answer returned). Direction 'parents' returns ancestor categories, 'children' returns subcategories. ICD-10 codes (like "E11") are not ICD-11 codes: convert them first with map_ic…

ParameterTypeDescription
direction *stringDirection: "parents" for ancestors, "children" for subtypes
codestringICD-11 code (e.g., "BA00", "5A11") or block range (e.g., "5A10-5A2Y")
languagestringLanguage code (default: en). Returns the source's OFFICIAL translation when it exists (e.g. 'pt' for official Portuguese); content is never machine-translated.
uristringEntity URI as returned by icd11_lookup, icd11_search or a previous icd11_hierarchy call

icd11_chapters List ICD-11 Chapters

List all ICD-11 chapters (top-level categories) of the pinned WHO release. Use this tool to: - Get an overview of ICD-11 structure - Find which chapter covers a body system or condition type - Get chapter URIs to drill down with icd11_hierarchy (direction 'children') Returns 28 entries in one response, no pagination — chapters 01-26 plus the supplementary sections V (functioning) and X (extension codes) — each with number, code, title and URI. Each chapter is fetched separately from WHO; if one fetch fails, that entry keeps its URI and carries an `error` instead of a title, and the rest…

ParameterTypeDescription
languagestringLanguage code (default: en). Returns the source's OFFICIAL translation when it exists (e.g. 'pt' for official Portuguese); content is never machine-translated.

icd11_postcoordination ICD-11 Postcoordination Options

List the postcoordination axes WHO allows for one ICD-11 stem code (MMS linearization, pinned release). Postcoordination means attaching extra detail to a stem code — severity, laterality, anatomy, causing agent, etc. — to build a composite (cluster) code. Use this tool to: - See which axes a stem code accepts before building a composite code - Check which axes are REQUIRED vs optional - See whether an axis takes one or several values, and how many values it offers Provide an ICD-11 `code` (e.g., "BA00"). Returns one entry per axis with `axis_name`, `required`, `allow_multiple` and `val…

ParameterTypeDescription
code *stringICD-11 code to get postcoordination info for

icf_lookup ICF Category Details

Get the official details of ONE ICF category you already have a code or URI for: title, definition, inclusions, exclusions, component and WHO browser link. Provide `code` (a component letter b/s/d/e and 1-5 digits, e.g. "d450", "b28013") or `uri` (an ICF URI a previous answer returned) — at least one is required. Qualifiers such as ".qp8" are not part of the code. Set `language` for WHO's official translations (e.g. `language: "pt"`). Returns a single entity. A code WHO does not know comes back as a "not found" error, never an empty record. When NOT to use: to find a code from words, use…

ParameterTypeDescription
codestringICF category code (e.g. "d450", "b28013")
languagestringLanguage code (default: en). Returns the source's OFFICIAL translation when it exists (e.g. 'pt' for official Portuguese); content is never machine-translated.
uristringICF entity URI as returned by icf_search or a previous icf_lookup

loinc_details LOINC Code Details

Get detailed information about a specific LOINC code. Use this tool to: - Get the full name and description of a LOINC code - Find the component, property, timing, and system - Check the scale type and method Provide a LOINC number in format "XXXXX-X" (e.g., "2339-0" for Glucose).

ParameterTypeDescription
loinc_num *stringLOINC number (e.g., "2339-0")

loinc_answers LOINC Answer Lists

Get the list of valid answers for a LOINC questionnaire item. Use this tool to: - Find valid response options for survey questions - Get answer codes (LA…) for data entry validation - Get the item scores of scored instruments (e.g. PHQ-9: "Not at all" = 0 … "Nearly every day" = 3) Returns each answer with its LOINC answer code (LA…), text, display order and score (null when the list has none). A valid LOINC code without a defined answer list (e.g. a numeric lab such as 2339-0) returns an empty list; a code LOINC does not know returns a "not found" error. Only applicable to LOINC codes…

ParameterTypeDescription
loinc_num *stringLOINC number (e.g., "2339-0")

loinc_panels LOINC Panel Structure

Get the structure of a LOINC panel or form. Use this tool to: - See all tests included in a panel (e.g., CBC, metabolic panel) - Get the structure of assessment forms - Find related observations grouped together Returns the list of LOINC codes that make up the panel.

ParameterTypeDescription
loinc_num *stringLOINC number (e.g., "2339-0")

rxnorm_concept RxNorm Concept Details

Get detailed information about a specific RxNorm concept by RxCUI. Use this tool to: - Get the full name and synonyms for a drug - Check the concept status (active, remapped, etc.) - View related concepts (ingredients, brands, forms) Provide an RxCUI (RxNorm Concept Unique Identifier) like "161" — as a string of digits or as an integer.

ParameterTypeDescription
rxcui *RxNorm Concept Unique Identifier (string of digits or integer, e.g. "161" or 161)
include_relatedInclude related concepts (ingredients, brands, dose forms). Default false; true/false, also accepted as the strings "true"/"false"

rxnorm_ingredients RxNorm Drug Ingredients

Get active ingredients for a drug by RxCUI. Use this tool to: - Find the active ingredients in a medication - Check for single vs. multiple ingredient products - Identify the generic components of brand drugs Returns ingredient RxCUIs and names.

ParameterTypeDescription
rxcui *RxCUI of the drug

rxnorm_classes RxNorm Drug Classes

Get therapeutic and pharmacologic classes for a drug. Use this tool to: - Find the drug class (e.g., "Beta-blockers", "NSAIDs") - Identify therapeutic categories - Look up mechanism of action classifications Returns class IDs, names, and classification sources.

ParameterTypeDescription
rxcui *RxCUI of the drug

rxnorm_ndc RxNorm / NDC Mapping

Map between RxNorm concepts and National Drug Codes (NDC). Use this tool to: - Get all NDC codes for a drug (by RxCUI) - Find the RxCUI for an NDC code - Cross-reference between coding systems Provide either an RxCUI to get NDCs, or an NDC to get the RxCUI.

ParameterTypeDescription
ndcstringNDC code to look up RxCUI (alternative to rxcui)
rxcuiRxCUI to get NDC codes for

mesh_descriptor MeSH Descriptor Details

Get detailed information about a MeSH descriptor by ID. Use this tool to: - Get the full definition (scope note) of a MeSH term - View tree numbers showing hierarchy location - See related concepts and synonyms Provide a MeSH Descriptor ID like "D015242" (Ofloxacin). NLM publishes MeSH in English; `language` returns the heading in that language only when the NLM record carries it (rare: 13 Portuguese labels in the whole dataset, measured 2026-11-28), otherwise in English, and `label_language` says which. Content is never machine-translated.

ParameterTypeDescription
mesh_id *stringMeSH Descriptor ID (e.g., D015242, D003920)
languagestringLanguage code (default: en). MeSH is published by NLM in English; another language is returned only where the NLM record carries it (rare), otherwise English. Never machine-translated.

mesh_tree MeSH Tree Locations

Get the tree hierarchy location(s) for a MeSH descriptor. Use this tool to: - See where a term fits in the MeSH hierarchy - Understand broader/narrower relationships - Find related terms in the same branch MeSH tree numbers show the hierarchical path (e.g., C14.280.647 for Myocardial Infarction).

ParameterTypeDescription
mesh_id *stringMeSH Descriptor ID (e.g., D015242, D003920)

mesh_qualifiers MeSH Allowable Qualifiers

Get allowed qualifiers (subheadings) for a MeSH descriptor. Use this tool to: - Find which qualifiers can be combined with a descriptor - Build precise MeSH search queries - Understand aspects that can be specified Qualifiers refine descriptors (e.g., "Diabetes Mellitus/drug therapy").

ParameterTypeDescription
mesh_id *stringMeSH Descriptor ID (e.g., D015242, D003920)

map_icd10_to_icd11 Map ICD-10 to ICD-11

Authoritative ICD-10 → ICD-11 mapping using WHO transition tables (release 2025-01, bundled with the server). Returns the primary 1:1 ICD-11 category for the ICD-10 code plus any alternative ICD-11 candidates that WHO documents (some ICD-10 concepts split into multiple ICD-11 entities). For each mapping, includes the ICD-11 code, title, chapter, and the Foundation URI / Linearization URI for navigating to the full entity definition. Use this for clinical coding, billing migration, retrospective analysis, and any workflow that needs authoritative mapping rather than text-search candidates.…

ParameterTypeDescription
icd10_code *stringICD-10 code to query in the ICD-11 search index (e.g., E11, I21.0, J18.9)

validate_codes Validate Medical Codes

Validate a mixed batch of medical codes against their source terminologies. Useful for retrospective analysis of legacy databases — flag codes that no longer exist, surface ICD-10 → ICD-11 replacements, and grade activity status where the terminology exposes it. For each input `{ code, terminology }`, returns: - **valid**: whether the code exists in the source terminology. - **active**: whether the code is currently active. Null when the source doesn't expose an explicit active/inactive distinction at category level (CID-10, ATC, ICD-11, ICF, RxNorm, MeSH all return null today; LOINC retu…

ParameterTypeDescription
codes *arrayList of code+terminology pairs to validate. Hard cap of 50 per call to keep total latency under ~10 s given upstream rate limits.

find_equivalent Find Equivalents Across Terminologies

Ranked unified search for equivalent terms across multiple medical terminologies. Use this tool to: - Find the same concept in different coding systems - Compare how terminologies represent a concept - Support terminology mapping and data integration Searches across: ICD-11, LOINC, RxNorm, MeSH and ICF (WHO functioning and disability; coded categories only). Set `target_terminologies` to limit which are searched, or set `source_terminology` to exclude one (e.g. when you already have a code from that terminology and want equivalents elsewhere). The two combine: source is subtracted from targe…

ParameterTypeDescription
term *stringMedical term to search (e.g., "diabetes", "aspirin")
limitintegerMaximum candidates returned PER terminology (1-10, default 5). This is a cap, not a page: the live fan-out has no stable cursor across five upstreams, so raise the limit instead of paging.
source_terminologystringIf set, this terminology is excluded from the search. Use this when the term came from this terminology and you want equivalents in the others. Combines with target_terminologies by subtraction (sourc…
target_terminologiesarrayLimit the search to these terminologies. If omitted, all five are searched (ICD-11, LOINC, RxNorm, MeSH, ICF).

match_value_set Match Terms to a Value Set

For each free-text term, pick the best code FROM A VALUE SET YOU PROVIDE — the question "which code of this value set fits this field?". Send `terms` (up to 50) and `value_set`: the allowed codes as `{ code, terminology }` pairs (up to 100; any of icd11, icd10, cid10, loinc, rxnorm, mesh, atc, icf, mixed if needed). Only those codes can be suggested — never a code outside the set. How it works: every member is first confirmed at its source (the validate_codes logic), giving its official title and FHIR `coding`; members that do not exist or cannot be checked are listed in `value_set.uncon…

ParameterTypeDescription
terms *arrayFree-text terms to place in the value set (e.g. the field contents of your data). Up to 50.
value_set *arrayThe allowed codes, as code+terminology pairs (any of the validate_codes terminologies, mixed if needed). Only these codes can be suggested. Up to 100; each is confirmed at its source before ranking.
max_candidatesintegerRanked members returned per term (1-10, default 3).

compose_functioning Compose a Functional Concept Across Terminologies

Code ONE functional concept ("walking speed", "climbing stairs", "using transportation") in the three systems a clinical record needs, each in its role: the function or activity (ICF), the measure (LOINC observation) and the condition (ICD-11), plus the ICD-11 entity the WHO itself ties to each ICF category. Returns four roles: - `functioning`: ICF categories, each with `icd11_counterpart` — the ICD-11 chapter V entity the WHO links to it (d450 Walking → VW13 Walking, the same WHO entity). This link is READ FROM THE WHO (`same_entity` or `index_term`), never guessed; null when the WHO tie…

ParameterTypeDescription
term *stringA functional concept in English (e.g. "walking speed", "climbing stairs", "using transportation").
limitintegerCandidates returned per role (1-5, default 3).

harmonize_terms Harmonize Free-Text Terms to Standard Codes

Map a LIST of free-text clinical terms to standard codes in one call, with ranked candidates and a confidence label for each — the building block of a reviewable crosswalk. Use this tool to: - Harmonize a column of diagnoses, drugs or lab names from a dataset to ICD-11 / RxNorm (+ ATC) / LOINC - Triage which terms map cleanly (exact / strong) and which need a person (needs_review) - Build a crosswalk you can audit: every row keeps its candidates, scores and sources Give each term its `domain`: diagnosis → ICD-11; drug → active RxNorm concepts (ingredients first) plus the ATC classes of…

ParameterTypeDescription
terms *arrayTerms to harmonize, each with its domain. Up to 50 per call; repeated term+domain pairs are looked up once.
max_candidatesintegerCandidates kept per term, best first (1-5, default 3).

atc_classify ATC Classification for a Drug

Look up the WHO ATC (Anatomical Therapeutic Chemical) classification(s) for a drug by name. Use this tool to: - Find the ATC code for a medication (e.g., "metformin" → A10BA02) - Identify the therapeutic and pharmacological class hierarchy - Cross-reference drugs with their international ATC codes Returns one entry per ATC code the drug belongs to. A single-ingredient drug typically maps to one substance-level code; combination products map to multiple. ATC codes are international (WHO Collaborating Centre); this tool retrieves them via NLM RxClass. Input is a drug NAME (brand or generic,…

ParameterTypeDescription
drug_name *stringDrug name to classify (brand or generic, e.g., "metformin")

atc_lookup ATC Code Details

Look up an ATC code at level 1-4 to get its name and hierarchy level. Use this tool to: - Resolve an ATC code (e.g., "A10BA") to its class name ("Biguanides") - Confirm a code exists in the current ATC index - Identify the level (anatomical / therapeutic / pharmacological / chemical) Accepts codes 1-5 characters long: "A" (anatomical), "A10" (therapeutic), "A10B" (pharmacological), "A10BA" (chemical). Substance-level codes (7 chars, e.g., "A10BA02") are not exposed by this endpoint — use atc_classify with the drug name to retrieve the substance code.

ParameterTypeDescription
atc_code *stringATC code at level 1-4 (1-5 chars). Substance-level codes (7 chars, e.g., A10BA02) are not exposed by this endpoint — use atc_classify with the drug name instead.

atc_members ATC Class Members

List the drugs (substances) that belong to an ATC class. Use this tool to: - Enumerate all members of a therapeutic class (e.g., "A10BA" → metformin, phenformin) - Build a list of drugs sharing a pharmacological mechanism - Explore an ATC subtree at any level Each member includes its substance-level (7-char) ATC code via source_atc_code, useful for disambiguation when the queried class is at level 1-4. RxNorm's catalog is US-centric; the ATC class names and codes themselves are international.

ParameterTypeDescription
atc_code *stringATC code at any level. Higher levels (1-4) return all member substances; level 5 returns the single substance.

cid10_lookup Consultar Código CID-10

Look up a specific CID-10 code and return its Portuguese name. Use this tool to: - Resolve a code to its Brazilian description ("I21" → "Infarto agudo do miocárdio") - Confirm a 3-char category or 4-char subcategory exists in CID-10 - Retrieve gender / cause-of-death restriction flags when applicable Accepts both dotted ("A00.1") and undotted ("A001") forms; returns the canonical display.

ParameterTypeDescription
code *stringCID-10 code (e.g., "A00", "A00.1", "A001", "I21"). Dotted and undotted forms both accepted.

cid10_chapters Capítulos da CID-10

List the 22 chapters of CID-10 with their code ranges and Portuguese titles. Use this tool to: - See the top-level structure of CID-10 (chapters I-XXII, e.g., "I. Algumas doenças infecciosas e parasitárias", "IX. Doenças do aparelho circulatório") - Map a code to its chapter by code range (e.g., I00-I99 → chapter IX) - Build a navigable table of contents for downstream tooling Returns 22 entries — CID-10 V2008 has not been updated since 2008.

cid10_chapter Capítulo da CID-10

Get one CID-10 chapter and its constituent groups (e.g., "Chapter IX → I00-I02 Febre reumática aguda, I05-I09 Doenças reumáticas crônicas do coração, ..."). Use this tool to: - Drill from a chapter into its groups (code ranges with Portuguese titles) - Build hierarchical browsers - Find which group contains a code range Provide the chapter number `num` as an integer 1-22 (chapter I = 1, IX = 9). Numbers outside 1-22 are rejected with a validation error. Returns the chapter (title and code range) plus ALL its groups in one response — no pagination; the 22 chapters hold 275 groups in…

ParameterTypeDescription
num *integerChapter number (1-22). CID-10 V2008 has 22 chapters.

terminology_versions Terminology Versions

List the current version, release date, publisher, source URL, and update cadence of every terminology this server queries against. Useful for pipeline maintainers who need to: - Confirm which release of ICD-11 / ICF / LOINC / RxNorm / MeSH / ATC the server is querying before a batch run. - Verify the bundled CID-10 (frozen at V2008) and ICD-10 → ICD-11 transition tables (currently 2025-01) match expectations. - Cite the data version in research artifacts. Pass `terminology` to filter to a single entry; otherwise the full set of 8 is returned. The ICD-10 → ICD-11 version reads live from…

ParameterTypeDescription
terminologystringFilter to a single terminology. Omit to return all 8.

terminology_diff Terminology Version Diff

Report what diff data is available between two versions of a terminology. For most terminologies this is **guidance only** — the server doesn't ship historical snapshots, so the tool points at the publisher's official changelog and explains the cadence. `bundled_versions` lists the version(s) this server actually has on hand. For **ICD-10 vs ICD-11** specifically, the tool surfaces a real cross-revision summary from the bundled WHO transition tables (the ICD-10 → ICD-11 case is a structural diff between two WHO revisions). Use `terminology: "icd10"` with no `to_version` to get the cross-…

ParameterTypeDescription
terminology *stringWhich terminology to report on.
from_versionstringVersion you have data from. Optional; behavior depends on terminology.
to_versionstringVersion you want to compare to. Optional.

fetch Deep Research Document

Returns the full document for an id obtained from `search`, as { id, title, text, url, metadata }: `text` is the readable content (Markdown) and `url` the canonical public page to cite. Companion of `search` in the OpenAI Deep Research contract, over the medical terminologies (CID-10 categories and chapters, ICD-11, LOINC, RxNorm, MeSH, terminology version records) catalog. Only ids returned by `search` are valid; an unknown id returns an error. The terminology tools (`icd11_*`, `cid10_*`, `loinc_*`, `rxnorm_*`, `mesh_*`, `atc_*`, `map_*`, `find_equivalent`, `validate_codes`) remain the tools…

ParameterTypeDescription
id *stringIdentifier of a document returned by `search`