
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.
概览
封装本地 Ollama,让助手检查运行状态、用本地模型执行提示词,并获取模型与部署指南。
- 可以做什么
- 检查本地 Ollama 是否运行并列出可用模型
- 通过本地 Ollama 模型执行提示词
- 列出适合低连接场景的推荐开源权重模型
- 查阅降级运行、开源权重模型选择以及笔记本、服务器、树莓派或安卓部署指南
- 适用场景
- 希望 AI 辅助完全在本机运行、不依赖云端 API 或 API 密钥时适用,尤其适合硬件受限或网络不稳定的环境。
- 运行要求
- 需用 pip 安装 Python 包;本地需已安装 Ollama 并拉取模型,推理才能工作。未声明任何 API 密钥、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 Offline Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
offline-mcp
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.
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
Tools (6)
Context
Runs on a 50W solar panel + Raspberry Pi 4. Viable for rural Kenya clinics, schools, and community offices.
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.
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
- 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.
来源:README.md,提交 124aa0e
工具
0版本历史
9- v0.1.13最新Nov 11, 2026
- v0.1.12Nov 7, 2026
- v0.1.11Nov 3, 2026
- v0.1.10Oct 23, 2026
- v0.1.9Oct 21, 2026
- v0.1.8Oct 17, 2026
- v0.1.7Oct 13, 2026
- v0.1.5Oct 12, 2026
- v0.1.4Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分