pypi offline-mcpstdioMITupdated 1mo ago
Local AI inference infrastructure โ Ollama wrapper, open weights directory, degraded-mode guide for East Africa.
What can you do with offline mcp?
offline-mcp
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 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
pip install offline-mcp
Tools (6)
| Tool | Description |
|---|---|
check_ollama_status |
Check if Ollama is running locally and list available models |
run_local_inference |
Run a prompt through a local Ollama model |
list_recommended_models |
Best open-weight models for East Africa use cases |
degraded_mode_guide |
4-level degraded mode architecture for offline operation |
open_weights_directory |
Directory of open-weight models with Africa language support |
local_deployment_guide |
Deployment 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.
License
MIT ยฉ Gabriel Mahia | contact@aikungfu.dev
Part of the East Africa Coordination Stack
This MCP server is one of 32 tools in the Kenya coordination infrastructure.
Connect it to africa-coord-bus โ
the coordination event bus that routes signals between domains automatically.
pip install africa-coord-bus
All 32 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โ 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 offline mcp to your client. Pick the one you use.
claude mcp add offline-mcp -- uvx offline-mcpcodex mcp add offline-mcp -- uvx offline-mcpamp mcp add offline-mcp -- uvx offline-mcp{
"mcpServers": {
"offline-mcp": {
"command": "uvx",
"args": [
"offline-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"offline-mcp": {
"command": "uvx",
"args": [
"offline-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"offline-mcp","command":"uvx","args":["offline-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"offline-mcp": {
"command": "uvx",
"args": [
"offline-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"offline-mcp": {
"command": "uvx",
"args": [
"offline-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"offline-mcp": {
"command": "uvx",
"args": [
"offline-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"offline-mcp": {
"type": "local",
"command": "uvx",
"args": [
"offline-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"offline-mcp": {
"command": {
"path": "uvx",
"args": [
"offline-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
uvx offline-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
6 tools
offline mcp exposes 6 tools to a connected agent.
- check_ollama_status
- Check if Ollama is running locally and list available models
- run_local_inference
- Run a prompt through a local Ollama model
- list_recommended_models
- Best open-weight models for East Africa use cases
- degraded_mode_guide
- 4-level degraded mode architecture for offline operation
- open_weights_directory
- Directory of open-weight models with Africa language support
- local_deployment_guide
- Deployment guide for laptop, server, Raspberry Pi, Android
Score
75 / 100
Good
- Documentation25/25
- Maintenance19/25
- Trust13/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 25 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 6 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 |