io.github.stayce/icd-mcp
编码与调试by stayce
WHO ICD-10/ICD-11 diagnosis codes. Lookup, search, chapters via official WHO API.
什么是 io.github.stayce/icd-mcp?
WHO ICD-10/ICD-11 diagnosis codes. Lookup, search, chapters via official WHO API.
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.
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
| Action | What it does | ICD-10 | ICD-11 |
|---|---|---|---|
lookup | Full code details with definitions | Yes | Yes |
search | Find codes by keyword | - | Yes |
autocode | Clinical text → best matching code | - | Yes |
browse | Navigate the hierarchy interactively | Yes | Yes |
chapters | List all classification chapters | Yes | Yes |
children | Get sub-codes under any code | Yes | Yes |
ancestors | Trace lineage up to chapter root | Yes | Yes |
validate | Check if a code exists and its level | Yes | Yes |
coding_rules | Coding conventions reference | Yes | Yes |
overview | Classification system summary | Yes | Yes |
api | Raw WHO API access | Yes | Yes |
help | Action 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
-
Clone and install:
bashgit clone https://github.com/stayce/icd-mcp-cloudflare cd icd-mcp-cloudflare npm install -
Get WHO API credentials (free):
- Register at https://icd.who.int/icdapi
- Get your Client ID and Secret
-
Set secrets and deploy:
bashwrangler 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-10 | ICD-11 | |
|---|---|---|
| Adopted | 1990 | 2019 |
| Codes | ~14,400 | ~17,000 |
| Format | A00.0–Z99.9 | BA00, 1A00.1 |
| Search | Not supported by WHO API | Full-text + flexisearch |
| Autocoding | Not available | Yes |
| Key feature | Dagger/asterisk dual coding | Postcoordination + extension codes |
| Status | Still dominant in billing | Officially 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
| Server | Classification | Link |
|---|---|---|
| ICD MCP (this) | WHO ICD-10/ICD-11 diagnosis codes | icd-mcp-cloudflare |
| ICF MCP | WHO ICF functioning & disability | icf-mcp-cloudflare |
| Part D MCP | CMS Medicare Part D drug spending | partd-mcp-cloudflare |
All deployed on Cloudflare Workers. All open source. All MCP-compatible.
License
MIT
常见问题
io.github.stayce/icd-mcp 是什么?
WHO ICD-10/ICD-11 diagnosis codes. Lookup, search, chapters via official WHO API.
相关 Skills
前端设计
by anthropics
面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。
✎ 想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。
网页应用测试
by anthropics
用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。
✎ 借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。
网页构建器
by anthropics
面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。
✎ 在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。
相关 MCP Server
GitHub
编辑精选by GitHub
GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。
✎ 这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。
Context7 文档查询
编辑精选by Context7
Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。
✎ 它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。
by tldraw
tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。
✎ 这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。