AI-powered translation for 48 languages with context-aware quality
i18n-agent MCP Client (Model Context Protocol)
The ai.i18nagent/i18n-agent MCP client provides an AI-powered translation service with context-aware quality across 48 languages. It is intended for use with AI IDEs via Model Context Protocol (MCP), and supports professional translation workflows for developer tools.
๐ ๏ธ Key Features
AI-powered translation for 48 languages with context-aware quality
Smart translation with context-aware translations and cultural adaptation
File translation support for JSON, YAML, CSV, XML, Markdown, and more
๐ Use Cases
Translating project files and documentation using MCP in AI IDEs
Integrating with Claude, Cursor, VS Code, Antigravity, and other AI IDEs
โก Developer Benefits
Access via an MCP client package: @i18n-agent/mcp-client (npm)
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:
Check your Node installation:
bash
which node
# If output contains .nvm, you're using nvm
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
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).