Kilimo Mcp

io.github.gabrielmahiaPublished by GitHub account gabrielmahiav0.1.13Updated Nov 11, 2026

Kenya farming guides: crop calendar, fertilizer, pests, market timing, varieties, input costs.

Overview

AI-generated overview

Local MCP server giving assistants Kenya-focused farming guidance: crop calendars, fertilizer, pests, varieties, input costs, rainfall and market prices.

What you can do
  • Look up Kenya crop planting and harvest calendars by region, plus KALRO improved variety recommendations
  • Get fertilizer advice by crop and soil type, and pest and disease identification and management
  • Estimate and compare Kenya farm input costs, and find best selling windows from price cycles
  • Fetch live daily rain forecasts and latest WFP-monitored market prices for a commodity, optionally by county
When to use it
Useful when an assistant needs to answer practical smallholder or commercial farming questions for Kenya and East Africa, such as when to plant, what to apply, which variety to choose, or when to sell, including current rainfall and market price context.
Requirements
Runs as a local process installed from PyPI with pip, so a Python environment is needed; it is desktop-only and started via the kilimo-mcp command in an MCP client config. No accounts, API keys or environment variables are declared. Live rainfall and market price tools need network access to external services.
Before you install
The README states that synthetic data is labeled DEMO and is not suitable for operational decisions, and that operational data should be verified with the relevant Kenyan government authority. Live answers come from third-party services (Open-Meteo, HDX HAPI) and are attributed; tools return an error rather than a number when a service fails. The README also describes optional coordination with other servers via an event bus.

Installation

In SourceWeft

  1. Open Kilimo 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

kilimo-mcp

[kilimo-mcp Glama score]

Install: pip install kilimo-mcp · Use with any MCP client.

Kenya precision agriculture via MCP — crop calendar, fertilizer, pest alerts, KALRO varieties

[PyPI] [License] [Layer]

AI Architecture: Agricultural Domain RAG

Agricultural AI for East Africa requires domain-specific retrieval — generic models hallucinate crop varieties, soil types, and local market conditions.

Research basis:

  • AgriIR (Springer 2026): configurable RAG framework for agricultural knowledge retrieval — validates domain-specific retrieval over monolithic agricultural models. Key finding: low computational cost with high accuracy when knowledge base is curated.
  • RAG vs Fine-tuning on Agriculture (arXiv 2401.08406): RAG outperforms fine-tuning for dynamic agricultural knowledge (seasonal, location-specific, real-time market).
  • DPGA 2026 focus: Domain-specific DPGs in agriculture and climate are a 2026 strategic priority for Co-Develop and DPGA members.

Knowledge base pairing:

  • Kenya National Drought Management Authority (NDMA) data → drought → crop risk
  • Kenya Meteorological Department seasonal forecasts → planting calendar
  • East Africa agricultural historical data (1906-1925, HuggingFace: gmahia)

Coordination: Pairs with wapimaji-mcp (water), bima-mcp (insurance), soko-mcp (markets) via africa-coord-bus for full drought response cascade.

Install

bash
pip install kilimo-mcp

What it does

8 MCP tools covering Kenya precision agriculture. 1st world equivalent: Climate Corp / Granular.

ToolDescription
crop_calendarKenya crop planting and harvesting calendar by region
fertilizer_guideFertilizer recommendations by crop and soil type
pest_disease_alertCrop pest and disease identification and management
market_timing_guideBest timing to sell produce based on price cycles
kalro_varietiesKALRO improved crop variety recommendations
input_cost_calculatorKenya farm input cost calculator and comparison
rainfall_forecastDaily rain forecast (mm, chance) for any location, from Open-Meteo
food_market_pricesLatest WFP market prices in Kenya for a commodity, via HDX HAPI

Usage

bash
# Run as standalone MCP serverkilimo-mcp
# Or add to Claude Desktop / any MCP client# Add to your MCP config: {"command": "kilimo-mcp"}

Part of the Kenya Coordination Infrastructure Stack

This is one of the MCP servers covering the coordination infrastructure of East Africa:

Economic: mpesa · mkopo · bima · soko · sifa · remit · kra · faida
Physical: wapimaji · nishati · usafiri · ardhi
Social: afya · afya-ya-akili · elimu · kazi · haki-ya-kazi · kilimo · jumuia
Civic: nyumba · habari · mazingira · civic-agent-kit

→ The Nairobi Stack
→ Full Portfolio

Trust Integrity

All data in this server is clearly labeled DEMO where synthetic. Verify all operational data with the relevant Kenyan government authority before use.

License

MIT © Gabriel Mahia | AI-KungFU | [email protected]

Decision infrastructure for East Africa

Live data

  • rainfall_forecast: daily rain (mm) and chance of rain for up to 16 days at any location, from Open-Meteo (CC BY 4.0; free API for non-commercial use).
  • food_market_prices: the latest WFP-monitored market prices in Kenya for a commodity, optionally by county, via HDX HAPI (WFP data CC BY-IGO).

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

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 5bd21dc

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