Soko Mcp

io.github.gabrielmahia由 GitHub 账号 gabrielmahia 发布v0.1.11更新于 Nov 7, 2026

Kenya commodity price tools on synthetic demo data: prices, trends, comparison, sell or hold.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

本地 MCP 服务器,为助手提供肯尼亚农产品价格工具:当前报价、市场对比、趋势、预测以及卖出或持有的建议。

可以做什么
  • 查询某商品在肯尼亚特定市场的当前价格,并获取某市场的多商品价格快照
  • 对比某商品在肯尼亚主要市场的价格
  • 分析六个月价格历史并给出三个月季节性预测
  • 结合仓储成本与价格趋势,给出卖出或持有的时机建议
  • 通过 HDX HAPI 获取某商品最新的 WFP 监测市场价格,可按郡筛选
适用场景
适合探索肯尼亚农产品价格相关问题,例如比较各地玉米价格,或权衡收获后是卖出还是储存。多数工具返回的是合成演示数据,因此更适合演示、原型和探索,而非真实交易或农事决策。
运行要求
以 PyPI 包 soko-mcp 形式通过 stdio 在本地运行,需用 pip 安装,因此需要 Python 环境。未声明任何认证、环境变量或请求头。实时工具 food_market_prices 需要访问 HDX HAPI 服务的网络连接。
安装前请注意
多数工具明确为合成季节性模型生成的演示数据,不适合用于实际运营决策,应到官方来源核实。实时价格工具依赖第三方服务,服务无响应时会返回错误而不是数字。README 还描述了与独立协调事件总线及其他服务器的连接,可能将信号转发到本服务器之外。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Soko Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

📊 soko-mcp — Kenya Commodity Price Intelligence MCP Server

[soko-mcp Glama score]

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

ToolWhat it does
commodity_price_queryCurrent price for commodity at a specific market
regional_price_comparisonCompare prices across all major Kenya markets
price_trend_analysis6-month history + 3-month forecast with seasonal model
sell_hold_decisionOptimal sell/hold timing given storage costs and price trend
market_overviewMulti-commodity price snapshot for a market
food_market_pricesLatest WFP market prices in Kenya for a commodity, via HDX HAPI

Quick Start

bash
pip install soko-mcp       # coming soon to PyPIsoko-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

Live data

  • food_market_prices: the latest WFP-monitored market prices in Kenya for a commodity, optionally by county, via HDX HAPI (WFP data CC BY-IGO).

Each live answer names its source, attribution and retrieval time; if a service does not answer, the tool returns an error instead of a number. The other tools are unchanged.

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 evaluation
  • kilimo-mcp — agricultural advisory
  • afya-mcp — health surveillance activation
  • county-mcp — county office alert
python
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.

来源:README.md,提交 ff2552e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

8
  1. v0.1.11最新Nov 7, 2026
  2. v0.1.10Nov 5, 2026
  3. v0.1.9Nov 3, 2026
  4. v0.1.8Oct 23, 2026
  5. v0.1.7Oct 21, 2026
  6. v0.1.6Oct 17, 2026
  7. v0.1.5Oct 14, 2026
  8. v0.1.4Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。