Afya MCP logo

Afya MCP

Kenya health navigation MCP server covering SHA, facilities, CHWs, maternal care, medicines, rights, and DHS indicators.

Install Afya MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "afya-mcp": {
      "command": "uvx",
      "args": [
        "afya-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

afya-mcp connects AI clients to Kenya health-system lookup tools for SHA/SHIF coverage, facility navigation, community health workers, maternal health, essential medicines, patient rights, and DHS 2022 indicators. Six tools provide labelled demo data, while the DHS tool retrieves official figures nationally or by county through the DHS Program API. Use it for health-system orientation and grounded information retrieval, not diagnosis, prescribing, or operational decisions. Demo results should be checked against the linked Kenyan authorities before use.

Use cases

  • Check sample SHA coverage for a health service
  • Illustrate Kenya facility referral levels by county
  • Explain CHW services and escalation pathways
  • Retrieve trimester-specific antenatal guidance
  • Look up Kenya DHS indicators by county

Key features

  • SHA/SHIF coverage lookup
  • County referral-level facility templates
  • CHW service and referral guidance
  • Trimester-based maternal health information
  • Sample essential-medicine lookup
  • Kenya DHS 2022 API indicators

Tools6

What Afya MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 53d

What it can do

From the 6 tools this server returned when we ran it; 6 declare their own safety hints.

Read-only tools · 6
Network at startup2 connections
Files written at startup11

Observed 2026-10-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · afya-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit20d agoMost recent push to the default branch.
Tools exposed6Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Afya MCP works

What afya-mcp does

afya-mcp provides MCP tools for navigating Kenya’s health system. Its coverage lookup addresses SHA/SHIF benefits, while the facility tool illustrates referral-level facility types by county. Other tools cover typical Community Health Worker services and referral pathways, antenatal guidance by trimester, sample essential-medicine information, and patient rights under Kenya’s Health Act 2017.

The server also includes dhs_health_indicator, which retrieves official Kenya DHS 2022 indicators such as vaccination, stunting, skilled birth attendance, modern contraception, and under-five mortality. Results can be requested for the national level or for a county.

How it works

Most health-system tools use keyword matching against small, static example datasets. Coverage and rights queries select entries based on terms in the request; medicine lookup selects the first sample entry whose name appears in the query. The facility finder generates example facility types from a county name rather than searching a facility registry. CHW results echo the requested sub-county, but the service list and referral pathway are not assignment records.

Maternal guidance accepts first, second, or third trimester, including numeric forms such as 1st, 2nd, and 3rd. Invalid trimester values produce an error listing the accepted choices. All listed demo tools are read-only and have no side effects.

The DHS indicator tool uses the DHS Program API. A live response includes its source, attribution, and retrieval time; an unavailable service returns an error instead of substituting a number.

Setup and configuration

Install the package with:

Terminal
pip install afya-mcp

The package is intended for use with MCP clients. Configure it in the client of your choice using that client’s normal MCP server setup. No environment variables are required by the documented installation command.

Tools and capabilities

  • nhif_coverage_query: Returns sample coverage entries for topics such as maternity, surgery, or dialysis, with an SHA contact note.
  • health_facility_finder: Illustrates county referral levels, health centres, and dispensaries; it is not a real-facility search.
  • chw_service_lookup: Describes common CHW services and escalation from CHW to health centre, sub-county hospital, and county referral hospital.
  • maternal_health_guide: Provides trimester-specific antenatal visits, tests, danger signs, and an SHA maternity note.
  • essential_medicines: Looks up sample supply tiers and typical cost or availability information for common medicines.
  • health_rights_query: Summarises consent, privacy, emergency care, second opinions, complaints, and coverage disputes.
  • dhs_health_indicator: Retrieves Kenya DHS 2022 health indicators nationally or by county.

Limitations and notes

The six navigation and guidance tools label their content as DEMO. Coverage examples are not current benefit rules, facility names are generated templates, CHW data is generic, medicine information comes from a small sample, and rights content is a static summary. Verify operational details with the relevant Kenyan authority, including SHA, the Kenya Master Health Facility List, KEMSA, or Kenya Law.

Maternal-health output is general information rather than medical advice. Reported pregnancy danger signs require immediate care at a health facility. The server is intended for navigation and grounded retrieval, not diagnosis, prescriptions, or clinical decision-making. The project is MIT licensed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Afya MCP

afya-mcp is an MCP server that connects AI clients to Kenya health-system information tools for SHA/SHIF coverage, facility referral levels, CHW services, maternal health, essential medicines, patient rights, and Kenya DHS 2022 indicators. It supports read-only lookups and retrieval, not diagnosis, prescribing, or clinical decision-making.

Install afya-mcp with `pip install afya-mcp`, then add it to your MCP client using that client’s normal server configuration. The documented installation does not require environment variables.

No. The facility finder returns generated examples of referral-level facility types based on a county name. Use the Kenya Master Health Facility List at kmhfl.health.go.ke when you need actual facilities.

No. afya-mcp is intended for health-system navigation and grounded information retrieval, not diagnosis, prescribing, or clinical decisions. Its maternal guidance is general information, and danger signs require immediate care at a health facility.

Yes. `dhs_health_indicator` retrieves official Kenya DHS 2022 figures through the DHS Program API, nationally or by county. Responses include source attribution and retrieval time, and the tool returns an error if the service is unavailable.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAfya MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/afya-mcp?style=directory)](https://allmcps.com/mcp/afya-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/afya-mcp"><img src="https://allmcps.com/api/badge/afya-mcp?style=directory" alt="Afya MCP on AllMCPs" /></a>