
Afya Mcp
io.github.gabrielmahiaPublished by GitHub account gabrielmahiav0.1.13Updated Nov 7, 2026
Kenya health system guides: SHA/SHIF coverage, facility templates, maternal care, CHWs. Demo data.
Overview
Local MCP server for Kenya health system navigation: SHA/SHIF coverage, facility finding, maternal health, CHW support and essential medicines.
- What you can do
- Look up Kenya SHA/SHIF coverage and health system guidance
- Find health facilities and navigate to the appropriate care level
- Get maternal health and community health worker (CHW) support information
- Retrieve essential medicines information
- Fetch official Kenya DHS 2022 indicators nationally or by county via the DHS Program API, with source, attribution and retrieval time
- When to use it
- Useful when an assistant needs grounded Kenya health system information — coverage rules, facility options, maternal care or CHW guidance — or official DHS indicator figures for a county. The README positions it as a RAG entry point for health information, not a clinical decision tool.
- Requirements
- Runs locally over stdio as the PyPI package afya-mcp (pip install afya-mcp) with any MCP client; desktop only. No authentication, environment variables or headers are declared. The DHS indicator tool needs network access to the DHS Program API.
Installation
In SourceWeft
- Open Afya Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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.
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
All 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.gabrielmahia - Evaluate 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.
Source: README.md at commit d4bcd7a
Tools
0Version history
11- v0.1.13LatestNov 7, 2026
- v0.1.12Nov 5, 2026
- v0.1.11Nov 3, 2026
- v0.1.10Oct 22, 2026
- v0.1.9Oct 21, 2026
- v0.1.8Oct 17, 2026
- v0.1.7Oct 13, 2026
- v0.1.6Oct 10, 2026
- v0.1.5Oct 8, 2026
- v0.1.4Oct 5, 2026
- v0.1.3Sep 16, 2026
Score
50% 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 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts