Skip to main content

MCP server for Africa commodity price intelligence and market signals

Project description

📊 soko-mcp — Kenya Commodity Price Intelligence MCP Server

soko-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 soko-mcp · Use with any MCP client.


A farmer deciding whether to sell or hold needs current prices across multiple markets simultaneously. That comparison exists nowhere as a single queryable source.

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

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

Part of the East Africa Coordination Stack

This MCP server is one of 32 tools in 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
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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soko_mcp-0.1.4.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soko_mcp-0.1.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file soko_mcp-0.1.4.tar.gz.

File metadata

  • Download URL: soko_mcp-0.1.4.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for soko_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 7d223218f19b60144481015a614613be6294715003dcaa9b29972c0207304a9f
MD5 fc5bc08d5545fa5f01c52b66077caf0b
BLAKE2b-256 a3fdf06246c029a851a465f47b0828a253415b3f590308c8ad8a073a5a8ab1c5

See more details on using hashes here.

File details

Details for the file soko_mcp-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: soko_mcp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for soko_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e3174cf847044b6fe450a60899e16fe4171bd18262e8cfea29f21d89e599ff15
MD5 6ef31ea1a36c0986d3d4fdd89be42ca7
BLAKE2b-256 a60dbc198a54562a3439dc84e5f20e426b3e8a1d719c47d15e07a38e4b3c7cb5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page