About ruTS-mcp
ruTS-mcp exposes Russian-text analysis from the ruTS library to LLM agents. It returns statistical measures with interpretation and caveats, alongside tools for examining words, collocations, and differences between texts.
Key features
- 01Grouped text statistics
- 02Readability and reader-age estimates
- 03Word and collocation analysis
- 04Text dispersion and keyness
- 05Style comparison across texts
Use cases
- 01Assessing readability of Russian text
- 02Finding word occurrences with context
- 03Comparing style across text collections
MCP support
The MCP server exposes ruTS analysis tools, resources, and prompts to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
6Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| path | any | No | Absolute path to a UTF-8 text file on the machine running the server, instead of text: long text need not be passed in the argument |
| text | string | No | Text in Russian; path can be specified instead |
| groups | array | No | Statistics groups; each is a result key |
| descriptions | boolean | No | Add descriptions to statistics; false gives a shorter response when descriptions are already known from a previous call |
| distributions | boolean | No | Add distributions of words by number of letters and syllables, and punctuation marks by type (basic group) |
| readability_preset | enum | No | Flesch-Kincaid test coefficients (academic also includes the Flesch index), readability group: plainrussian is calibrated to school grades and is suitable for any text, including fiction; fiction uses Oborneva's coefficients based on literary texts and gives a grade several years higher; academic uses Solovyova, Ivanova, and Solnyshkina's coefficients based on textbooks for grades 5–11. Leave plainrussian unless there is a specific reason not to.plainrussian | fiction | academic |
Details
From the project README
ruTS-mcp
MCP-сервер для ruTS - статистики русского текста как инструменты для LLM-агентов
Документация · PyPI · English
ruTS-mcp дает LLM-агенту инструменты библиотеки ruTS, чтобы измерить русский текст, а не оценивать его на глаз. Каждое значение приходит вместе с описанием, прочтением по шкале, если она есть, и предупреждениями, когда значение неустойчиво или не имеет смысла для текста.
analyze_text- статистики текста по группам: базовые, удобочитаемость с классом и возрастом читателя, лексическое разнообразие, морфология, фоностатистики, связность, стиль и канцелярит, лексическая сложность, стих, синтаксисkwic- вхождения слова или словосочетания с контекстомcollocations- устойчивые сочетания и сочетаемость словаdispersion- насколько равномерно слова распределены по текстуkeyness- ключевые слова относительно русского языка или другого текстаcompare_texts- чем различаются два корпуса текстов по признакам стиля- Ресурсы и промпты - шкалы удобочитаемости и нормы стиля, готовые разборы: удобочитаемость, канцелярит, стихотворение, SEO-проверка, сравнение двух текстов
Установка
Сервер запускается через uvx из uv, который сам скачает пакет и Python. Подключение к Claude Code:
claude mcp add ruts -- uvx ruts-mcp
Для групп lexical, verse и syntax нужны словари и модель spaCy, их скачивает одна команда:
uvx ruts-mcp download
Сервер вместе со скиллом, который подсказывает агенту, как им пользоваться, ставит плагин Claude Code:
/plugin marketplace add SergeyShk/ruTS-mcp
/plugin install ruts@ruts-mcp
Подключение к Claude Desktop, Cursor и другим клиентам и настройки - в документации.
Лицензия
MIT. Словари, которые скачивает ruts-mcp download, распространяются на условиях их авторов: частотный словарь Ляшевской и Шарова, словарь ударений Козиева (CC0), модель spaCy (MIT).
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.