io.github.gabrielmahia/soko-mcp
Kenya commodity price tools on synthetic demo data: prices, trends, comparison, sell or hold.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
soko-mcpclaude mcp add soko-mcp -- uvx soko-mcp==0.1.8
{
"mcpServers": {
"soko-mcp": {
"command": "uvx",
"args": [
"soko-mcp==0.1.8"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
📊 soko-mcp — Kenya Commodity Price Intelligence MCP Server
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 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-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
- Install & run:
pip install reli-cli && reli list— the MCP servers on the official MCP Registry underio.github.gabrielmahia - Evaluate 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.
الأسئلة الشائعة
ما هو io.github.gabrielmahia/soko-mcp؟
Kenya commodity price tools on synthetic demo data: prices, trends, comparison, sell or hold.
كيف أثبّت io.github.gabrielmahia/soko-mcp؟
يعمل على جهازك. في Claude Code: claude mcp add soko-mcp -- uvx soko-mcp==0.1.8. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.gabrielmahia/soko-mcp إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل io.github.gabrielmahia/soko-mcp مفتوح المصدر؟
شيفرته علنية على GitHub، لكن المستودع لا يعلن ترخيصًا قياسيًا.
من يصون io.github.gabrielmahia/soko-mcp؟
ينشره gabrielmahia. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.