streamable-httpMITupdated 2mo ago
A Model Context Protocol (MCP) server for the WHO International Classification of Functioning, Disability and Health (ICF), deployed on Cloudflare Workers for global edge availability.
What can you do with icf mcp?
ICF MCP Server (Cloudflare Workers)
A Model Context Protocol (MCP) server for the WHO International Classification of Functioning, Disability and Health (ICF), deployed on Cloudflare Workers for global edge availability.
Live URL: https://mcp-icf.medseal.app/mcp
What is ICF?
The ICF is a WHO classification that complements ICD (diagnosis codes) by describing how health conditions affect a person's functioning in daily life:
- Body Functions (b) - Physiological and psychological functions
- Body Structures (s) - Anatomical parts of the body
- Activities and Participation (d) - Task execution and life involvement
- Environmental Factors (e) - Physical, social, and attitudinal environment
Tool
A single icf tool with action dispatch (token-efficient). 19 actions:
Codes & Hierarchy
| Action | Description |
|---|---|
lookup |
Look up a specific ICF code (e.g., b280, d450) |
search |
Search by keyword (e.g., "walking difficulty", "pain") |
browse |
Browse a category (b, s, d, e) or sub-chapter (b1, d4, e3) |
children |
Get subcategories of a code |
parent |
Navigate up to a code's parent category |
siblings |
Codes at the same level (same parent) |
chain |
Full hierarchy path from root to a code |
profile |
Build a functional profile from multiple codes |
Qualifiers
| Action | Description |
|---|---|
qualifier |
Component-specific qualifier reference (b=1, s=3, d=2, e=barrier/facilitator) |
validate |
Validate code format + qualifiers, verify existence in the WHO API |
parse |
Parse fully qualified codes (d450.23, s730.312, e120+3) |
Clinical Assessment Instruments
11 standardized RPM instruments with items, scoring, and ICF mappings: GAD-7, PHQ-9, RADAI-5, SLEDAI-2K, WHODAS 2.0, HAQ-DI, PROMIS-10, CAT, ODI, NRS Pain, Short FES-I.
| Action | Description |
|---|---|
instruments |
List instruments, optionally filtered by domain |
instrument |
Full spec: items, response options, scoring, ICF mappings |
score |
Score responses → severity, interpretation, ICF qualifier |
suggest |
Suggest instruments for a condition, ICF code, or domain |
mapping |
Show an instrument's ICF code mappings |
Meta
| Action | Description |
|---|---|
overview |
Full ICF classification overview |
api |
Raw WHO API request (escape valve) |
help |
Action reference with examples |
Example call:
{"action": "score", "name": "GAD-7", "responses": [1, 2, 1, 0, 1, 2, 1]}
Instrument and qualifier actions are pure logic and work without WHO API credentials; code/hierarchy actions require them.
Prerequisites
- WHO ICD-API credentials (free): Register at https://icd.who.int/icdapi
- Cloudflare account with Workers enabled
- Node.js 18+ and npm
Installation
git clone https://github.com/stayce/icf-mcp-cloudflare.git
cd icf-mcp-cloudflare
npm install
Configuration
-
Copy the example environment file:
cp .dev.vars.example .dev.vars -
Edit
.dev.varswith your WHO API credentials for local development. -
For production, set secrets:
wrangler secret put WHO_CLIENT_ID wrangler secret put WHO_CLIENT_SECRET
Development
npm run dev
The server will be available at http://localhost:8787.
Testing
npm test
Regression tests cover instrument scoring (all 11 instruments) and qualifier parsing — pure logic, no WHO API credentials needed.
Deployment
npm run deploy
For custom domain (configured in wrangler.toml):
wrangler deploy --env production
Usage with Claude
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"icf": {
"type": "url",
"url": "https://mcp-icf.medseal.app/mcp"
}
}
}
Or if deploying your own:
{
"mcpServers": {
"icf": {
"type": "url",
"url": "https://your-worker.workers.dev/mcp"
}
}
}
Endpoints
/or/health- Health check / server info/mcp- MCP protocol endpoint (streamable HTTP)
API Reference
This server uses the WHO ICD-API which provides programmatic access to both ICD-11 and ICF classifications.
- API Documentation: https://icd.who.int/docs/icd-api/APIDoc-Version2/
- ICF Browser: https://icd.who.int/dev11/l-icf/en
License
MIT License - see LICENSE
Related
- icf-mcp-server - Python version for Claude Desktop
Install
Add icf mcp to your client. Pick the one you use.
claude mcp add --transport http icf-mcp https://mcp-icf.medseal.app/mcpcodex mcp add icf-mcp --url https://mcp-icf.medseal.app/mcp{
"mcpServers": {
"icf-mcp": {
"url": "https://mcp-icf.medseal.app/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"icf-mcp": {
"type": "http",
"url": "https://mcp-icf.medseal.app/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"icf-mcp": {
"url": "https://mcp-icf.medseal.app/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"icf-mcp": {
"serverUrl": "https://mcp-icf.medseal.app/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance16/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 59 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 1.1.0Latest | Jul 4, 2026 |
| 1.0.0 | Jan 21, 2026 |