rosettex
Fetches scientific papers from arXiv by ID or link, including TeX source or born-digital PDF, as input for the translation workflow.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@rosettex Translate arXiv paper 2108.07760 into Vietnamese and keep the layout."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
rosettex ๐โจ
Translate scientific papers into 19+ languages โ and keep the paper's own layout.
Quick Install โข Features โข How It Works โข Connect Your Agent โข Languages โข Manual Install
A born-digital PDF (left) and rosettex's Vietnamese output (right): same page, same figure, same fonts for names and formulas. Paper: Berestov et al., CEUR-WS Vol-3550 (CC BY 4.0).
rosettex lets an AI coding agent translate a whole scientific paper โ from its TeX source or from a
born-digital PDF โ and returns a PDF with the paper's own layout.
rosettex does not translate by itself โ your agent is the translator. rosettex does the engineering around it: it splits the paper into question sheets with protected placeholders, checks every answer against strict rules, and typesets the result so formulas, figures, citations and links stay real, selectable and clickable. It ships as a CLI, an MCP server and an Agent Skill, packaged as a plugin for the major agent harnesses.
๐ Key Features
Feature | Description |
๐ค Built for agents | Every command speaks |
๐ Original layout | From TeX source the paper is rebuilt with its own class and packages; from a PDF the original pages are kept and only the text in the translated boxes is replaced. |
๐งฎ Formulas stay formulas | Math, citations and links become placeholders ( |
๐ก๏ธ Strict checks |
|
๐ Repair loop | When text does not fit, |
๐ Many scripts | Latin, Cyrillic, CJK, Arabic/Persian/Urdu, Devanagari, Bengali, Tamil, Thai, Myanmar, Ethiopic โฆ with bundled fonts (Noto, Vazirmatn) and copy/search-friendly output. |
๐ One plugin, many harnesses | Claude Code, Codex, GitHub Copilot, VS Code, Cursor, Antigravity, Gemini CLI, Hermes, Devin and more install it from this repository; any MCP client or Agent Skills host can use it too. |
๐ป Linux, macOS, Windows | CI builds translated PDFs (Vietnamese, Arabic, Japanese) on all three. |
Related MCP server: MagicTeX MCP Server
๐ Two Routes
From TeX source | From a born-digital PDF | |
Input | folder, archive, arXiv ID or link | a PDF with a text layer (journals, arXiv PDF-only, Word exports) |
Output | the paper recompiled with LuaLaTeX in the target language | the original pages with translated text in the same boxes |
Best for | any paper with source; changes of writing direction (e.g. English โ Arabic) | papers without source |
๐ How It Works
flowchart LR
A[๐ TeX source<br/>or PDF] --> B[๐งฉ rosettex prepare<br/>sheets + placeholders]
B --> C[๐ค Your agent<br/>translates]
C --> D[๐ก๏ธ rosettex check<br/>placeholders ยท numbers ยท terms]
D --> E[๐๏ธ rosettex build<br/>LuaLaTeX]
E -->|needs_repair| C
E --> F[๐ Translated PDF]rosettex fetch 2108.07760 -o work # folder, archive, arXiv ID/link, or a local .pdf
rosettex prepare work --lang vi # question sheets in work/read/, glossary in work/terms.md
# โฆ the agent appends "sNNNN <translation>" lines to work/out/NN.txt โฆ
rosettex check work # repeat until ok
rosettex build work --out paper.vi.pdf # may ask for shorter text (needs_repair), then build again๐ Quick Install: Let Your Agent Do It
Copy the prompt below and send it to your coding agent. It installs everything into your home folder and asks before any download.
Install rosettex (https://github.com/20235106-huynk/rosettex) and connect it to yourself: install uv if it is
missing, then `uv tool install rosettex`, `rosettex setup` (follow its next_argv), `rosettex doctor`, and the rosettex
plugin for your harness from the README (or `rosettex install-skill`). No sudo; ask me before any download or installer.Then just ask, for example: "Translate arXiv 1512.03385 into Simplified Chinese and save it as ~/papers/resnet.zh.pdf."
The agent fetches the paper, picks the field and key terms, translates sheet by sheet, runs check until it passes,
builds the PDF, shortens any text build reports as too long, and tells you where the PDF is.
๐ Connect Your Agent
This repository is a plugin at its root: one skill (skills/rosettex) and one MCP server that uvx starts from the
release on PyPI (uvx rosettex==<version> mcp), so uv must be on PATH. The first run of setup installs TeX (the agent
asks you first).
Install as a plugin
Harness | Command |
Claude Code |
|
Claude Desktop / claude.ai | Customize โบ Plugins โบ Add marketplace |
Codex CLI / ChatGPT desktop |
|
GitHub Copilot CLI |
|
VS Code (Copilot) | Chat: Install Plugin from Source with the repository URL, or add |
Antigravity |
|
Gemini CLI |
|
Hermes |
|
Devin (Desktop, CLI, cloud) |
|
Factory Droid |
|
Auggie |
|
Junie CLI |
|
Qwen Code |
|
goose |
|
Kiro IDE | Powers โบ Add Custom Power โบ Import power from a repository URL |
Skill + MCP server (every other harness)
Install the skill:
rosettex install-skill(writes~/.agents/skills,~/.claude/skills,~/.gemini/config/skills, and the Cline, Kiro, Qoder, Trae and CodeBuddy skill folders when they exist), ornpx skills add 20235106-huynk/rosettex.Add the MCP server. Most harnesses (Cursor, Cline, Kiro, Qoder, Kimi Code, Pi, CodeBuddy, Warp, Junie, Auggie, Tabnine, Trae, JetBrains AI Assistant) take the standard block in their MCP settings:
{ "mcpServers": { "rosettex": { "command": "uvx", "args": ["rosettex", "mcp"] } } }Harness | Where | Entry |
OpenCode |
|
|
Kilo |
|
|
Crush |
|
|
goose |
|
|
Mistral Vibe |
|
|
Amp | CLI |
|
Zed |
|
|
Zencoder | VS Code |
|
Visual Studio |
|
|
GitHub Copilot cloud agent | repository Settings โบ Copilot โบ MCP servers |
|
Harnesses that accept only remote MCP servers (Android Studio, Replit, ChatGPT custom MCP) cannot run this stdio server;
use the skill and the CLI there. Without any integration, tell the agent: "Run rosettex guide and follow it."
๐ ๏ธ Manual Install
Requirements
Python โฅ 3.11 and uv.
LuaLaTeX:
rosettex setupinstalls a private TinyTeX into~/.rosettex(asks first; retries flaky CTAN mirrors), orrosettex setup --tex systemuses an existing TeX Live.
uv tool install rosettex
rosettex setup # or: rosettex setup --tex system
rosettex doctor
rosettex install-skillEnvironment variables
ROSETTEX_HOME: where rosettex keeps its TeX toolchain and state (default~/.rosettex).
Update and uninstall
uv tool upgrade rosettex && rosettex install-skill --force
rosettex install-skill --remove && uv tool uninstall rosettex # then delete the folder ~/.rosettex๐ Languages
Language data covers about 50 target languages (src/rosettex/data/langs/). Tested end to end:
Script | Languages |
Latin | Vietnamese, French |
Cyrillic | Russian |
Han / Kana / Hangul | Chinese (Simplified, Traditional), Japanese, Korean |
Arabic (RTL) | Arabic, Persian, Urdu |
Indic | Hindi, Bengali, Gujarati, Kannada, Tamil, Telugu |
Southeast Asian | Thai, Myanmar |
Ethiopic | Amharic |
โ ๏ธ Limits
The PDF route needs a born-digital PDF with a text layer (no OCR) and keeps the writing direction: a left-to-right paper cannot become right-to-left there โ use the TeX source for that.
Table contents are not translated; scanned PDFs, vertical writing and PDF forms are not supported.
Very tight layouts may need shorter translations (
needs_repair) or a slightly smaller font.
๐ Privacy and network access
rosettex runs on your machine: no server, no account, no telemetry. It goes online only to download what you ask for โ
a paper from arxiv.org (fetch), the TeX toolchain from github.com and mirror.ctan.org (setup, after you agree), and
the package from PyPI when uvx starts the MCP server. Local papers are never uploaded. Your AI agent, not rosettex,
does the translating; what it sends to its model provider follows that provider's policy. Details:
PRIVACY.md.
๐ License
MIT โ see LICENSE. Bundled fonts are under the SIL Open
Font License 1.1 (src/rosettex/data/fonts/LICENSES/). Release notes: CHANGELOG.md.
Available Tools
10 toolsbuildC
Typeset the translated PDF. See guide.
Inputs: out (required), work (required), force, budget, +1 more.
checkCRead-only
Check the translations written so far. See guide.
Inputs: work (required), file.
doctorCRead-only
Check the toolchain. See guide.
Inputs: force.
fetchA
Fetch a paper's TeX source (folder, archive, arXiv ID/link) or born-digital PDF into a work directory. See guide.
Inputs: out (required), source (required), main.
fixCDestructive
Copy a source file into work/fix/ for editing, or drop a fix (TeX route only). See guide.
Inputs: work (required), drop, file.
guideCRead-only
The full rosettex workflow and rules. Read it first. See guide.
Inputs: no named parameters.
prepareC
Prepare the work directory for translation into a language. See guide.
Inputs: lang (required), work (required), from, route.
reviewCRead-only
Write a review sheet of the translation. See guide.
Inputs: work (required), out.
setupB
Install the TeX toolchain rosettex needs (asks before downloading). See guide.
Inputs: tex, yes, budget.
statusCRead-only
Where a work directory stands and what to run next. See guide.
Inputs: work (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 10 tools
Most tools map to distinct workflow stages (fetch source, prepare workdir, build PDF, fix a file, install toolchain, diagnose toolchain). The inspection-flavored tools 'check', 'review', and 'status' sit close together, but the descriptions separate them (verify translations vs. produce a review sheet vs. report workdir state).
All names are single lowercase tokens with no camelCase/snake_case mixing, which reads consistently. The only minor deviation is that most are imperative verbs (fetch, prepare, build, fix) while a few are bare nouns (guide, status).
Ten tools is well within the healthy range and each has an identifiable role in the pipeline. The set is slightly heavy on inspection/diagnostics (check, review, status, doctor), but none is clearly redundant.
The surface covers the full lifecycle: install toolchain, fetch source, prepare workdir, check/review translations, edit via fix, typeset, and query state, plus docs. Minor gaps exist โ there is no explicit tool for committing or exporting the finished translation, and 'fix' bundles copy and drop behaviors into one entry point.
Maintenance
Related MCP Connectors
Create and revise structured scientific papers in real LaTeX. Compatible with Overleaf.
Translate PDFs, scans, Office files and EPUB across 475 languages and styles, preserving layout.
Translate PDF, scanned PDF, DOCX and EPUB files into 70+ languages with the layout kept.
Agentic localization for documents and media, with quality checks and optional human review.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to create, edit, and validate LaTeX documents through a standardized protocol with support for multiple document classes and package management. It provides tools for document structure analysis and file organization to streamline the generation of professional academic papers.827MIT
- AlicenseAqualityCmaintenanceEnables AI agents to edit LaTeX documents with a live PDF preview, source editor, and PDF-anchored comments that become edit instructions. Requires no local TeX install, using a WASM TeX engine.798 npm5AGPL 3.0
- AlicenseAqualityCmaintenanceEnables batch translation of arXiv, DOI, or paper-page LaTeX sources into Simplified Chinese and compilation of Chinese PDFs via XeLaTeX, using DeepSeek's deepseek-flash model with glossary, structure validation, resume, and QA.4MIT
- FlicenseNot gradedqualityAmaintenanceEnables MCP clients such as Claude Desktop, Claude Code, and Cursor to directly access and process scientific papers by retrieving and flattening their LaTeX sources. It provides tools for full paper prompts, abstracts, section headings, and specific sections, improving handling of equations and mathematical notation.-