i18n-agent

ai.i18nagent由 i18nagent.ai 發布官方發布者v1.16.3更新於 Oct 24, 2026

AI-powered translation for 48 languages with context-aware quality

已驗證Streamable HTTP可網頁執行效率與工作流檔案與儲存

概覽

AI 產生的概覽

讓助理透過按字數計費的翻譯服務,把文字與在地化檔案翻譯成 48 種語言。

可以做什麼
提供翻譯文字與檔案的工具,支援 JSON、YAML、CSV、XML、Markdown、properties、PDF、Word、Gettext 等格式並盡量保留結構,可指定受眾、產業與地區等情境。也能分析內容是否適合翻譯、列出支援語言與品質評級、查詢剩餘額度與字數估算,並追蹤大檔案的异步工作。
適用情境
適合在進行應用程式文案、文件或內容檔案的在地化時,讓助理直接完成帶情境的翻譯。也適合在消耗額度前先檢查內容品質並估算費用。
執行需求
可使用 mcp.i18nagent.ai 遠端端點,或以 Node.js 執行本機 npm 套件 @i18n-agent/mcp-client。需要從服務商後台取得 API 金鑰,透過環境變數 I18N_AGENT_API_KEY 提供,並需要網路連線;可用 MCP_SERVER_URL 指定伺服器位址。
安裝前請注意
翻譯以每字 1 點額度計費,大批量工作會產生費用,建議先查看餘額與估算。API 金鑰屬於機密,會寫入設定並傳給 get_credits 工具。檔案翻譯會讀取你提供的路徑或內容,內容會傳送到服務商進行處理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 i18n-agent,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/ai.i18nagent%2Fi18n-agent/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "i18n-agent": {
      "type": "http",
      "url": "https://mcp.i18nagent.ai/mcp"
    }
  }
}

README

🌍 i18n-agent MCP Client

Professional translation service client for Claude, Cursor, VS Code, Antigravity, and other AI IDEs using the Model Context Protocol (MCP).

[npm version] [License: MIT]

✨ Features

  • 🎯 Smart Translation: Context-aware translations with cultural adaptation
  • 📁 File Translation: Support for JSON, YAML, CSV, XML, Markdown, and more
  • ⚡ Large File Support: Async processing for files >50KB with progress tracking
  • 🔄 Timeout Improvements: Extended timeouts (5-10 min) for large translations
  • 📊 Progress Tracking: Real-time job status and completion monitoring
  • 💰 Credit Tracking: Real-time credit balance and word count estimates
  • 🌐 48 Languages: Comprehensive language support with regional variants
  • 🔧 Easy Setup: One-command installation for major AI IDEs

🚀 Quick Installation

bash
npx @i18n-agent/mcp-client install

The installer will detect all available AI IDEs and configure them automatically.

Claude Code Marketplace Installation

For Claude Code users, you can install directly from the marketplace:

Step 1: Get your API key

  • Visit app.i18nagent.ai
  • Sign up or log in
  • Copy your API key (starts with "i18n_")

Step 2: Set environment variable

bash
echo 'export I18N_AGENT_API_KEY=your-api-key-here' >> ~/.zshrcsource ~/.zshrc

Replace your-api-key-here with your actual API key.

Step 3: Install from marketplace

bash
/plugin marketplace add i18n-agent/mcp-client/plugin install i18n-agent@i18n-agent

Step 4: Restart Claude Code

That's it! The plugin will automatically use your API key from the environment variable.

🔑 Setup API Key

  1. Get your API key from app.i18nagent.ai

  2. Set environment variable:

    bash
    export I18N_AGENT_API_KEY=your-api-key-here
  3. Make it permanent (add to ~/.bashrc or ~/.zshrc):

    bash
    echo 'export I18N_AGENT_API_KEY=your-api-key-here' >> ~/.zshrc
  4. Restart your AI IDE to load the new configuration

🎮 Usage Examples

Text Translation

Translate "Hello, how are you?" to Spanish for a casual audience

File Translation

Translate this JSON file to French, preserving the structure

Credit Check

Check my translation credits

Language Support

List supported languages with quality ratings

Content Analysis

Analyze "Hello world! This is a test." for translation to Spanish

🛠 Supported AI IDEs

IDEStatusmacOSWindowsLinux
Claude Desktop✅ Auto-configured~/Library/Application Support/Claude/%APPDATA%\Claude\~/.config/Claude/
Claude Code CLI✅ Auto-configured~/.claude.json~/.claude.json~/.claude.json
Cursor✅ Auto-configured~/.cursor/mcp_settings.json~/.cursor/mcp_settings.json~/.cursor/mcp_settings.json
VS Code✅ Auto-configured~/.vscode/mcp_settings.json~/.vscode/mcp_settings.json~/.vscode/mcp_settings.json
Codex (OpenAI)✅ Auto-configured~/.codex/mcp_settings.json~/.codex/mcp_settings.json~/.codex/mcp_settings.json
Antigravity (Google)✅ Auto-configured~/.gemini/antigravity/mcp_config.json%USERPROFILE%\.gemini\antigravity\mcp_config.json~/.config/antigravity/mcp_config.json

