kilimo-mcp
Summary: This server provides Kenya-focused precision-agriculture advisory tools (demo data) covering crop calendars, fertilizer, pests, market timing, KALRO varieties, and input costs.
Crop calendar — get planting and harvesting windows for a crop, optionally by region (defaults to highland).
Fertilizer guidance — receive fertilizer recommendations for a crop and soil type (defaults to medium).
Pest & disease alerts — look up pest/disease identification and management for a crop, optionally narrowed by symptom.
Market timing — find the best time to sell a commodity based on price cycles, optionally by county.
KALRO varieties — get improved crop variety recommendations, optionally filtered by growing condition.
Input cost calculator — estimate and compare farm input costs for a crop across a given acreage.
Note: per the README, two additional live-data tools (rainfall_forecast from Open-Meteo and food_market_prices from HDX HAPI) exist, but they are not present in the provided schema. All schema tools are labeled DEMO data and should be verified with Kenyan authorities before operational use.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@kilimo-mcp crop calendar for maize in Nakuru"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
kilimo-mcp
Install: pip install kilimo-mcp · Use with any MCP client.
Kenya precision agriculture via MCP — crop calendar, fertilizer, pest alerts, KALRO varieties
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.
Related MCP server: wapimaji-mcp
Install
pip install kilimo-mcpWhat it does
8 MCP tools covering Kenya precision agriculture. 1st world equivalent: Climate Corp / Granular.
Tool | Description |
| Kenya crop planting and harvesting calendar by region |
| Fertilizer recommendations by crop and soil type |
| Crop pest and disease identification and management |
| Best timing to sell produce based on price cycles |
| KALRO improved crop variety recommendations |
| Kenya farm input cost calculator and comparison |
| Daily rain forecast (mm, chance) for any location, from Open-Meteo |
| Latest WFP market prices in Kenya for a commodity, via HDX HAPI |
Usage
# Run as standalone MCP server
kilimo-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 | contact@aikungfu.dev
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 evaluationkilimo-mcp— agricultural advisoryafya-mcp— health surveillance activationcounty-mcp— county office alert
pip install africa-coord-busAll 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
Install & run:
pip install reli-cli && reli list— the MCP servers on the official MCP Registry underio.github.gabrielmahiaEvaluate 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.
Available Tools
6 toolscrop_calendarC
Kenya crop planting and harvesting calendar by region. DEMO.
Inputs: crop (required), region. Returns: object
fertilizer_guideB
Fertilizer recommendations by Kenya crop and soil type. DEMO.
Inputs: crop (required), soil_type. Returns: object
input_cost_calculatorC
Kenya farm input cost calculator and comparison. DEMO.
Inputs: crop (required), acreage. Returns: object
kalro_varietiesC
KALRO improved crop variety recommendations for Kenya. DEMO.
Inputs: crop (required), condition. Returns: object
market_timing_guideC
Best timing to sell Kenya produce based on price cycles. DEMO.
Inputs: commodity (required), county. Returns: object
pest_disease_alertC
Kenya crop pest and disease management guide. DEMO.
Inputs: crop (required), symptom. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct agricultural domain: planting schedule, fertilizer, pests, market timing, varieties, and input costs. No overlap in purpose, making tool selection unambiguous.
All tool names use a consistent lowercase snake_case pattern with noun-noun combinations (e.g., crop_calendar, fertilizer_guide). The naming is uniform and descriptive, making it easy to predict tool functions.
Six tools is a well-scoped set for an agricultural advisory server, covering key aspects without being overwhelming. Each tool has a clear purpose, and the count is within the ideal range.
The tools cover the core planting-to-selling lifecycle: planting calendar, fertilizer, pest/disease management, market timing, variety selection, and cost calculation. Minor gaps exist (e.g., weather or irrigation guidance), but the surface is largely complete for its stated purpose.
Maintenance
Related MCP Connectors
African intelligence infrastructure for AI apps, developers, and data products via MCP.
AI-powered commodity price forecasts and Brazil trade intelligence via MCP. Access Brazilian exports and imports from MDIC/ComexStat since 2000, by HS4, HS6 and NCM code, partner country, USD FOB and kilograms — plus crop production, supply & demand, climate data and production forecasts for major commodities including soybeans, coffee, corn, beef and cocoa. Compare trade flows, markets, countries and time periods with like-for-like windows. Every answer identifies the measurement period and data source. 15 read-only tools. Metered in credits. Connect directly via Streamable HTTP — no installation required: https://mcp.kyrodata.com/mcp Authentication: Bearer key or OAuth 2.1 (PKCE). Official MCP registry: com.kyrodata/kyrodata
Mzizi design system MCP: search and execute over components, tokens, crates, skills and docs. Free.
Smarter Weather MCP: forecasts, alerts, outlooks, observations, AQI, grids, and map imagery.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides access to Kenya's civic datasets including parliament records, county budgets, SACCO registry, and drought data through MCP tools. Enables AI agents to analyze and query Kenyan public data for civic applications.61MIT
- AlicenseAqualityBmaintenanceMCP server exposing Kenya NDMA drought phase classifications across all 47 counties, with tools for structured data access and SMS-based alerting via Africa’s Talking.354 PyPI1MIT
- AlicenseAqualityBmaintenanceMCP server for Kenya insurance intelligence, providing tools to query insurance products, NHIF coverage, and parametric crop risk scoring.6MIT
- AlicenseAqualityBmaintenanceMCP server for East Africa commodity price intelligence — regional price comparison across 8 markets, trend analysis, and sell/hold decision support for smallholder farmers. 5 tools.5MIT