npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

Iโ€™ve always been into building performant and accessible sites, but lately Iโ€™ve been taking it extremely seriously. So much so that Iโ€™ve been building a tool to help me optimize and monitor the sites that I build to make sure that Iโ€™m making an attempt to offer the best experience to those who visit them. If youโ€™re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, ๐Ÿ‘‹, Iโ€™m Ryan Hefnerย  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If youโ€™re interested in other things Iโ€™m working on, follow me on Twitter or check out the open source projects Iโ€™ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soonโ€“ish.

Open Software & Tools

This site wouldnโ€™t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you ๐Ÿ™

ยฉ 2026 โ€“ย Pkg Stats / Ryan Hefner

@i18n-agent/mcp-client

v1.15.7

Published

๐ŸŒ i18n-agent MCP Client - 48 languages, AI-powered translation for Claude, Claude Code, Cursor, VS Code, Codex. Get API key at https://app.i18nagent.ai

Downloads

2,516

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

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

Note: Global installation is required due to npm bin naming limitations. 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

Step 2: Set environment variable

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

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

Step 3: Install from marketplace

/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:

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

    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

| IDE | Status | macOS | Windows | Linux | |-----|--------|-------|---------|-------| | 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

| Format | Extension | Features | |--------|-----------|----------| | JSON | .json | Preserves structure, nested objects | | YAML | .yaml, .yml | Maintains formatting, comments | | CSV | .csv | Handles quoted fields, commas | | XML/HTML | .xml, .html | Extracts text content | | Markdown | .md | Preserves formatting, skips code | | Properties | .properties | Java properties key-value pairs | | Plain Text | .txt | Direct translation | | PDF | .pdf | Text extraction and translation | | Word | .docx, .doc | Document translation | | Gettext | .po, .pot, .mo | Localization 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:

{
  "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:

{
  "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: 0.001 credits per 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:

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

IDE not detected:

# Check if IDE directory exists
ls ~/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:

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

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

    Make it executable:

    chmod +x ~/.claude/run-mcp.sh
  3. Update Claude configuration: Edit ~/.claude.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:

echo $I18N_AGENT_API_KEY  # Should show your key
export 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: 0.001 credits per 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

git clone https://github.com/i18n-agent/mcp-client.git
cd mcp-client
npm install
npm test

Publishing

Use the publishing script with built-in test gate:

./scripts/publish-mcp-client.sh --dry-run  # Preview package
./scripts/publish-mcp-client.sh            # Run pre-publish checks
npm 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รœ