afya-mcp
An MCP server for Kenya health system navigation, offering DEMO lookup tools and a live DHS health indicator feed for grounded health information.
Query NHIF/SHA coverage for a procedure or condition by member tier (DEMO).
Find accredited health facilities by county/sub-county, with optional level and NHIF-only filtering (DEMO).
Look up community health worker services by sub-county (DEMO).
Get maternal health guidance by trimester, with an optional specific concern (DEMO).
Query the Kenya Essential Medicines List (DEMO).
Query patient rights under the Kenya Health Act 2017 by topic (DEMO).
Access official Kenya DHS 2022 indicators nationally or by county via the DHS Program API, with source, attribution, and retrieval time (per README).
Use it as a RAG entry point for facility navigation, coverage lookup, CHW support, and care-level triage — not diagnosis, prescription, or clinical decision-making.
afya-mcp
Install: pip install afya-mcp · Use with any MCP client.
MCP server for Kenya health system navigation — SHA/SHIF coverage, facility finder, maternal health, CHW support, and essential medicines. 7 tools.
Live data
dhs_health_indicator: official Kenya DHS 2022 figures (vaccination, stunting, skilled birth attendance, modern contraception, under-five mortality), nationally or by county, via the DHS Program API.
Each live answer names its source, attribution and retrieval time; if a service does not answer, the tool returns an error instead of a number. The other tools are unchanged.
Related MCP server: bima-mcp
Part of the East Africa Coordination Stack
This MCP server is part of the Kenya coordination infrastructure.
It connects to africa-coord-bus — the coordination
event bus that routes signals between domains automatically.
When this server detects a threshold condition, the bus notifies:
bima-mcp— parametric insurance evaluationkilimo-mcp— agricultural advisoryafya-mcp— health surveillance activationcounty-mcp— county office alert
pip install africa-coord-busAll servers: pypi.org/user/gmahia
AI Architecture: Health Domain RAG
Medical AI requires grounding — ungrounded responses in health contexts cause real harm. Use this server as a RAG entry point, not a standalone health oracle.
Research basis:
RAG Best Practices for Medical Domain (2026): RAG outperforms chain-of-thought on complex medical reasoning and is more interpretable — critical in clinical contexts.
AfricaNLP 2025/2026: Only 4 African languages (incl. Swahili) have consistent NLP support. Healthcare is identified as the highest-priority domain needing accurate, grounded AI — and the one with the most critical data gaps.
Multilingual NLP for African Healthcare (AfricaNLP 2025): Bias and translation errors persist specifically in African health AI contexts.
Appropriate use:
✅ Health facility navigation, SHA/SHIF coverage lookup, community health worker support
✅ Health information grounded in verified Kenya health system data
✅ Triage to appropriate care level
❌ Diagnosis, prescription, or clinical decision-making (human-in-the-loop required)
IP & Collaboration
MIT licensed. Feedback via GitHub Issues only — pull requests are not accepted. Demo data is labeled DEMO and is not suitable for operational decisions. Full policy: docs/architecture/IP_POLICY.md. Security reports: see SECURITY.md.
Part of the East Africa coordination stack
Install & run:
pip install reli-cli && reli list— the MCP servers on the official MCP Registry underio.github.gabrielmahiaEvaluate any model on Swahili agent tasks: kipimo · dataset · leaderboard
Coordinate across servers: africa-coord-bus — offline-first event bus with a built-in Kenya routing table
Datasets: huggingface.co/gmahia · Docs hub: nairobi-stack
Model-agnostic by design: closed APIs, open-weight models, and small distilled models are all first-class citizens.
Available Tools
6 toolschw_service_lookupC
Lookup CHW services in a Kenya sub-county. DEMO.
Inputs: sub_county (required). Returns: object
essential_medicinesC
Query Kenya Essential Medicines List. DEMO.
Inputs: query (required). Returns: object
health_facility_finderC
Find accredited health facilities in a Kenya county/sub-county. DEMO.
Inputs: county (required), level, nhif_only. Returns: object
health_rights_queryC
Patient rights under Kenya Health Act 2017. DEMO.
Inputs: topic (required). Returns: object
maternal_health_guideC
ANC milestones, danger signs, and delivery guidance for Kenya. DEMO.
Inputs: trimester (required), specific_concern. Returns: object
nhif_coverage_queryB
Query NHIF/SHA coverage for a procedure or condition. DEMO.
Inputs: query (required), member_tier. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool addresses a distinct domain within Kenya healthcare (CHW services, medicines, facilities, rights, maternal health, NHIF coverage). No two tools overlap in purpose, ensuring clear selection.
All names use lowercase with underscores and follow a 'domain_operation' pattern, but the operation terms vary: 'lookup', 'finder', 'query', 'guide'. This minor inconsistency prevents a perfect score.
Six tools is appropriate for a focused healthcare demo. The set covers key information areas without being overwhelming or too sparse.
The tools cover essential health information queries for Kenya. While additional tools like immunization schedules or disease-specific guides could be added, the current set covers major user needs with minor gaps.
Maintenance
Related MCP Connectors
MCP server for US nursing facility search and ownership lookup (NursingHomeDatabase).
Free hosted MCP server: US healthcare procedure cost estimates and provider pricing. No API key.
MCP tools for Malawian food search, clinical nutrition calculators, and RAG-backed guidance.
Hosted MCP server for the Healthie EHR & telehealth API: patients, appointments, charting, tasks.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceOfficial Medplum MCP server for healthcare automation2,815Apache 2.0
- AlicenseAqualityBmaintenanceMCP server for Kenya insurance intelligence, providing tools to query insurance products, NHIF coverage, and parametric crop risk scoring.6140 PyPIMIT
- AlicenseCqualityBmaintenanceMCP server for Kenya environment — NEMA permits, climate data, conservation areas, environmental rights, climate adaptation.594 PyPIMIT
- AlicenseBqualityBmaintenanceMCP server for Kenya land administration — title search, land rates, subdivision process, dispute resolution, land rights.587 PyPIMIT