pypi soko-mcpstdioupdated 1mo ago
A farmer deciding whether to sell or hold needs current prices across multiple markets simultaneously. That comparison exists nowhere as a single queryable source.
What can you do with soko mcp?
๐ 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.
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 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โ 33 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.
Install
Add soko mcp to your client. Pick the one you use.
claude mcp add soko-mcp -- uvx soko-mcpcodex mcp add soko-mcp -- uvx soko-mcpamp mcp add soko-mcp -- uvx soko-mcp{
"mcpServers": {
"soko-mcp": {
"command": "uvx",
"args": [
"soko-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"soko-mcp": {
"command": "uvx",
"args": [
"soko-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"soko-mcp","command":"uvx","args":["soko-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"soko-mcp": {
"command": "uvx",
"args": [
"soko-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"soko-mcp": {
"command": "uvx",
"args": [
"soko-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"soko-mcp": {
"command": "uvx",
"args": [
"soko-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"soko-mcp": {
"type": "local",
"command": "uvx",
"args": [
"soko-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"soko-mcp": {
"command": {
"path": "uvx",
"args": [
"soko-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx soko-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
5 tools
soko mcp exposes 5 tools to a connected agent.
- 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
Score
60 / 100
Good
- Documentation20/25
- Maintenance16/25
- Trust6/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 44 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 5 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.1.4Latest | Jul 18, 2026 |
| 0.1.3 | Jul 4, 2026 |