Skip to main content

💧 WapiMaji MCP — Kenya Water & Drought Intelligence

wapimaji-mcp Glama score smithery badge


Compatible with claude-sonnet-5 (released 2026-06-30) — Anthropic's most agentic Sonnet yet. Runs multi-step tool chains end-to-end without stopping short. Install: pip install wapimaji-mcp · Use with any MCP client.


MCP server giving AI agents real-time access to Kenya's water stress and drought data — all 47 counties, NDMA drought phase classifications, and SMS alert capability via Africa's Talking.

License: MIT Python 3.10+ MCP

What it does

WapiMaji MCP exposes Kenya drought and water stress data as MCP tools. Any Claude, GPT-4, or MCP-compatible AI agent can now:

  • Query live drought phase data for any of Kenya's 47 counties
  • Get water stress indices from NDMA drought monitor
  • Send SMS alerts to farmers via Africa's Talking when drought levels spike

One-prompt examples:

"What is the current drought phase in Marsabit County?"
→ Gets NDMA Phase 3 classification + rainfall deficit data

"Which counties are in drought emergency right now?"
→ Returns all counties at Phase 3+ with population affected

"SMS these 500 Garissa farmers: drought phase has escalated to 3"
→ Sends alerts via Africa's Talking across Safaricom + Airtel

Tools

Tool Type Description
get_drought_status Read-only Current NDMA drought phase for a county
get_county_water_stress Read-only Water stress index, rainfall deficit, river levels
get_drought_alerts Read-only All counties at or above a given drought phase
sms_drought_alert Destructive Send drought alert SMS via Africa's Talking

Install

pip install wapimaji-mcp
# or:
uvx wapimaji-mcp

Configure

{
  "mcpServers": {
    "wapimaji": {
      "command": "uvx",
      "args": ["wapimaji-mcp"],
      "env": {
        "AT_USERNAME": "your_username",
        "AT_API_KEY": "your_at_key",
        "SANDBOX": "true"
      }
    }
  }
}

Data sources

Runtime safety and data limits

SANDBOX=true (the default) uses simulated county drought values, including aggregate alerts. These values are not observations from NDMA. Live aggregate alerts are not implemented and return an explicit error with unknown status.

SMS calls in sandbox return sent: false without contacting Africa's Talking. Live SMS requires both SANDBOX=false and confirm_send=true, supplied only after the user explicitly confirms that send. Provider acceptance does not establish delivery to the recipient.

  • NDMA — National Drought Management Authority drought phase classifications
  • Kenya Meteorological Department — rainfall data
  • FEWS NET — Famine Early Warning System food security projections

IP & Collaboration

© 2026 Gabriel Mahia · contact@aikungfu.dev License: MIT Not affiliated with NDMA or Africa's Talking.

Data Sources

This server draws on open and public domain datasets for drought intelligence:

Open Government Data (Public Domain)

  • NASA MODIS NDVI — vegetation index for drought early warning
  • NOAA CHIRPS — daily rainfall estimates (0.05° resolution)
  • NASA TRMM — monthly precipitation
  • USDA FEWS NET — East Africa livelihood zones

Historical Baseline Data (Public Domain)

  • East Africa Meteorological Records 1900-1940 (colonial era, PD)
  • Kew Gardens East Africa Survey 1910 (botanical PD)

These are structured in africa-open-climate-data and east-africa-agricultural-pd.

Part of the East Africa Coordination Stack

This MCP server is part of the Kenya coordination infrastructure. Connect it to africa-coord-bus — the coordination event bus that routes signals between domains automatically.

pip install africa-coord-bus

All servers: pypi.org/user/gmahia Live demo: coord-cascade-demo

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.

Metadata

Release files for wapimaji-mcp 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wapimaji-mcp 0.1.10
File Size Uploaded
wapimaji_mcp-0.1.10.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wapimaji-mcp 0.1.10
File Interpreter ABI Platform
wapimaji_mcp-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 21.4 kB

Release files / wapimaji_mcp-0.1.10.tar.gz

Download URL wapimaji_mcp-0.1.10.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
56ccf7074244eb66fb31a9dd0d6617d1fbcacda62ce3267171307b30ca2e8ca1
BLAKE2b-256 checksum
How to use checksums
8e623938140355504502a2eb18918e5c77328a8bd1210421b2d87b6fba06b8b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release files / wapimaji_mcp-0.1.10-py3-none-any.whl

Download URL wapimaji_mcp-0.1.10-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f8b0f24c24aa4f961f90e45c29fa4df819c729e9ffd65d3cb4933d0de8e2733
BLAKE2b-256 checksum
How to use checksums
ff6325842fa3e8405d3ac436723c5b3320dac79e067fe142f174c24b1de0cec2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.12

2 release files

This release

0.1.10 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page