
i18n-agent
ai.i18nagent由 i18nagent.ai 发布官方发布者v1.16.3更新于 Oct 24, 2026
AI-powered translation for 48 languages with context-aware quality
概览
让助手通过按字数计费的翻译服务,将文本和本地化文件翻译成 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 指定服务器地址。
安装
在 SourceWeft 中
- 打开 控制台中的 i18n-agent,将其添加到工作区。
- 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
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).
✨ 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
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
Replace your-api-key-here with your actual API key.
Step 3: Install from marketplace
Step 4: Restart Claude Code
That's it! The plugin will automatically use your API key from the environment variable.
🔑 Setup API Key
-
Get your API key from app.i18nagent.ai
-
Set environment variable:
-
Make it permanent (add to ~/.bashrc or ~/.zshrc):
-
Restart your AI IDE to load the new configuration
🎮 Usage Examples
Text Translation
File Translation
Credit Check
Language Support
Content Analysis
🛠 Supported AI IDEs
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
🔧 Manual Setup
If auto-installation fails, you can manually configure your IDE:
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Cursor / VS Code
Create .cursor/mcp_settings.json or .vscode/mcp_settings.json:
💡 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: trueto 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:
IDE not detected:
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:
-
Check your Node installation:
-
Manual wrapper script (if auto-detection fails): Create
~/.claude/run-mcp.sh:Make it executable:
-
Update Claude configuration: Edit
~/.claude.json: -
Restart Claude Code completely (not just close window, quit the app)
Runtime Issues
API Key not found:
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:
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:
- Module Architecture - Module responsibilities and design
- Full Architecture Guide - Complete system design
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines.
Development Setup
Publishing
Use the publishing script with built-in test gate:
📝 License
MIT License - see LICENSE file for details.
Copyright (c) 2025 FatCouple OÜ
🔗 Links
- Website: i18nagent.ai
- Dashboard: app.i18nagent.ai
- Documentation: docs.i18nagent.ai
- GitHub: github.com/i18n-agent/mcp-client
- Issues: github.com/i18n-agent/mcp-client/issues
🆘 Support
- Email: [email protected]
- Documentation: docs.i18nagent.ai
🔧 Available MCP Tools
translate_text
Translate text content with cultural adaptation and context awareness.
Parameters:
texts(array): Array of strings to translatetargetLanguage(string): Target language codetargetAudience(string): Target audience contextindustry(string): Industry contextnamespace(string, optional): Optional namespace identifier for backend tracking and project organizationsourceLanguage(string, optional): Source language (auto-detected if not provided)region(string, optional): Specific region for localizationskipWarnings(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:
filePathorfileContent(string): File path or content to translatefileType(string): File format (json, yaml, xml, csv, txt, md, etc.)targetLanguage(string): Target language codenamespace(string, required): Unique namespace identifier for backend tracking and project organizationpreserveKeys(boolean): Whether to preserve object keys/structureoutputFormat(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 analyzetargetLanguage(string): Target language for translationfileType(string, optional): File type if content is from a filesourceLanguage(string, optional): Source language (auto-detected)industry(string): Industry contexttargetAudience(string): Target audienceregion(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版本历史
1- v1.16.3最新Sep 16, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分