Skip to main content
Glama
README.md
<p align="center">
  <img src="https://raw.githubusercontent.com/SergeyShk/esTS-mcp/master/docs/img/ests-mcp.png" alt="esTS-mcp" width="480">
</p>

<h1 align="center">esTS-mcp</h1>

<p align="center">
  <b>MCP server for <a href="https://github.com/SergeyShk/esTS">esTS</a></b> - statistics of Spanish texts as tools for LLM agents
</p>

<p align="center">
  <a href="https://sergeyshk.github.io/esTS-mcp/">Documentation</a> ·
  <a href="https://github.com/SergeyShk/esTS-mcp/blob/master/README.es.md">Español</a>
</p>

<p align="center">
  <a href="https://github.com/SergeyShk/esTS-mcp/blob/master/LICENSE.txt"><img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License"></a>
</p>

---

**esTS-mcp** gives an LLM agent the tools of the [esTS](https://github.com/SergeyShk/esTS) library to measure a Spanish text instead of judging it by eye: readability with the school stage and reader age of Spain, lexical diversity, morphology, syntax, meter and rhyme, keywords, collocations, comparison of corpora, charts. Every value comes with a description, a reading by a scale where there is one, and warnings when the value is unstable or meaningless for the text.

* **[`analyze_text`](https://sergeyshk.github.io/esTS-mcp/tools/analyze_text/)** - statistics of a text by groups: basic, readability with the school stage and the reader age, lexical diversity, morphology, phonostatistics, cohesion, style and the administrative style, lexical sophistication, verse, syntax, readability formulas of other languages
* **[`kwic`](https://sergeyshk.github.io/esTS-mcp/tools/kwic/)** - occurrences of a word or a phrase with their context
* **[`collocations`](https://sergeyshk.github.io/esTS-mcp/tools/collocations/)** - set phrases and the company of a word
* **[`dispersion`](https://sergeyshk.github.io/esTS-mcp/tools/dispersion/)** - how evenly words are spread over a text
* **[`keyness`](https://sergeyshk.github.io/esTS-mcp/tools/keyness/)** - keywords against Spanish books or another text
* **[`compare_texts`](https://sergeyshk.github.io/esTS-mcp/tools/compare_texts/)** - how two corpora of texts differ by style features
* **[`visualize`](https://sergeyshk.github.io/esTS-mcp/tools/visualize/)** - a chart of a text as an image: Zipf's law, sentence lengths, places of words, the rhythm of a verse
* **[`find_texts`](https://sergeyshk.github.io/esTS-mcp/tools/find_texts/)** - reference texts of the esTS datasets: the prose of Spanish and Latin American classics, the sonnets of DISCO
* **[Resources and prompts](https://sergeyshk.github.io/esTS-mcp/resources/)** - the readability scales, ready reviews: readability, the administrative style, a poem, a comparison of two texts

## Installation

The server runs through `uvx` from [uv](https://docs.astral.sh/uv/getting-started/installation/), which downloads the package and Python itself. Connecting to Claude Code:

```bash
claude mcp add ests -- uvx ests-mcp
```

The `lexical` group and `keyness` against the language need the frequency dictionary, downloaded by one command:

```bash
uvx ests-mcp download
```

The esTS datasets for `find_texts` are downloaded by the same command by name: `uvx ests-mcp download spanish_sonnets` (5 MB on disk) or `spanish_literature` (86 MB).

The Claude Code plugin installs the server together with the [skill](https://sergeyshk.github.io/esTS-mcp/installation/#skill) that tells the agent how to use it:

```
/plugin marketplace add SergeyShk/esTS-mcp
/plugin install ests@ests-mcp
```

Connecting to Claude Desktop, Cursor and other clients, the server over HTTP and the Docker image, the settings - in the [documentation](https://sergeyshk.github.io/esTS-mcp/installation/).

## License

[MIT](https://github.com/SergeyShk/esTS-mcp/blob/master/LICENSE.txt). The data that `ests-mcp download` downloads are distributed on the terms of their authors: the frequency dictionary of [Google Books Ngram](https://storage.googleapis.com/books/ngrams/books/datasetsv3.html) (CC BY 3.0), the sonnets of [DISCO](https://github.com/pruizf/disco) (CC BY 4.0), the works of [Project Gutenberg](https://www.gutenberg.org) (public domain).

<!-- mcp-name: io.github.SergeyShk/ests-mcp -->

TDQS

A4.2/5.0

Scored across 8 tools

Disambiguation4/5

Each tool targets a clearly different analysis: whole-text statistics (analyze_text), concordance (kwic), word pairs (collocations), spread (dispersion), keyword contrast (keyness), corpus comparison (compare_texts), charts (visualize) and dataset discovery (find_texts). There is some overlap, since dispersion and parts of diversity are also computable through analyze_text and visualized via visualize's dispersion/zipf charts, and compare_texts recomputes 210 features that analyze_text exposes individually, but descriptions make the intended division of labor readable.

Naming Consistency3/5

The set mixes verb_noun names (analyze_text, compare_texts, find_texts) with bare noun names (collocations, dispersion, keyness) and a lone acronym (kwic), plus an imperative verb without an object (visualize). The names are readable and English-consistent in vocabulary, but there is no single predictable pattern an agent can rely on.

Tool Count5/5

Eight tools is well scoped for a Spanish text-statistics server: one entry point per analysis family plus dataset discovery and comparison, with no obviously redundant members. Nothing feels thin or bloated.

Completeness4/5

The surface covers the stylometric lifecycle well: find texts, analyze them, query words/phrases, compare corpora, and render charts, with links (ests://...) tied into every consumer tool. Minor gaps remain: dataset download is only a shell command referenced in warnings rather than a tool, and there is no tool to fetch or display a text's raw content, so an agent must rely on outside file access.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues