mcpField
I
icd-mcp

icd-mcp

Remote
github.com/stayceHealth2Updated 17w ago
Repository

About icd-mcp

icd-mcp connects AI assistants to WHO ICD-10 and ICD-11 data for code lookup, search, validation, and classification browsing. It supports clinical-text autocoding through the WHO ICD-11 engine and can be used by coders, developers, and researchers.

Key features

  1. 01Look up ICD-10 and ICD-11 codes
  2. 02Search and autocode ICD-11 text
  3. 03Browse classification hierarchies
  4. 04Validate codes and trace ancestors
  5. 05Reference coding rules and overviews

Use cases

  1. 01Find codes from clinical descriptions
  2. 02Check a code's definition and validity
  3. 03Explore code hierarchy and chapters
  4. 04Consult coding conventions

MCP support

Exposes 12 actions through an MCP server, including lookup, search, autocoding, validation, and WHO API access. MCP-compatible clients can connect to its hosted endpoint or a self-deployed instance.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://icd-mcp-server.staycek.workers.dev/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

1
ParameterTypeRequiredDescription
codestringNoICD code (e.g., A00, J18.9, BA00)
pathstringNoAPI path for raw requests
querystringNoSearch terms (ICD-11 only)
actionenumYeslookup | search | chapters | children | api | help
chapterstringNoChapter code to filter by
versionenumNoICD version: 10 or 11 (default: 11)10 | 11
max_resultsnumberNoMaximum results (default 10)

Details

From the project README

ICD MCP Server

Give any AI assistant instant access to the WHO ICD-10 and ICD-11 classification systems — the global standard behind every diagnosis code, hospital bill, and mortality statistic on earth.

12 actions. Both ICD versions. One tool call.

CI MCP Cloudflare Workers License: MIT

https://mcp-icd.medseal.app/mcp

What Can It Do?

Autocode clinical text into ICD-11 codes

Paste free-text clinical descriptions and get the right code back. No more manual lookups.

{"action": "autocode", "query": "acute bronchitis with fever"}
→ CA20 Acute bronchitis (92.3% confidence)

{"action": "autocode", "query": "patient presents with chest pain and shortness of breath"}
→ MD81 Chest pain (87.1% confidence)
Look up any ICD-10 or ICD-11 code instantly

Get definitions, coding notes, inclusions, exclusions — everything a coder needs.

{"action": "lookup", "code": "BA00"}
→ BA00: Lobar pneumonia — full definition, coding notes, inclusions/exclusions

{"action": "lookup", "code": "J18.9", "version": "10"}
→ J18.9: Pneumonia, unspecified (ICD-10)
Search by keyword

Don't know the code? Describe it and get ranked results.

{"action": "search", "query": "type 2 diabetes with kidney complications"}
→ Ranked ICD-11 results with codes and titles

{"action": "search", "query": "melanoma", "chapter": "02", "max_results": 5}
→ Filtered to neoplasm chapter
Browse the classification like a tree

Navigate interactively — see any code's parent, children, and where it sits in the hierarchy.

{"action": "browse"}
→ All 28 ICD-11 chapters (or 21 ICD-10 chapters)

{"action": "browse", "code": "BA00"}
→ Parent context + sub-categories with ▸ expansion markers
Trace a code's full lineage

Walk from any leaf code all the way up to its chapter root.

{"action": "ancestors", "code": "BA01.0"}
→ BA01.0 → BA01 → BA0Y-BA2Z → Diseases of the respiratory system → Chapter 12
Validate codes instantly

Quick yes/no — is this a real code? Is it a leaf or a category?

{"action": "validate", "code": "BA00"}
→ Valid ICD-11 code, category level, has sub-codes

{"action": "validate", "code": "XYZ99"}
→ Not a valid ICD-11 code
Built-in coding rules reference

No need to leave the conversation for coding guidelines.

{"action": "coding_rules", "topic": "extension_codes"}
→ Full guide to ICD-11 severity, temporality, anatomy, histopathology codes

