Medical Terminologies MCP

by sidneybissoli

Not rated
GitHub

About

Unified access to global medical terminologies: ICD-11, SNOMED CT, LOINC, RxNorm, MeSH. 27 tools for medical coding, terminology lookup, and crosswalk mappings.

Details

Author
sidneybissoli
Categories
Other, Database, Knowledge Base

Setup

Install Medical Terminologies MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/sidneybissoli/medical-terminologies-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Unified access to global medical terminologies: ICD-11, SNOMED CT, LOINC, RxNorm, MeSH. 27 tools for medical coding, terminology lookup, and crosswalk mappings.

A Model Context Protocol (MCP) server providing unified access to major global medical terminologies:

- ICD-11- International Classification of Diseases (WHO)
- SNOMED CT- Systematized Nomenclature of Medicine(opt-in; requires self-hosted Snowstorm)
- LOINC- Logical Observation Identifiers Names and Codes
- RxNorm- Normalized names for clinical drugs (NIH)
- MeSH- Medical Subject Headings (NLM)
- ATC- Anatomical Therapeutic Chemical classification (WHO Collaborating Centre, served via NLM RxClass)
- CID-10- Brazilian Portuguese translation of ICD-10 (DataSUS V2008, bundled)

- "What's the ICD-11 code for type 2 diabetes?"icd11_search
- "Map ICD-10 code E11 to ICD-11."map_icd10_to_icd11
- "What does LOINC 2339-0 measure?"loinc_details
- "Qual o código CID-10 para infarto agudo do miocárdio?"cid10_search

The answers come from authoritative sources (WHO, NLM, NIH, DataSUS) — real codes and mappings, not guesses from training data.

- 31 default tools (37 with SNOMED enabled) for medical terminology lookup
- 3 MCPPromptsthat orchestrate tool calls into named workflows (find-medical-code,drug-info,cid10-portuguese-lookup) — clients render these as one-click user actions
- 4 MCPResourcesfor in-process reference content (info://server,info://cid10/chapters,info://licenses,info://stats) — sub-millisecond reads (exceptinfo://statswhich round-trips to the StatsCounter Durable Object on the hosted endpoint)
- Multi-terminology support in a single server
- Cross-terminology mapping and search
- Provenance on every response(since v1.8.0): each successful tool result carries a machine-readable provenance block — source, canonical URL, data vintage, real extraction instant (cache hits keep the original fetch instant), ready-to-use citation, and license — instructuredContent.provenance+attribution, mirrored in_metaundercom.sidneybissoli.medical/, with a compact text footer for text-only clients. Multi-source responses (find_equivalent,validate_codes) carry one block per source; server-computed ranking fields are flagged as derived
- Built-in caching for improved performance
- Rate limiting to respect API limits
- Detailed responses with rich formatting
- Two transports:stdio(default; for Claude Desktop, IDE clients) andStreamable HTTP(the hosted Cloudflare Worker athttps://medical.sidneybissoli.com/mcp, or your own instance ofworker/)

This server isnota clinical-care decision tool — practicing clinicians have specialized assistants (UpToDate AI, OpenEvidence, EHR-integrated tools) for that. The actual audience is researchers, public-health analysts, clinical informatics developers, and educators who need programmatic access to authoritative terminology data.

A public Cloudflare Workers deployment runs at:

Connect via the MCP Inspector or any Streamable HTTP MCP client:

npx @modelcontextprotocol/inspector --transport streamable-http \ --server-url https://medical.sidneybissoli.com/mcp

Or install via Smithery, which proxies the same endpoint through their gateway:

npx -y smithery mcp add sidneybissoli/medical-terminologies-mcp

The hosted instance has WHO credentials configured, so all 31 default tools work without any setup on your side. For your own deployment (e.g. corporate network, different region, custom WHO credentials), see theInstallationandHosted on Cloudflare Workerssections below.

npm install -g medical-terminologies-mcp

Add to your Claude Desktop configuration file:

macOS:~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "medical-terminologies": { "command": "npx", "args": ["-y", "medical-terminologies-mcp"], "env": { "WHO_CLIENT_ID": "your-who-client-id", "WHO_CLIENT_SECRET": "your-who-client-secret" } } } }

¹ Required for ICD-11 tools. Get credentials at:https://icd.who.int/icdapi.

² SeeSNOMED CT setup (advanced)below. LOINC, RxNorm, and MeSH need no configuration.

