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

AI-generated 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.
Before you install
The README states it must not be used for diagnosis, prescription or clinical decision-making and requires a human in the loop. Demo data is labeled DEMO and is not suitable for operational decisions. The README also describes connections to a separate coordination event bus and other servers, which may route signals beyond this server.

Installation

In SourceWeft

  1. Open Afya Mcp in the dashboard and add it to a workspace.
  2. 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

[afya-mcp Glama score]

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 evaluation
  • kilimo-mcp — agricultural advisory
  • afya-mcp — health surveillance activation
  • county-mcp — county office alert
python
pip install africa-coord-bus

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

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

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

11
  1. v0.1.13LatestNov 7, 2026
  2. v0.1.12Nov 5, 2026
  3. v0.1.11Nov 3, 2026
  4. v0.1.10Oct 22, 2026
  5. v0.1.9Oct 21, 2026
  6. v0.1.8Oct 17, 2026
  7. v0.1.7Oct 13, 2026
  8. v0.1.6Oct 10, 2026
  9. v0.1.5Oct 8, 2026
  10. v0.1.4Oct 5, 2026
  11. 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