afara
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
afara
Talk to your coding agent in your own language.
afara ("bridge" in Yoruba) is a small language layer for coding agents. One command downloads a translation model that runs on your laptop, plugs it into Claude Code (and Codex, OpenCode) as an MCP tool, and adds a skill that tells the agent when to use it. You write to the agent in Swahili. It reads a reliable English version, does the work, and answers back in Swahili. Code blocks and inline code are never translated.
Inspired by semble, which installs a code search model into your agents the same way.
Install
uv tool install git+https://github.com/oumarbarry/afara
afara install # downloads NLLB-200 600M (2.46 GB, public, no account), registers the MCP server, writes the skill
afara uninstall # removes everything install addedafara install detects which agents are on the machine:
Agent | What it gets |
Claude Code | MCP server ( |
Codex | MCP server ( |
OpenCode | skill in |
Related MCP server: semantic-search-mcp
Use
In Claude Code, write in Swahili (or Hausa, Yoruba, isiZulu...), or type /afara.
From the shell:
afara translate "Kwa nini msimbo wangu unashindwa wakati orodha ni tupu?" --from swh_Latn --to eng_Latn
afara compare "Habari ya asubuhi" --from swh_Latn --to eng_Latn # every engine side by sideLanguage codes are FLORES-200 (swh_Latn, hau_Latn, yor_Latn, zul_Latn, eng_Latn...), the same scheme NLLB and Lelapa's Vulavula API use.
Engines
Engine | Runs | Status |
| locally, | tested |
| Lelapa's Translate API, key in | written from the docs, not tested yet |
| locally, InkubaLM-0.4B GGUF through | experimental, see numbers below |
Measured
50 sentences per direction from Lelapa's own Zindi dev set, Apple M3 Pro, 01/12/2026. Scripts and raw results in bench/.
Direction | InkubaLM 0.4B Q8_0 (BLEU / chrF) | NLLB-200 600M (BLEU / chrF) |
Hausa to English | 0.49 / 11.2 | 16.4 / 38.2 |
English to Hausa | 0.39 / 12.3 | 14.7 / 36.4 |
Swahili to English | 0.38 / 9.6 | 21.6 / 39.6 |
English to Swahili | 0.14 / 11.8 | 12.6 / 36.9 |
InkubaLM: best of a few-shot and a zero-shot prompt, about 175 tokens/s, but it loops and repeats the prompt. It is a base model, not trained to translate, and this is a third-party GGUF conversion. Its paper reports zero-shot BLEU around 7 to 8 on translation, so the conclusion holds.
NLLB: 0.3 to 0.4 s per sentence. The references in this set are noisy, so the scores likely underestimate it.
Through the MCP server (demo/mcp_check.py): first call about 6 s while the model loads, then 0.3 to 0.4 s per sentence. The CLI reloads the model on each run (about 15 s).
What it gets wrong
Real outputs from testing:
Habari ya asubuhi(good morning) became "Morning news"."It fails when the list is empty." became Swahili that means "it works when the list is empty".
majaribio(tests, or experiments) became "experimentation".
That is why the agent always shows both versions, and why better models for these languages matter more than the plumbing.
Limits
The code is MIT (see LICENSE). The models are not: NLLB and InkubaLM are CC BY-NC 4.0, so this is a research prototype only.
Text only. Voice (dictation) is the next step.
No automatic language detection: the agent picks the code, or asks.
A line with inline code is translated in pieces around the code, which costs some grammar.
Tests
uv run --group dev pytest -q # 13 tests, offlineTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Agentic localization for documents and media, with quality checks and optional human review.
Localize your app from your AI agent: add strings, auto-translate, and route them to human review.
Website localization, multilingual SEO, and automated content translation for AI agents.
Source-backed prompting and coding-agent guidance with provenance and freshness checks.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables coding agents like Claude Code and Codex to offload boilerplate generation, summarization, and other bounded text tasks to local or cheap cloud LLMs, keeping the frontier agent in charge of judgment and code edits.93MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to perform semantic code search locally, finding code by meaning rather than exact keywords.3MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to perform hybrid code search, get explanations, analyze relations and impacts, retrieve context packs, and generate documentation across ~45 languages via 17 MCP tools, all powered by a local vector database and LLM.3Apache 2.0
- AlicenseAqualityBmaintenanceEnables Claude Code to delegate agent tasks to local LLMs via llama.cpp or vLLM servers on your own hardware, reducing API usage while maintaining full agent capabilities.1123MIT