Metadata-Version: 2.4
Name: soko-mcp
Version: 0.1.0
Summary: MCP server for East Africa commodity price intelligence and market signals
Author-email: Gabriel Mahia <contact@aikungfu.dev>
License: MIT
Project-URL: Homepage, https://github.com/gabrielmahia/soko-mcp
Project-URL: Repository, https://github.com/gabrielmahia/soko-mcp
Project-URL: Issues, https://github.com/gabrielmahia/soko-mcp/issues
Keywords: mcp,commodity,kenya,africa,markets,prices,agriculture,soko
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Office/Business :: Financial
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastmcp>=2.0.0
Dynamic: license-file

# 📊 soko-mcp — Kenya Commodity Price Intelligence MCP Server

**First commodity price intelligence MCP server for East Africa.**

*Soko* = market in Swahili.

A farmer in Nakuru doesn't know that maize prices in Nairobi are 40% higher that week. Traders know. Farmers don't. This information asymmetry is one of the most costly structural disadvantages facing smallholder farmers. soko-mcp closes it.

## The Structural Problem

In mature commodity markets, price discovery is instantaneous — futures markets, satellite price tickers, and SMS alerts exist for every major exchange. A grain elevator in Iowa checks live CME prices before making any offer.

In Kenya, most smallholder farmers receive the price the trader offers, with no independent benchmark to compare against. The result: systematic underpricing at harvest, systematic overpricing at planting.

**Information asymmetry is a tax on the poor.**

## Tools

| Tool | What it does |
|------|-------------|
| `commodity_price_query` | Current price for commodity at a specific market |
| `regional_price_comparison` | Compare prices across all major Kenya markets |
| `price_trend_analysis` | 6-month history + 3-month forecast with seasonal model |
| `sell_hold_decision` | Optimal sell/hold timing given storage costs and price trend |
| `market_overview` | Multi-commodity price snapshot for a market |

## Quick Start

```bash
pip install soko-mcp       # coming soon to PyPI
soko-mcp                   # starts on stdio
```

## Example Queries for Claude

```
"What is the current Nairobi maize price?"
"Should I sell my 50 bags of beans now or wait 2 months?"
"Compare potato prices across all Kenya markets"
"Give me a price trend for avocados in Nakuru for the next 3 months"
```

## Research Basis

- EAGC East Africa Regional Market Monitor
- World Bank "Information and Communication Technology and Agricultural Markets" (2016)
- Suri & Jack "Mobile Phones and Agricultural Performance" (2016)

⚠️ DEMO data — synthetic seasonal model. Verify at eagc.org, kalro.org, or local market boards.

---
*© 2026 Gabriel Mahia / AI Kung Fu LLC · MIT License*
