Grounded Gujarati dictionary for AI assistants: meanings, synonyms, idioms, inflections
Runs on your machine from its package; the steps are below.

At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx gujarati-lexicon-mcp
MCP client config
{
"mcpServers": {
"gujarati-lexicon": {
"command": "uvx",
"args": [
"gujarati-lexicon-mcp"
]
}
}
}A grounded Gujarati dictionary for AI assistants. Connect it to Claude (or any MCP client) and the assistant looks Gujarati words up in real dictionary data instead of guessing: meanings, synonyms, idioms (રૂઢિપ્રયોગ), and inflected forms like ઘરમાં or આંખોમાં.
Why this exists: LLMs are unreliable with Gujarati. They invent meanings, mix up idioms, and produce convincing but wrong usage. This server gives the model facts to stand on and tells it plainly when a word is not in the dictionary.
![]()
User: અમે નો અર્થ શું છે?
Claude (after calling
define): અમે means "we", the plural of હું (I)…
User: ઘરમાં નો અર્થ?
Claude: ઘરમાં = ઘર + માં → "in the house". The server matched the inflected form to its base word ઘર.
| Primitive | Name | What it does |
|---|---|---|
| Tool | define(word) | Meanings, part of speech, examples, transliteration |
| Tool | synonyms(word) | Synonyms (સમાનાર્થી શબ્દો) from all sources, deduplicated |
| Tool | idioms(word) | Idioms (રૂઢિપ્રયોગ) containing the word; never invents any |
| Resource | lexicon://word-of-the-day | A daily word from the hand-checked set |
| Prompt | explain_passage | Explains a Gujarati passage word by word using the tools |
Requires uv.
Add this to your Claude Desktop config (Settings → Developer → Edit Config):
"args": ["gujarati-lexicon-mcp"]
Restart Claude Desktop completely (quit from the system tray), open a new chat, and ask about any Gujarati word.
On Windows, if Claude Desktop can't find
uvx, use its full path (find it withwhere uvx), e.g.C:\\Users\\<you>\\.local\\bin\\uvx.exe.
A word goes through three layers, from most to least reliable:
flowchart LR
A[Input word] --> B{Exact headword?}
B -- yes --> C{Pure inflected form?}
C -- yes --> D[Follow Wiktionary link<br/>ઘરે → ઘર]
C -- no --> E[Return entry]
D --> E
B -- no --> F[Strip suffixes<br/>માં, નો, ની, ે, ો ...]
F -- match --> E
F -- no match --> G[Not found + suggestions<br/>tell the model not to guess]
form_of field, and falls back to parsing glosses like "plural of X" where that field is missing.Responses keep sources separate (curated vs wiktionary_senses), so the model can attribute meanings honestly.
| Source | Provides | License |
|---|---|---|
curated.json | Gujarati meanings, idioms, synonyms (hand-checked) | MIT (this project) |
wiktionary.json | ~6,800 words: English meanings, transliterations, synonyms, inflection links | CC BY-SA |
Wiktionary data comes from Wiktionary via kaikki.org, extracted with wiktextract:
Tatu Ylonen. Wiktextract: Wiktionary as Machine-Readable Structured Data. Proceedings of the 13th Conference on Language Resources and Evaluation (LREC), pp. 1317–1325, 2022.
The raw dump is not committed. To regenerate wiktionary.json:
mkdir -p data/raw
curl -L -o data/raw/kaikki-gujarati.jsonl "https://kaikki.org/dictionary/Gujarati/kaikki.org-dictionary-Gujarati.jsonl"
uv run python scripts/build_wiktionary.py
The converter groups entries by word, keeps only what the tools need (20 MB → a compact JSON file), drops non-Gujarati-script headwords, and records inflection links.
git clone https://github.com/aarshbharat/gujarati-lexicon-mcp
cd gujarati-lexicon-mcp
uv sync
uv run pytest -v # run tests
uv run mcp dev src/gujarati_lexicon_mcp/server.py # open MCP Inspector
Project layout:
src/gujarati_lexicon_mcp/
├── server.py # MCP server: tools, resource, prompt
└── data/ # dictionary data shipped with the package
scripts/build_wiktionary.py # raw kaikki dump → wiktionary.json
tests/ # pytest
src/gujarati_lexicon_mcp/data/wiktionary.json): CC BY-SA, see Wiktionary:CopyrightsBuilt by Aarsh Dhokai · AI × AI: Artificial Intelligence × Aarsh India