Rosetta MCPサーバー
✓ 検証済みClaude AIを使用して、書式、数式、グラフ、およびデータの整合性をすべて維持したままExcelファイルを翻訳します。
別名 ewalid/rosetta, rosetta, @ewalid/rosetta-mcp
- スター
- 2
- ツール
- —
- ダウンロード数(30日間)
- 145
- 最新バージョン
- 0.1.1
- 最終コミット
- 2026年7月23日
- ライセンス
- MIT
Rosetta MCPとは
RosettaはMCPサーバーです。 Claude AIを使用して、書式、数式、グラフ、およびデータの整合性をすべて維持したままExcelファイルを翻訳します。.
プロジェクトのREADMEから生成された概要
Rosetta MCP server について
Rosettaは、ドキュメントの元の構造を維持しながら、Claude AIを使用してExcelファイルを翻訳する方法を提供します。数式、グラフ、結合されたセル、または色や枠線などの特定のセル書式といった複雑な要素を失うことなく、スプレッドシートをローカライズする必要があるユーザー向けに設計されています。このツールは、テキストを抽出してAnthropicのモデルにバッチ単位で送信し、その結果を新しいファイルに書き戻すことで、元のファイルが変更されないように動作します。
開発者は、コマンドラインインターフェース、REST API、またはClaude Desktop用のMCP統合を通じてこのサーバーとやり取りできます。サービスを利用するには、Anthropic APIキーを提供する必要があります。このシステムでは、対象言語の指定、翻訳する特定のシートの選択、専門用語の精度を向上させるためのドメイン固有のコンテキストの提供など、きめ細かな制御が可能です。また、ブラウザベースのワークフロー用のWebアプリケーションも含まれています。
できること
- 1特定のデータシートを対象にする大規模なワークブック内の特定のシートのみを翻訳対象にします。
- 2技術翻訳の精度を向上させるドメインコンテキストを提供することで、医療用語や技術用語が正しく翻訳されるようにします。
- 3翻訳コストを見積もるジョブを実行する前に、翻訳可能なセルの数と予想されるコストを確認します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
Rosetta MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude CodeにRosetta MCPをインストール
$ claude mcp add --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' rosetta -- npx -y @ewalid/rosetta-mcpCursorにRosetta MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"rosetta": {
"command": "npx",
"args": [
"-y",
"@ewalid/rosetta-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
}
}
}
}VS CodeにRosetta MCPをインストール
.vscode/mcp.json
{
"servers": {
"rosetta": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ewalid/rosetta-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
}
}
}
}VS Code CLIにRosetta MCPをインストール
$ code --add-mcp '{"name":"rosetta","type":"stdio","command":"npx","args":["-y","@ewalid/rosetta-mcp"],"env":{"ANTHROPIC_API_KEY":"<YOUR_ANTHROPIC_API_KEY>"}}'Claude DesktopにRosetta MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"rosetta": {
"command": "npx",
"args": [
"-y",
"@ewalid/rosetta-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
}
}
}
}CodexにRosetta MCPをインストール
$ codex mcp add rosetta --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' -- npx -y @ewalid/rosetta-mcpCodex config.tomlにRosetta MCPをインストール
~/.codex/config.toml
[mcp_servers.rosetta] command = "npx" args = ["-y", "@ewalid/rosetta-mcp"] [mcp_servers.rosetta.env] ANTHROPIC_API_KEY = "<YOUR_ANTHROPIC_API_KEY>"
Gemini CLIにRosetta MCPをインストール
$ gemini mcp add -s user -e 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' rosetta npx -- -y @ewalid/rosetta-mcpGemini settings.jsonにRosetta MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"rosetta": {
"command": "npx",
"args": [
"-y",
"@ewalid/rosetta-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>"
}
}
}
}設定
ANTHROPIC_API_KEY必須シークレットYour Anthropic API key from console.anthropic.com. Required to perform translations using Claude AI.
| 名前 | 説明 | 種類 |
|---|---|---|
| ANTHROPIC_API_KEY | Your Anthropic API key from console.anthropic.com. Required to perform translations using Claude AI. | 必須シークレット |
自動チェック
実行日 2026年11月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能ewalid/rosetta is public and reachablegithub.com/ewalid/rosetta ↗合格
- パッケージがこのリポジトリをソースとして指定@ewalid/rosetta-mcp names ewalid/rosetta as sourcenpmjs.com/package/@ewalid/rosetta-mcp ↗合格
- ビルドの来歴 (Sigstore 証明)No build attestation published for this release未チェック
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-07-23github.com/ewalid/rosetta ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @ewalid/rosetta-mcp合格
- パッケージおよびその依存関係に重大な勧告なし1 resolved dependencies checked; no critical advisoryosv.dev ↗合格
- モデルへの隠れた指示がない0 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされている未チェック
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るRosetta
AI-powered Excel translation CLI. Translates Excel files while preserving formatting, formulas, and data integrity.
What it does
Rosetta translates all text in your Excel files using Claude AI, without breaking:
- Formulas and calculations
- Formatting (fonts, colors, borders)
- Merged cells and layouts
- Charts and images
- Dropdown menus
- Rich text (bold, italic within cells)
Prerequisites
You need a Claude API key from Anthropic.
- Go to console.anthropic.com
- Create an account (or sign in)
- Go to API Keys and create a new key
- Copy the key (starts with
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.
Installation
Install from PyPI:
pip install rosetta-xl
Then set your API key:
# Linux/macOS
export ANTHROPIC_API_KEY=sk-ant-your-key-here
# Windows (Command Prompt)
set ANTHROPIC_API_KEY=sk-ant-your-key-here
# Windows (PowerShell)
$env:ANTHROPIC_API_KEY="sk-ant-your-key-here"
Or create a .env file in your working directory:
ANTHROPIC_API_KEY=sk-ant-your-key-here
Usage
# Translate to French
rosetta input.xlsx -t french
# Translate to Spanish with custom output name
rosetta input.xlsx -t spanish -o translated.xlsx
# Specify source language (auto-detected by default)
rosetta input.xlsx -s english -t german
# Translate only specific sheets
rosetta input.xlsx -t french --sheets "Sheet1" --sheets "Data"
# Add context for better translations (e.g., domain-specific terms)
rosetta input.xlsx -t french -c "Medical terminology document"
Options
| 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) |
Examples
Translate a price list to multiple languages:
rosetta prices.xlsx -t french -o prices_fr.xlsx
rosetta prices.xlsx -t german -o prices_de.xlsx
rosetta prices.xlsx -t spanish -o prices_es.xlsx
Translate a medical form with context:
rosetta patient_form.xlsx -t french -c "Medical intake form with clinical terminology"
Translate only the "Questions" sheet:
rosetta survey.xlsx -t japanese --sheets "Questions"
Troubleshooting
"ANTHROPIC_API_KEY not set"
- Make sure you've exported the key:
export ANTHROPIC_API_KEY=sk-ant-... - Or create a
.envfile with the key
"Invalid API key"
- Check that your key starts with
sk-ant- - Make sure you copied the full key from console.anthropic.com
"Rate limit exceeded"
- You've hit Anthropic's rate limits. Wait a minute and try again
- Or reduce batch size:
rosetta input.xlsx -t french -b 20
How it works
- Extracts all text cells from your Excel file
- Sends text to Claude AI for translation (in batches)
- Writes translations back, preserving all formatting
- Saves the translated file
Your original file is never modified.
Web App & API
Rosetta also includes a web application and REST API for browser-based translations.
Running the API server
# Install with uv (recommended)
uv sync
# Start the server
uv run uvicorn rosetta.api:app --reload
# Or with pip
pip install -e .
uvicorn rosetta.api:app --reload
The API runs at http://localhost:8000 by default.
Running the frontend
cd frontend
npm install
npm run dev
The frontend runs at http://localhost:5173 and connects to the API.
API Endpoints
| 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 |
Real-time Progress
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).
MCP Integration
Rosetta includes MCP (Model Context Protocol) servers for both Claude Desktop and Claude Web.
For Claude Desktop (Local)
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"rosetta": {
"command": "uv",
"args": ["run", "--directory", "/path/to/rosetta", "python", "-m", "rosetta.api.mcp"],
"env": {
"ANTHROPIC_API_KEY": "your-key-here"
}
}
}
}
Usage: Use local file paths for best results.
Translate ~/Downloads/report.xlsx to French
For Claude Web (Browser)
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.
Requirements
- Python 3.11+
- Anthropic API key
License
MIT
Rosetta MCPのよくある質問
Rosetta MCPをClaude Codeに追加するには
ターミナルでclaude mcp add --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' rosetta -- npx -y @ewalid/rosetta-mcpを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
Rosetta MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
Excelファイルを翻訳すると、数式や書式が壊れてしまいますか?
いいえ、Rosettaは数式、計算、書式、結合されたセル、グラフ、画像、ドロップダウンメニューを保持したままテキストを翻訳します。
Rosettaを使用するにはどのAPIキーが必要ですか?
このサービスを利用するには、AnthropicのClaude APIキーが必要です。
特定の業界における翻訳の精度を高めるにはどうすればよいですか?
コマンドにドメイン固有のコンテキストを追加することで、AIが専門用語を理解しやすくなります。