{"action": "coding_rules", "topic": "clustering"}
→ How to combine codes with & and / operators

{"action": "coding_rules", "topic": "dagger_asterisk"}
→ ICD-10 etiology/manifestation dual coding system

Available topics: extension_codes, clustering, sequencing, dagger_asterisk, postcoordination

Get the big picture

High-level summaries of each classification system — chapter tables, key concepts, what's different.

{"action": "overview"}
→ ICD-11: 28 chapters, postcoordination, extension codes, what changed from ICD-10

{"action": "overview", "version": "10"}
→ ICD-10: 21 chapters, code ranges, dagger/asterisk system

All 12 Actions at a Glance

ActionWhat it doesICD-10ICD-11
lookupFull code details with definitionsYesYes
searchFind codes by keyword-Yes
autocodeClinical text → best matching code-Yes
browseNavigate the hierarchy interactivelyYesYes
chaptersList all classification chaptersYesYes
childrenGet sub-codes under any codeYesYes
ancestorsTrace lineage up to chapter rootYesYes
validateCheck if a code exists and its levelYesYes
coding_rulesCoding conventions referenceYesYes
overviewClassification system summaryYesYes
apiRaw WHO API accessYesYes
helpAction reference and examples--

Who Is This For?

  • Health IT developers building clinical apps, EHRs, or coding tools
  • Medical coders who want AI-assisted code lookup and validation
  • Health data analysts exploring classification structures
  • Researchers working with WHO mortality/morbidity data
  • AI/LLM builders adding medical coding capabilities to agents
  • Anyone transitioning from ICD-10 to ICD-11 and needing both systems side by side

Quick Start

Use the hosted server (fastest)

Add to your Claude Desktop claude_desktop_config.json:

{
  "mcpServers": {
    "icd": {
      "type": "url",
      "url": "https://mcp-icd.medseal.app/mcp"
    }
  }
}

Or connect from any MCP-compatible client using https://mcp-icd.medseal.app/mcp.

Deploy your own
  1. Clone and install:

    git clone https://github.com/stayce/icd-mcp-cloudflare
    cd icd-mcp-cloudflare
    npm install
    
  2. Get WHO API credentials (free):

  3. Set secrets and deploy:

    wrangler secret put WHO_CLIENT_ID
    wrangler secret put WHO_CLIENT_SECRET
    npm run deploy
    

That's it. Runs globally on Cloudflare's edge network.


Why This MCP?

Token efficient. One tool, 12 actions. No bloated tool lists eating context windows.

Both ICD versions. ICD-10 is still used for billing everywhere. ICD-11 is the future. You need both. Default is ICD-11; add "version": "10" for ICD-10.

Official WHO data. Direct from the WHO ICD-API — not a stale copy or a scraped dataset.

Autocode is the real deal. The WHO's own autocoding engine, not a keyword hack. Give it clinical text, get the right code.

Zero cold starts. Cloudflare Workers, not a container. Sub-50ms globally.


ICD-10 vs ICD-11

ICD-10ICD-11
Adopted19902019
Codes~14,400~17,000
FormatA00.0–Z99.9BA00, 1A00.1
SearchNot supported by WHO APIFull-text + flexisearch
AutocodingNot availableYes
Key featureDagger/asterisk dual codingPostcoordination + extension codes
StatusStill dominant in billingOfficially in effect since Jan 2022

This server defaults to ICD-11 but fully supports both. Use "version": "10" for ICD-10 queries.


Part of the MedSeal MCP Suite

ServerClassificationLink
ICD MCP (this)WHO ICD-10/ICD-11 diagnosis codesicd-mcp-cloudflare
ICF MCPWHO ICF functioning & disabilityicf-mcp-cloudflare
Part D MCPCMS Medicare Part D drug spendingpartd-mcp-cloudflare

All deployed on Cloudflare Workers. All open source. All MCP-compatible.


License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.