Note: The installer automatically detects your platform and uses the correct config paths.

🌐 Language Support (48 Languages)

  • bg: Bulgarian
  • ca: Catalan
  • cs: Czech
  • da: Danish
  • de: German
  • el: Greek
  • en: English
  • en-AU: English (Australia)
  • en-CA: English (Canada)
  • en-GB: English (United Kingdom)
  • en-US: English (United States)
  • es: Spanish
  • es-MX: Spanish (Mexico)
  • et: Estonian
  • fi: Finnish
  • fr: French
  • fr-CA: French (Canada)
  • hi: Hindi
  • hr: Croatian
  • hu: Hungarian
  • id: Indonesian
  • is: Icelandic
  • it: Italian
  • ja: Japanese
  • ko: Korean
  • lt: Lithuanian
  • lv: Latvian
  • ms: Malay
  • nl: Dutch
  • no: Norwegian
  • pl: Polish
  • pt: Portuguese
  • pt-BR: Portuguese (Brazil)
  • ro: Romanian
  • ru: Russian
  • sk: Slovak
  • sl: Slovenian
  • sr: Serbian
  • sv: Swedish
  • th: Thai
  • tl: Filipino
  • tr: Turkish
  • uk: Ukrainian
  • vi: Vietnamese
  • zh-Hans: Chinese (Simplified)
  • zh-Hant-HK: Chinese (Traditional, Hong Kong)
  • zh-Hant-TW: Chinese (Traditional, Taiwan)

📁 Supported File Formats

FormatExtensionFeatures
JSON.jsonPreserves structure, nested objects
YAML.yaml, .ymlMaintains formatting, comments
CSV.csvHandles quoted fields, commas
XML/HTML.xml, .htmlExtracts text content
Markdown.mdPreserves formatting, skips code
Properties.propertiesJava properties key-value pairs
Plain Text.txtDirect translation
PDF.pdfText extraction and translation
Word.docx, .docDocument translation
Gettext.po, .pot, .moLocalization file formats

🔧 Manual Setup

If auto-installation fails, you can manually configure your IDE:

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "i18n-agent": {      "command": "node",      "args": ["/path/to/i18n-agent.js"],      "env": {        "MCP_SERVER_URL": "https://mcp.i18nagent.ai",        "I18N_AGENT_API_KEY": "your-api-key-here"      }    }  }}

Cursor / VS Code

Create .cursor/mcp_settings.json or .vscode/mcp_settings.json:

json
{  "mcpServers": {    "i18n-agent": {      "command": "node",       "args": ["/path/to/i18n-agent.js"],      "env": {        "MCP_SERVER_URL": "https://mcp.i18nagent.ai",        "I18N_AGENT_API_KEY": "your-api-key-here"      }    }  }}

💡 Usage Tips

Translation Context

  • Target Audience: Specify "technical", "casual", "formal", or "general"
  • Industry Context: Use "technology", "healthcare", "finance", "education"
  • Regional Variations: Add regions like "Spain", "Mexico", "Brazil"

File Translation

  • Preserve Structure: Keeps original file format and structure
  • Output Format: Convert between formats (JSON ↔ YAML ↔ CSV)
  • Large Files: Automatically chunks large files for processing
  • Async Processing: Files >50KB processed asynchronously with job tracking
  • Progress Monitoring: Real-time status updates for long-running translations
  • Timeout Resilience: Up to 10 minutes for large translation jobs

Large Translation Handling

  • Async Processing: >100 texts or >50KB files processed asynchronously
  • Job Tracking: Unique job IDs for monitoring long-running translations
  • Progress Updates: Real-time completion percentages and status
  • Extended Timeouts: 5-10 minute timeouts prevent interruptions
  • Automatic Polling: Client automatically polls for job completion

Credit Management

  • Cost: 1 credit per word ($0.01/word)
  • Monitoring: Check balance before large translations
  • Estimates: Get word count estimates before translation

Quality Warnings

  • Source Analysis: By default, source content is analyzed for quality issues before translation
  • Skip Warnings: Use skipWarnings: true to bypass warnings in automated workflows
  • Trade-off: Skipping warnings may reduce translation quality as potential issues aren't addressed
  • Best Practice: Keep warnings enabled (default) for production translations

🚨 Troubleshooting

Installation Issues

Permission denied:

bash
sudo npm install -g @i18n-agent/mcp-client

IDE not detected:

bash
# Check if IDE directory existsls ~/Library/Application\ Support/Claude/ls ~/.cursor/ls ~/.vscode/

MCP Connection Issues

"Failed" status in Claude Code:

