Offline Mcp

io.github.gabrielmahia由 GitHub 帳號 gabrielmahia 發布v0.1.13更新於 Nov 11, 2026

Local AI over Ollama for low connectivity: status, local inference, model and deployment guides.

概覽

AI 產生的概覽

封裝本機 Ollama,讓助理檢查執行狀態、用本機模型執行提示詞,並取得模型與部署指南。

可以做什麼
  • 檢查本機 Ollama 是否執行並列出可用模型
  • 透過本機 Ollama 模型執行提示詞
  • 列出適合低連線場景的推薦開放權重模型
  • 查閱降級運作、開放權重模型選擇,以及筆電、伺服器、樹莓派或 Android 部署指南
適用情境
希望 AI 輔助完全在本機執行、不依賴雲端 API 或 API 金鑰時適用,特別適合硬體受限或網路不穩定的環境。
執行需求
需以 pip 安裝 Python 套件;本機需已安裝 Ollama 並下載模型,推論才能運作。未宣告任何 API 金鑰、環境變數或標頭。
安裝前請注意
README 說明示範資料標示為 DEMO,不適合用於實際營運決策。推論品質與可用性取決於本機 Ollama 設定與硬體;README 中關於資料主權的廣泛說法需自行查證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Offline Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

offline-mcp

[offline-mcp Glama score]

Install: pip install offline-mcp · Use with any MCP client.

Local AI inference infrastructure — Ollama wrapper, open weights directory, degraded-mode guide for East Africa.

[PyPI] [Thesis Layer]

Why: Never assume OpenAI survives, Anthropic stays accessible, or export controls disappear. This matters more in Africa than anywhere else.

1st world equivalent: Ollama, LLaMA, Mistral local deployment

Why This Exists: Data Sovereignty

"If you take the deal, you're going to be exploited. If you don't take it, you're going to die."
— Frank Ssekamwa, Ugandan digital rights expert

Across the Global South, AI and health data from communities is being extracted, processed abroad, and used to build models whose value flows away from the communities that generated it.

offline-mcp is the sovereignty floor of the East Africa coordination stack.

When this runs on a Raspberry Pi 4 with a 50W solar panel and a 256GB SD card:

  • Health data stays in the clinic. Health guidance comes from local models.
  • Land records stay in the land office. Queries don't touch foreign servers.
  • Civic data stays in the county. AI assistance runs without internet.

No API key. No cloud dependency. No data leaving the community.

The models available via offline-mcp (Llama 3.2, Qwen 2.5) run entirely on device. Community data used to generate AI outputs creates no dataset sent back to model providers.

This is not a privacy feature. It is the architectural foundation of digital independence.


Research Foundation

This server implements patterns validated by peer-reviewed research on offline-first AI for bandwidth-constrained environments:

arXiv:2603.03339 (2026) — Offline-First LLM Architecture for Adaptive Learning in Low-Connectivity Environments — confirms that meaningful AI support is achievable with hardware-aware model selection when designed for infrastructure-limited deployment. Key finding: offline-first is a complementary paradigm, not a compromise.

Design principles applied:

  • Local-first: all core operations execute without internet connectivity
  • Graceful degradation: reduced functionality beats no functionality
  • JSONL queue: events accumulated offline sync when connectivity returns
  • Hardware-aware: tool selection adapts to available compute

East Africa context: Kenya, Tanzania, Uganda — rural areas with intermittent connectivity represent the primary deployment target. This server is not designed for ideal conditions. It is designed for real ones.

Install

bash
pip install offline-mcp

Tools (6)

ToolDescription
check_ollama_statusCheck if Ollama is running locally and list available models
run_local_inferenceRun a prompt through a local Ollama model
list_recommended_modelsBest open-weight models for East Africa use cases
degraded_mode_guide4-level degraded mode architecture for offline operation
open_weights_directoryDirectory of open-weight models with Africa language support
local_deployment_guideDeployment guide for laptop, server, Raspberry Pi, Android

Context

Runs on a 50W solar panel + Raspberry Pi 4. Viable for rural Kenya clinics, schools, and community offices.

→ The Nairobi Stack

License

MIT © Gabriel Mahia | [email protected]

Part of the East Africa Coordination Stack

This MCP server is part of the Kenya coordination infrastructure. Connect it to africa-coord-bus — the coordination event bus that routes signals between domains automatically.

bash
pip install africa-coord-bus

All servers: pypi.org/user/gmahia Live demo: coord-cascade-demo

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,提交 124aa0e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

9
  1. v0.1.13最新Nov 11, 2026
  2. v0.1.12Nov 7, 2026
  3. v0.1.11Nov 3, 2026
  4. v0.1.10Oct 23, 2026
  5. v0.1.9Oct 21, 2026
  6. v0.1.8Oct 17, 2026
  7. v0.1.7Oct 13, 2026
  8. v0.1.5Oct 12, 2026
  9. v0.1.4Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分