soko-mcp
The soko-mcp server provides commodity price intelligence for Kenyan agricultural markets, helping smallholder farmers and traders make informed decisions.
commodity_price_query: Get current spot prices for specific commodities (e.g. maize, beans, tomatoes, milk, coffee) at major Kenyan markets (Nairobi, Nakuru, Eldoret, Kisumu, Mombasa).regional_price_comparison: Compare prices for a commodity across all major Kenyan markets, factoring in the farmer's location for transport cost context — useful for deciding where to sell.price_trend_analysis: View 6-month historical price data and get a 3-month seasonal forecast to inform timing decisions.sell_hold_decision: Receive a recommendation on whether to sell or hold a commodity, based on price trends, quantity held, storage capacity, and monthly storage costs (KES).market_overview: Get a multi-commodity price snapshot for a specific market in a single call, useful for traders managing diverse portfolios.
📊 soko-mcp — Kenya Commodity Price Intelligence MCP Server
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.
Related MCP server: agriculture-mcp-server
Tools
Tool | What it does |
| Current price for commodity at a specific market |
| Compare prices across all major Kenya markets |
| 6-month history + 3-month forecast with seasonal model |
| Optimal sell/hold timing given storage costs and price trend |
| Multi-commodity price snapshot for a market |
Quick Start
pip install soko-mcp # coming soon to PyPI
soko-mcp # starts on stdioExample 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 evaluationkilimo-mcp— agricultural advisoryafya-mcp— health surveillance activationcounty-mcp— county office alert
pip install africa-coord-busAll servers: pypi.org/user/gmahia
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gabrielmahia/soko-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server