Skip to main content
Glama
README.md
# russian-word-mcp

[![russian-word-mcp MCP server](https://glama.ai/mcp/servers/akinakkusru-max/russian-word-mcp/badges/score.svg)](https://glama.ai/mcp/servers/akinakkusru-max/russian-word-mcp)

**Give your AI assistant reliable Russian word stress, inflection tables and dictionary lookup.**

Language models often put the stress on the wrong syllable in Russian, and they rarely say when a word's stress depends on its meaning. This [MCP](https://modelcontextprotocol.io) server answers from a dictionary of about 59,000 words and 567,000 inflected forms instead of from the model's memory.

| Tool | What it does |
|---|---|
| `stress_text` | Adds stress marks and restores ё in any Russian text. Words whose stress depends on meaning or case are **left unmarked and listed with every option**, most common first, so the assistant picks by context instead of guessing. |
| `word_info` | Looks up a word in any form (`людьми` finds `челове́к`, plural instrumental) and returns part of speech, English translation, gender or aspect and aspect partner, and the full stressed inflection table. |
| `inflect` | Declines or conjugates a word given in any form. Without `form` it returns readable tables (nouns by case and number, verbs by person with past and imperative, adjectives by case and gender with short forms). With `form` it returns just that form: `inflect("книгами", form: "pl_gen")` gives `кни́г`. |

```
stress_text("Это старый замок. Я думаю, что он хороший человек.")

Э́то ста́рый замок. Я ду́маю, что он хоро́ший челове́к.

Ambiguous (choose by context; options listed most common word first):
- замок: за́мок [за́мок (noun: sg_nom, sg_acc): castle] | замо́к [замо́к (noun: sg_nom, sg_acc): lock]
```

```
inflect("людей")

**челове́к** (noun, masculine, animate): person, people; man

| Case | Singular | Plural |
| --- | --- | --- |
| nominative | челове́к | лю́ди |
| genitive | челове́ка | люде́й |
| dative | челове́ку | лю́дям |
| accusative | челове́ка | люде́й |
| instrumental | челове́ком | людьми́ |
| prepositional | челове́ке | лю́дях |
```

Verb tables say **Present** for imperfective verbs and **Future** for perfective ones, since the same personal forms mean the future for perfective verbs (`прочита́ю` = I will read).

## Use it

Try it first on [Glama](https://glama.ai/mcp/servers/akinakkusru-max/russian-word-mcp): browse the server's tools, check its quality score, or test it online with the [MCP Inspector](https://glama.ai/mcp/inspector).

Claude Code:

```bash
claude mcp add russian-word -- npx -y github:akinakkusru-max/russian-word-mcp
```

Claude Desktop or any MCP client (add to its config file):

```json
{
  "mcpServers": {
    "russian-word": { "command": "npx", "args": ["-y", "github:akinakkusru-max/russian-word-mcp"] }
  }
}
```

Runs locally, offline, no API key. First start downloads the package; the dictionary loads in about half a second.

## How good is it?

- **Coverage:** on a plain A2-level paragraph (59 words), 56 were stressed or needed no mark, 2 were listed as ambiguous (`недалеко` has two accepted stresses; `парке` has a rare homograph), and 1 was unknown (the name `Анна`; personal names are not in the dictionary). This number is locked by a test.
- **Homographs are never guessed:** `замок` (castle / lock), `руки` (genitive singular / nominative plural), `стоит` (stands / costs), `писала` and others come back as options.
- **Accuracy is the dictionary's accuracy.** OpenRussian is built from Wiktionary plus user corrections; its authors note it is not free of flaws. The build drops cells it cannot parse (65 of several hundred thousand) rather than repair them by guesswork.
- Tests start the real server over stdio and call it like an AI app does. Disabling the homograph rule on purpose makes 5 tests fail; swapping the present/future rule or dropping the form check in `inflect` makes the inflection tests fail too.

## Develop

```bash
npm install
npm test               # 42 tests
npm start              # run the server on stdio
```

Rebuild the dictionary from source:

```bash
sh scripts/fetch-raw.sh && npm run build:dict
```

## Licenses

- Code: MIT (`LICENSE`).
- Dictionary data (`data/dictionary.json.gz`): **CC BY-SA 4.0**, from [OpenRussian.org](https://en.openrussian.org) via [github.com/Badestrand/russian-dictionary](https://github.com/Badestrand/russian-dictionary). See `DATA_LICENSE.md`.

---

### Türkçe özet

Yapay zekâ asistanlarına Rusça kelime vurgusu, okunur çekim tabloları (`inflect`: isim hâlleri, fiil çekimi, sıfat çekimi) ve sözlük bilgisi veren bir MCP sunucusu. Açık lisanslı OpenRussian sözlüğünü (yaklaşık 59.000 kelime) kullanır, bilgisayarında internetsiz ve ücretsiz çalışır. Anlamına göre vurgusu değişen kelimeleri (замок: kale / kilit) tahmin etmez; seçenekleri en yaygın olandan başlayarak listeler.

TDQS

A3.8/5.0

Scored across 3 tools

Disambiguation4/5

Each tool targets a different operation: inflect generates forms from a known lemma, word_info lemmatizes an arbitrary inflected form and returns dictionary data, and stress_text annotates whole text. There is mild overlap because inflect with no `form` returns a full table that word_info also includes, but the descriptions make the intended entry points clear.

Naming Consistency3/5

All names are snake_case, but the conventions differ: `inflect` is a bare verb while `word_info` and `stress_text` are noun-based compounds. It is still readable, but there is no single predictable pattern an agent can infer new tools from.

Tool Count4/5

Three tools is lean but well matched to a narrow Russian morphology/stress domain: one for generation, one for dictionary lookup, one for text annotation. Nothing feels redundant, though the surface is small enough that a fourth complement (e.g. English-to-Russian lookup) would not be padding.

Completeness4/5

The core lifecycle of word analysis—identify a word, decline/conjugate it, and apply stress to arbitrary text—is fully covered, including shared-spelling ambiguities and unknown-word reporting. Minor gaps remain: no reverse (English or translation) lookup and no bulk multi-word inflection in a single call.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues