The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Rosetta MCP listing page.
AI-powered Excel translation CLI. Translates Excel files while preserving formatting, formulas, and data integrity.
Rosetta translates all text in your Excel files using Claude AI, without breaking:
You need a Claude API key from Anthropic.
sk-ant-...)Note: API usage is billed by Anthropic. See anthropic.com/pricing for current rates. Translating a typical Excel file costs a few cents.
Install from PyPI:
Then set your API key:
Or create a .env file in your working directory:
| Option | Short | Description |
|---|---|---|
--target-lang | -t | Target language (required) |
--source-lang | -s | Source language (auto-detect if omitted) |
--output | -o | Output file path (default: input_translated.xlsx) |
--sheets | Sheets to translate (can repeat, default: all) | |
--context | -c | Domain context for better accuracy |
--batch-size | -b | Cells per API call (default: 50) |
Translate a price list to multiple languages:
Translate a medical form with context:
Translate only the "Questions" sheet:
"ANTHROPIC_API_KEY not set"
export ANTHROPIC_API_KEY=sk-ant-....env file with the key"Invalid API key"
sk-ant-"Rate limit exceeded"
rosetta input.xlsx -t french -b 20Your original file is never modified.
Rosetta also includes a web application and REST API for browser-based translations.
The API runs at http://localhost:8000 by default.
The frontend runs at http://localhost:5173 and connects to the API.
| Endpoint | Method | Description |
|---|---|---|
/translate | POST | Translate an Excel file (returns file) |
/translate-stream | POST | Translate with real-time progress via SSE |
/estimate | POST | Get cell count and cost estimate |
/sheets | POST | List sheet names in a file |
/count | POST | Count translatable cells |
/preview | POST | Preview cells that will be translated |
/health | GET | Health check |
The /translate-stream endpoint uses Server-Sent Events (SSE) to stream translation progress in real-time. The frontend automatically falls back to the standard /translate endpoint on networks that don't support SSE (e.g., corporate proxies).
Rosetta includes MCP (Model Context Protocol) servers for both Claude Desktop and Claude Web.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
Usage: Use local file paths for best results.
Note: Claude.ai does not yet support custom MCP servers in the browser (as of January 2026).
Current recommendation: Use the web app for browser-based translations.
See MCP_USAGE.md for detailed instructions.
MIT