The server runs over stdio by default — that's what Claude Desktop and IDE clients expect. The Streamable HTTP transport is served by the Cloudflare Worker inworker/(an instance of the maintainer's Fase 0 hosting template). The--httpflag of the Node entry was removed in v1.6.0 — if you need a local HTTP endpoint, run the Worker locally:

npm ci && cd worker && npm ci npm run dev # wrangler dev on http://localhost:8787 # Inspector via HTTP npx @modelcontextprotocol/inspector --transport streamable-http --server-url http://localhost:8787/mcp

Hosted endpoints (production and local alike):

- POST /mcp— JSON-RPC over Streamable HTTP (the MCP protocol). Stateless mode: each request is independent.
- GET /health— liveness probe returning{ status, name, version, tool_count, uptime_s }.
- GET /status— version + deploy metadata.GET /metrics— aggregated per-tool usage.
- GET /statsandGET /stats/badge— public tool-call counter (since 2026-05-13) and its shields.io badge.
- GET /.well-known/mcp/server-card.json— static server card for registry scanners.
- CORS is permissive (
) so browser clients (e.g. the MCP Inspector web UI) can connect directly.

The production deployment is the Cloudflare Worker inworker/, config inworker/wrangler.jsonc, CI deploy in.github/workflows/deploy-worker.yml(auto-runs on every push tomain).

npm ci && npm run build:worker-lib cd worker && npm ci npx wrangler login # one-time, browser flow npx wrangler deploy # publishes to <name>.<account>.workers.dev # Set ICD-11 secrets so those 5 tools work: npx wrangler secret put WHO_CLIENT_ID npx wrangler secret put WHO_CLIENT_SECRET

Note:worker/wrangler.jsoncpins the maintainer'saccount_idand custom domain route — remove/replace both for your own deployment.

Why Workers: zero cold start at the edge, $5/mo flat for 10M requests (free tier covers up to 100k req/day), and no VMs to size or restart. The template ships per-IP rate limiting and a usage-stats Durable Object; the upstream-facing cache/rate-limiter are per-isolate (PROGRESS.md Phase 11.9 Stage 2 tracks the KV/DO upgrade).

After your Worker is live, register the URL on Smithery:
- Visit
https://smithery.ai→Publish → MCP(orhttps://smithery.ai/new).
- Pick theURLsubmission path (Smithery deprecated container hosting in 2024 — URL is the supported flow now).
- Pastehttps://<your-worker>.workers.dev/mcp. Smithery's gateway scans for compliance and proxies traffic.

Available Tools (31 by default, 37 with SNOMED enabled)

The server never machine-translates terminology content — but several sources publish official translations, and the tools expose them:

