Icd Mcp

io.github.staycePublished by GitHub account staycev1.0.0Updated Oct 24, 2026

WHO ICD-10/ICD-11 diagnosis codes. Lookup, search, chapters via official WHO API.

VerifiedStreamable HTTPWeb executableKnowledge & MemoryData & Analytics

Overview

AI-generated overview

Remote MCP server that gives an assistant WHO ICD-10 and ICD-11 diagnosis code lookup, search, autocoding and hierarchy browsing through one tool.

What you can do
Look up ICD-10 or ICD-11 codes with definitions, notes, inclusions and exclusions, and validate whether a code exists and its level in the hierarchy. Search codes by keyword and autocode free-text clinical descriptions into ICD-11 codes with confidence scores. Browse chapters, sub-codes and ancestors to see where a code sits in the classification tree. Read built-in coding rules topics and high-level overviews of each classification system. Call the raw WHO API and get action help through the same single tool.
When to use it
Useful for health IT developers, medical coders, analysts and researchers who need ICD-10 or ICD-11 codes, validation or hierarchy context inside an AI conversation, including side-by-side work during an ICD-10 to ICD-11 transition.
Requirements
A remote MCP endpoint; no local runtime, account or API key is declared for the hosted server. Self-hosting requires cloning the project, Node.js and npm, a free WHO ICD API Client ID and Secret stored as WHO_CLIENT_ID and WHO_CLIENT_SECRET, and a Cloudflare Workers deployment.
Before you install
The hosted endpoint is third-party infrastructure, so clinical text and code queries are sent to it and on to the WHO API; avoid submitting identifiable patient information. Autocoded results are suggestions with confidence scores, not verified diagnoses. Self-hosting requires the WHO_CLIENT_ID and WHO_CLIENT_SECRET secrets, which should be kept out of source control.

Installation

In SourceWeft

  1. Open Icd Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.stayce%2Ficd-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "icd": {
      "type": "http",
      "url": "https://icd-mcp-server.staycek.workers.dev/mcp"
    }
  }
}

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.

json
{"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.

json
{"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.

json
{"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.

json
{"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.

json
{"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?

json
{"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.

json
{"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.

json
{"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:

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:

    bash
    git clone https://github.com/stayce/icd-mcp-cloudflarecd icd-mcp-cloudflarenpm install
  2. Get WHO API credentials (free):

  3. Set secrets and deploy:

    bash
    wrangler secret put WHO_CLIENT_IDwrangler secret put WHO_CLIENT_SECRETnpm 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

Source: README.md at commit 8f80904

Tools

1

icd

Parameterscodepathqueryactionrequiredchapterversionmax_results

Version history

1
  1. v1.0.0LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts