i18next-mcp-server

gtrias/i18next-mcp-server

3.4

If you are the rightful owner of i18next-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The i18next MCP Server is a Model Context Protocol server designed to manage translations for i18next projects, facilitating direct interaction with translation files by AI assistants like Cursor.

The i18next MCP Server is a robust tool that streamlines the management of translation files for projects using the i18next framework. It acts as a bridge between translation files and AI assistants, enabling seamless interaction and management of translations. This server is particularly useful for developers looking to automate and enhance their translation workflows, ensuring that all translation keys are accounted for and properly managed across different languages. With its easy setup and comprehensive toolset, the i18next MCP Server is an invaluable asset for projects requiring efficient translation management. It supports various operations such as adding new translation keys, syncing missing keys, and analyzing translation quality, making it a versatile solution for multilingual projects.

Features

  • Easy setup with npx, no installation required.
  • Comprehensive toolset for managing translation keys and files.
  • Supports multiple languages with customizable settings.
  • Provides detailed analysis and reports on translation coverage and quality.
  • Integrates seamlessly with AI assistants like Cursor.

Usages

usage with cursor

{
  "mcpServers": {
    "i18next-translation": {
      "command": "npx",
      "args": ["-y", "i18next-mcp-server@latest"],
      "env": {
        "I18N_PROJECT_ROOT": "/path/to/your/project",
        "I18N_LOCALES_PATH": "public/locales",
        "I18N_DEFAULT_LANGUAGE": "en",
        "I18N_SUPPORTED_LANGUAGES": "en,es,fr"
      }
    }
  }
}

Tools

  1. get_project_info

    Get project configuration and statistics.

  2. health_check

    Analyze translation file health and completeness.

  3. scan_code_for_missing_keys

    Find missing translation keys in your code.

  4. add_translation_key

    Add new translation keys.

  5. sync_missing_keys

    Sync missing keys between languages.

  6. get_missing_keys

    List missing keys by language.

  7. list_files

    List all translation files.

  8. validate_files

    Validate JSON syntax.

  9. export_data

    Export translations to various formats.

  10. coverage_report

    Translation coverage statistics.

  11. usage_analysis

    Find unused translation keys.

  12. quality_analysis

    Analyze translation quality.