- CID-10 is natively Portuguese:cid10_search/cid10_lookup/cid10_chapter(s)serve the DataSUS V2008 dataset (the CID-10 the Brazilian SUS uses operationally).
- ICD-11 in official Portuguese: passlanguage: "pt"toicd11_search/icd11_lookupto search and read WHO's official pt-BR linearization labels.
- MeSH: passlanguage: "pt"tomesh_search/mesh_descriptorto request NLM's official translations where they exist.
- SNOMED CT(when enabled):languagerequests the descriptions loaded in your Snowstorm edition (e.g. a national extension's pt-BR refset).

If a source has no official translation for an entry, you get the source language back — never a machine translation.

SNOMED CT Tools (5, disabled by default)

These are only registered whenENABLE_SNOMED_TOOLS=true. SeeSNOMED CT setup (advanced).

Crosswalk Tools (5 —map_snomed_to_icd10requires SNOMED)

WHO Anatomical Therapeutic Chemical classification, served through NLM RxClass (free, no auth). The WHOCC base itself requires a paid subscription, but RxClass envelopes the same code/name pairs.

Brazilian Portuguese translation of ICD-10 (DataSUS V2008). Bundled as a static dataset — no HTTP calls. The Brazilian SUS uses CID-10 V2008 operationally; for the international ICD-11 (current WHO revision), use the ICD-11 tools above.

Surface what version of each terminology this server queries against today — useful when running batch validation against a pinned release or when investigating an unexpected lookup miss after an upstream update.

The samples below are the actual formatted output the tools produce — the text body of theCallToolResult. Tools also return astructuredContentobject matching each tool'soutputSchemafor programmatic consumers.

loinc_search— query: "glucose", max_results: 3

## LOINC Search Results for "glucose" Found 1024 total results (showing 3): 1. 74790-7 - Glucose challenge (hydrogen breath test) panel - Exhaled gas Component: Glucose challenge panel | Method: - 2. 104708-3 - Deprecated Estimated average glucose [Moles/volume] in Blood Component: Estimated average glucose | Property: SCnc 3. 97510-2 - Glucose measurements in range out of Total glucose measurements during reporting period Component: Glucose measurements in range/Total glucose measurements | Property: NFr | Method: Calculated

total_count(1024) reflects every match in the NLM Clinical Tables index, not just the page returned. Bumpmax_results(max 50) to see canonical codes like2339-0(Glucose [Mass/volume] in Blood); the API's relevance ranking puts panels and derived measurements above plain blood-glucose at small page sizes.

rxnorm_ingredients— rxcui: "6809" (metformin)

# Ingredients for RxCUI 6809 Found 18 ingredient(s): | RxCUI | Name | Type | |-------|------|------| | 6809 | metformin | Single Ingredient | | 1007411 | chlorpropamide / metformin | Multiple Ingredient | | 1043562 | metformin / saxagliptin | Multiple Ingredient | | 1243019 | linagliptin / metformin | Multiple Ingredient | | 1486436 | dapagliflozin / metformin | Multiple Ingredient | | 1545149 | canagliflozin / metformin | Multiple Ingredient | | 1664314 | empagliflozin / metformin | Multiple Ingredient | | 729717 | metformin / sitagliptin | Multiple Ingredient | | ... | (10 more combinations) | Multiple Ingredient |

For an RxCUI that is itself an ingredient (TTY=IN), the tool returns that ingredient plus every multi-ingredient (TTY=MIN) concept that includes it. Use this to enumerate combination products built around a substance.

mesh_descriptor— mesh_id: "D006973" (Hypertension)

# Hypertension MeSH ID: D006973 ## Scope Note Persistently high systemic arterial BLOOD PRESSURE. Based on multiple readings (BLOOD PRESSURE DETERMINATION), hypertension is currently defined as when SYSTOLIC PRESSURE is consistently greater than 140 mm Hg or when DIASTOLIC PRESSURE is consistently 90 mm Hg or more. ## Tree Numbers - C14.907.489 ## Concepts - Hypertension (preferred) ## Allowed Qualifiers 35 qualifier(s) allowed. Use mesh_qualifiers for details.

The scope note comes from the descriptor'spreferred concept, not its annotation field (which is an indexer-facing note). Tree numbers are the navigable path into MeSH's controlled hierarchy —C14.907.489places Hypertension under Cardiovascular Diseases → Vascular Diseases.

- ICD-11 lookup:icd11_searchwith a clinical term → pick the result →icd11_lookupwith the code for full details, oricd11_hierarchyto walk parents/children.
- Drug pipeline:rxnorm_searchfor a brand or generic name →rxnorm_conceptfor the canonical record →rxnorm_ingredientsandrxnorm_classesfor downstream analysis.
- Cross-terminology scaffolding:find_equivalentwith a clinical term searches ICD-11, LOINC, RxNorm, MeSH, and (when enabled) SNOMED in one call. Use it to bootstrap mappings; the pairwisemap_tools refine them.
- ICD-10 → ICD-11 (text search, not authoritative):map_icd10_to_icd11does honest text search against WHO ICD-11. Real WHO transition tables are tracked inPROGRESS.md Phase 13.1.

The 5 SNOMED tools (snomed_search,snomed_concept,snomed_hierarchy,snomed_descriptions,snomed_ecl) plus the SNOMED-dependent crosswalk tool (map_snomed_to_icd10) aredisabled by default. With them disabled, the server registers 31 tools instead of 37;find_equivalentstill works and skips the SNOMED branch with an explanatory note.

The reason: as of 2026-05-08, the public IHTSDO Snowstorm endpoint that this project historically called (https://browser.ihtsdotools.org/snowstorm/snomed-ct/...) returns HTTP 410 Gone for every path. Without a working backend, registering these tools surfaces 6 guaranteed-broken tools to every client.
-

Confirm your SNOMED CT license.SNOMED CT use requires an SNOMED International (IHTSDO) license. Member country residents typically have one through their national release center; non-members can obtain an Affiliate license. Seehttps://www.snomed.org/snomed-ct/get-snomed.

Run a Snowstorm instance.SNOMED International publishes Snowstorm as open source (IHTSDO/snowstorm) and as a Docker image (snomedinternational/snowstorm). Self-hosting requires importing an RF2 release file (provided to license holders).

{ "mcpServers": { "medical-terminologies": { "command": "npx", "args": ["-y", "medical-terminologies-mcp"], "env": { "WHO_CLIENT_ID": "...", "WHO_CLIENT_SECRET": "...", "ENABLE_SNOMED_TOOLS": "true", "SNOMED_BASE_URL": "https://my-snowstorm.example.com/snowstorm/snomed-ct", "SNOMED_LANGUAGE": "en" } } } }

SNOMED_BASE_URLshould point at the base under which Snowstorm exposes its/MAIN/conceptsand related endpoints.SNOMED_LANGUAGEaccepts standardAccept-Languagetags (e.g.pt,es,pt-BR,en;q=0.8) — Snowstorm returns localized terms when the branch has them and falls back to English otherwise.

Restart the MCP clientso the server picks up the env vars.

If you setENABLE_SNOMED_TOOLS=truewithout configuring a working Snowstorm, the SNOMED tools will register but every call will fail at the network layer.

The MIT license covers the server code and server-maintained metadata only —notthe terminology content served through it, andnotthe two bundled datasets (cid10.json,icd10-to-icd11.json), which remain under their own terms. The consolidated notice ships with the package asNOTICE.md; every tool response carries a per-source provenance block with the applicable license.

ICD-11 content is provided under theCreative Commons Attribution-NoDerivatives 3.0 IGO license (CC BY-ND 3.0 IGO), per theICD-11 Terms of Use and License Agreement.

- Required citation:"International Classification of Diseases, Eleventh Revision (ICD-11), World Health Organization (WHO) 2019https://icd.who.int/browse11. Licensed under the Creative Commons Attribution-NoDerivatives 3.0 IGO licence (CC BY-ND 3.0 IGO)."
- This server always serves ICD-11 codes and titles together with their URIs, verbatim; non-English labels are WHO's own official translations (never machine-translated)
- WHO may terminate the license at any time by notice (§4.7)
- API access requires registration at
https://icd.who.int/icdapi

WHO ICD-10 → ICD-11 transition tables (bundled)

Format conversion (TSV → JSON, content unaltered) of the tables WHO publishes within the ICD-11 release. © World Health Organization, under the ICD-11 Terms of Use — not under this project's MIT license. WHO's guidance: the tables show correspondence between revisions and"are not intended for directly converting data from one revision to the other."*

© World Health Organization; Brazilian Portuguese translation © CBCD / Faculdade de Saúde Pública da USP; electronic files published by DataSUS (Ministério da Saúde do Brasil). DataSUS/CBCD permission: developers may use the fileswith due credit and at no charge— this server serves them free with credit in every response. Not under this project's MIT license.

SNOMED CT use requires an IHTSDO (SNOMED International) license. The SNOMED tools in this server are disabled by default and only enabled by operators with a valid license and a self-hosted Snowstorm instance — seeSNOMED CT setup (advanced).

- Member countries have national licenses
- Affiliate licenses available for others (Brazil is not a member country)
- More info:
https://www.snomed.org/get-snomed

This material contains content from LOINC (http://loinc.org). LOINC is copyright © Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license athttp://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc.

- Served via the free NLM Clinical Tables API; every code comes with its official display name
- Terms with third-party copyright are served with their notice passed through verbatim

RxNorm is produced by the U.S. National Library of Medicine; the RxNav APIs serve non-proprietary, public-domain RxNorm content free of charge.

This product uses publicly available data from the U.S. National Library of Medicine (NLM), National Institutes of Health, Department of Health and Human Services; NLM is not responsible for the product and does not endorse or recommend this or any other product.

ATC classification © WHO Collaborating Centre for Drug Statistics Methodology (https://atcddd.fhi.no/), retrieved via NLM RxClass and served verbatim. This server never redistributes the WHOCC ATC/DDD index.

MeSH is a U.S. government work served under theNLM Terms and Conditions. Courtesy of the U.S. National Library of Medicine.

This server implements rate limiting to respect API providers:

git clone https://github.com/SidneyBissoli/medical-terminologies-mcp.git cd medical-terminologies-mcp npm install npm run build
npx @modelcontextprotocol/inspector node dist/index.js

Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request

This project is licensed under the MIT License - see theLICENSEfile for details.

Note: While this software is MIT licensed, the medical terminologies accessed through it have their own licenses (seeTerminology Licensesabove).

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.