Installation¶
Requirements¶
The server works over stdio: the client runs it as the ests-mcp command. The easiest way is to run it with uvx from uv: uvx downloads the package and a suitable Python itself. Without uv, the server is installed into an environment with Python 3.11 or newer:
pip install ests-mcp
Then the client configuration names ests-mcp instead of uvx ests-mcp.
Connecting to a client¶
claude mcp add ests -- uvx ests-mcp
This connects the server to the current project; add --scope user to make it available in all projects. The /mcp command in a Claude Code session shows whether it is connected.
The easiest way is the bundle: download the file ests-mcp-<version>.mcpb from the latest release and open it - Claude Desktop offers to install the server. Claude Desktop installs Python and the dependencies itself; the first start takes up to a minute. The bundle does not download the data: the command uvx ests-mcp download does, it needs uv, and the bundle finds the data in the same data directory. The greatest length of a text is set in the settings of the bundle in Claude Desktop.
Or add the server to claude_desktop_config.json (Settings - Developer - Edit Config): on macOS it is in ~/Library/Application Support/Claude/, on Windows in %APPDATA%\Claude\.
{
"mcpServers": {
"ests": {
"command": "uvx",
"args": ["ests-mcp"]
}
}
}
Restart Claude Desktop after the change. If the server fails to start with an error about the uvx command, give the full path to it, which which uvx prints (where uvx on Windows).
Add the same mcpServers entry as for Claude Desktop to ~/.cursor/mcp.json to make the server available in all projects, or to .cursor/mcp.json of a project.
Any MCP client that runs servers over stdio connects esTS-mcp with the uvx ests-mcp command.
Data¶
Most groups and tools work right away. The lexical group and keyness against the language need the frequency dictionary that the package does not contain:
| Data | Used by | Download | On disk |
|---|---|---|---|
| Frequency dictionary of Google Books Ngram | the lexical group, keyness without a reference text |
0.8 MB | 4 MB |
One command downloads it:
uvx ests-mcp download
A repeated run skips what is already downloaded, --force downloads it again. The text datasets for find_texts are downloaded by the same command by name, several separated by spaces: uvx ests-mcp download spanish_literature spanish_sonnets; their sizes are in the table of datasets. What the lexical group computes without the dictionary is described with the group. The ests://data resource shows what is downloaded.
The data are kept in the user data directory and survive server updates:
| System | Directory |
|---|---|
| macOS | ~/Library/Application Support/ests-mcp |
| Linux | ~/.local/share/ests-mcp |
| Windows | %LOCALAPPDATA%\ests-mcp |
The ESTS_DATA_DIR variable sets another directory by an absolute path, for example the one where the esTS library has already downloaded its data.
Server over HTTP¶
By default the client starts the server itself and talks to it over stdio. To run the server separately - in a container, on another machine or for several clients - start it over Streamable HTTP:
uvx ests-mcp --transport http --host 127.0.0.1 --port 8000
A client connects at http://127.0.0.1:8000/mcp, in Claude Code like this:
claude mcp add --transport http ests http://127.0.0.1:8000/mcp
The image with the server and the downloaded frequency dictionary listens on port 8000; -p 127.0.0.1:8000:8000 opens it only on this machine:
docker run -p 127.0.0.1:8000:8000 ghcr.io/sergeyshk/ests-mcp
Calls over HTTP come from the network, so the server reads files by path only from the ESTS_MCP_FILES_DIR directory, and without it reads none: the text is passed in the text argument. A directory with texts is mounted into the container like this:
docker run -p 127.0.0.1:8000:8000 -v ~/texts:/texts:ro -e ESTS_MCP_FILES_DIR=/texts ghcr.io/sergeyshk/ests-mcp
The image contains only the dictionary. The text datasets for find_texts are downloaded on the machine and mounted into the container as a directory:
ESTS_DATA_DIR=~/ests-data uvx ests-mcp download spanish_sonnets
docker run -p 127.0.0.1:8000:8000 -v ~/ests-data/texts:/opt/ests-mcp/data/texts:ro ghcr.io/sergeyshk/ests-mcp
The server does not check who calls it: open it to other machines (--host 0.0.0.0 or -p 8000:8000 for the image) only in a network you trust or behind a proxy with authorization. A server on 127.0.0.1 and the image reject requests with foreign Host and Origin headers, so a page in a browser cannot reach them through DNS rebinding. The image accepts only the names localhost and 127.0.0.1; to reach it by the name or address of the machine, list them: -e FASTMCP_HTTP_ALLOWED_HOSTS='["192.168.1.10"]'.
Settings¶
Settings are environment variables:
| Variable | Default | Description |
|---|---|---|
ESTS_MCP_MAX_TEXT_LENGTH |
500000 |
Greatest number of characters of a text or a corpus that a tool accepts |
ESTS_DATA_DIR |
user data directory | Directory of the dictionary and the datasets, an absolute path |
ESTS_MCP_FILES_DIR |
- | Directory from which the tools read files by path, an absolute path; not set - any file over stdio and none over HTTP |
In Claude Code a variable is passed with -e:
claude mcp add ests -e ESTS_MCP_MAX_TEXT_LENGTH=1000000 -- uvx ests-mcp
In Claude Desktop and Cursor - with the env field of the server entry:
{
"mcpServers": {
"ests": {
"command": "uvx",
"args": ["ests-mcp"],
"env": {"ESTS_MCP_MAX_TEXT_LENGTH": "1000000"}
}
}
}
uvx ests-mcp --version prints the versions of the server and esTS.
Plugin and skill¶
The ests skill tells the agent which tool and which groups to call for a task and how to read the response, and holds the same reviews as the prompts of the server. A prompt is called by the user, while the agent loads the skill by itself when a task concerns a Spanish text.
In Claude Code the skill and the server are installed by the ests plugin:
/plugin marketplace add SergeyShk/esTS-mcp
/plugin install ests@ests-mcp
The plugin starts the server itself and needs only uv, so there is no need to connect the server with claude mcp add: otherwise the agent gets two copies of the tools. The version of the server in the plugin is pinned and is updated with the plugin by the command claude plugin update ests@ests-mcp in a terminal. The server of the plugin runs in Claude Code and in Cowork on the user's computer; in the claude.ai chat and Claude Desktop the plugin gives only the skill, and the server in Claude Desktop is connected by the bundle or by hand.
The skill without the server is in the plugins/ests/skills/ests directory of the repository: it can be copied into the skills directory of another agent.