This usually happens with Node Version Managers (nvm, fnm, n). The installer now automatically detects nvm and creates a wrapper script. If you still have issues:

  1. Check your Node installation:

    bash
    which node# If output contains .nvm, you're using nvm
  2. Manual wrapper script (if auto-detection fails): Create ~/.claude/run-mcp.sh:

    bash
    #!/bin/bashexport PATH="$(dirname $(which node)):$PATH"cd ~/.claudeexec node node_modules/@i18n-agent/mcp-client/i18n-agent.js

    Make it executable:

    bash
    chmod +x ~/.claude/run-mcp.sh
  3. Update Claude configuration: Edit ~/.claude.json:

    json
    {  "mcpServers": {    "i18n-agent": {      "command": "/Users/YOUR_USERNAME/.claude/run-mcp.sh",      "env": {        "MCP_SERVER_URL": "https://mcp.i18nagent.ai",        "I18N_AGENT_API_KEY": "your-api-key"      }    }  }}
  4. Restart Claude Code completely (not just close window, quit the app)

Runtime Issues

API Key not found:

bash
echo $I18N_AGENT_API_KEY  # Should show your keyexport I18N_AGENT_API_KEY=your-key-here

Connection errors:

  • Check your internet connection
  • Verify API key is valid
  • Try again after a few seconds

Translation quality:

  • Use Tier 1 languages for production
  • Add context with industry/audience parameters
  • Review Tier 2/3 translations manually

📊 Pricing

  • Pay-per-use: 1 credit per word ($0.01/word)
  • No subscriptions: Only pay for what you translate
  • Bulk discounts: Available for enterprise usage
  • Free tier: New accounts get starter credits

🔐 Privacy & Security

  • No data storage: Translations are processed in real-time
  • Encrypted transport: All data sent over HTTPS
  • API key security: Keys are stored locally, never transmitted in logs
  • GDPR compliant: EU privacy standards

🏗️ Architecture

The MCP client installer uses a modular architecture for bulletproof installation:

lib/├── config-manager.js      # Config file operations with atomic writes├── installer-core.js      # Installation orchestration├── transport-detector.js  # Auto-detect SSE vs stdio transport└── validator.js          # Input validation and sanitization

Key Features

  • Atomic Config Writes: Use temp files + rename for crash safety
  • Automatic Backups: Create timestamped backups before modifications
  • Transport Detection: Auto-detect SSE vs stdio from config
  • Comprehensive Validation: Validate all inputs at module boundaries
  • Zero External Dependencies: Uses only Node.js built-ins

Architecture Details

See detailed documentation:

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines.

Development Setup

bash
git clone https://github.com/i18n-agent/mcp-client.gitcd mcp-clientnpm installnpm test

Publishing

Use the publishing script with built-in test gate:

bash
./scripts/publish-mcp-client.sh --dry-run  # Preview package./scripts/publish-mcp-client.sh            # Run pre-publish checksnpm publish                                 # Publish to npm

📝 License

MIT License - see LICENSE file for details.

Copyright (c) 2025 FatCouple OÜ

🔗 Links

🆘 Support

🔧 Available MCP Tools

translate_text

Translate text content with cultural adaptation and context awareness.

Parameters:

  • texts (array): Array of strings to translate
  • targetLanguage (string): Target language code
  • targetAudience (string): Target audience context
  • industry (string): Industry context
  • namespace (string, optional): Optional namespace identifier for backend tracking and project organization
  • sourceLanguage (string, optional): Source language (auto-detected if not provided)
  • region (string, optional): Specific region for localization
  • skipWarnings (boolean, optional): Skip source text quality warnings (default: false). ⚠️ WARNING: May hurt translation quality by bypassing source analysis. Only use when confident about content quality or in automated workflows.

translate_file

Translate files while preserving structure and format.

Parameters:

  • filePath or fileContent (string): File path or content to translate
  • fileType (string): File format (json, yaml, xml, csv, txt, md, etc.)
  • targetLanguage (string): Target language code
  • namespace (string, required): Unique namespace identifier for backend tracking and project organization
  • preserveKeys (boolean): Whether to preserve object keys/structure
  • outputFormat (string): Output format (same, json, yaml, txt)
  • skipWarnings (boolean, optional): Skip source text quality warnings (default: false). ⚠️ WARNING: May hurt translation quality by bypassing source analysis. Only use when confident about content quality or in automated workflows.

analyze_content

Analyze content for translation readiness and get improvement suggestions before translation. This helps identify potential issues and optimize content before spending credits on translation.

Parameters:

  • content (string/array/object): Content to analyze
  • targetLanguage (string): Target language for translation
  • fileType (string, optional): File type if content is from a file
  • sourceLanguage (string, optional): Source language (auto-detected)
  • industry (string): Industry context
  • targetAudience (string): Target audience
  • region (string, optional): Specific region for localization

Returns:

  • Source language detection with confidence score
  • Content type and tone analysis
  • Translation readiness score (0-100)
  • Specific improvement suggestions
  • Quality metrics and issues
  • Warnings for potential problems
  • Estimated credits required

list_supported_languages

Get list of all supported languages with quality ratings.

Parameters:

  • includeQuality (boolean): Include quality ratings (default: true)

get_credits

Check remaining translation credits and word count estimates.

Parameters:

  • apiKey (string): Your API key

check_translation_status

Check status of async translation jobs (for large files).

Parameters:

  • jobId (string): Job ID from async translation

Made with ❤️ by FatCouple OÜ

來源:README.md,提交 320290a

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.16.3最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分