i18next MCP Server
Provides translation management capabilities for i18next projects, enabling AI assistants to directly interact with translation files, manage keys, validate files, and analyze translation coverage.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@i18next MCP Server Check for missing keys in French"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
i18next MCP Server
A Model Context Protocol (MCP) server that provides translation management capabilities for i18next projects, enabling AI assistants like Cursor to directly interact with translation files.
๐ Quick Setup
The easiest way to use this MCP server is with npx. No installation required:
npx i18next-mcp-server@latest --helpRelated MCP server: i18n-tools-mcp
๐ง Cursor Configuration
Add this to your Cursor MCP settings:
{
"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"
}
}
}
}For detailed setup instructions, see CURSOR_SETUP.md.
๐ Expected Project Structure
your-project/
โโโ public/locales/ # Translation files
โ โโโ en/
โ โ โโโ common.json
โ โ โโโ navigation.json
โ โโโ es/
โ โ โโโ common.json
โ โ โโโ navigation.json
โ โโโ ...
โโโ src/ # Your source code๐ ๏ธ Available Tools
Core Tools
get_project_info- Get project configuration and statisticshealth_check- Analyze translation file health and completenessscan_code_for_missing_keys- Find missing translation keys in your code
Key Management
add_translation_key- Add new translation keyssync_missing_keys- Sync missing keys between languagesget_missing_keys- List missing keys by language
File Operations
list_files- List all translation filesvalidate_files- Validate JSON syntaxexport_data- Export translations to various formats
Analysis
coverage_report- Translation coverage statisticsusage_analysis- Find unused translation keysquality_analysis- Analyze translation quality
๐ง Environment Variables
Variable | Description | Default |
| Your project root directory | Current directory |
| Path to translation files |
|
| Source language |
|
| Comma-separated language codes |
|
๐งช Development
git clone https://github.com/gtrias/i18next-mcp-server.git
cd i18next-mcp-server
npm install
npm run build
npm test๐ License
MIT License - see LICENSE for details.
๐ Links
Available Tools
14 toolsadd_translation_keyA
Add a specific translation key with values to specified languages and namespaces
Inputs: key (required), translations (required), overwrite, namespaces, +1 more.
coverage_reportC
Generate comprehensive coverage report for translations
Inputs: languages, namespaces.
export_dataB
Export translation data in various formats
Inputs: format (required), languages, namespaces.
get_missing_keysB
Get a detailed list of missing keys by language and namespace for targeted translation work
Inputs: format, namespaces, sourceLanguage, targetLanguages.
get_project_infoB
Get information about the translation project configuration and status
Inputs: no named parameters.
health_checkC
Perform comprehensive health check on translation files
Inputs: summary, detailed, languages, namespaces.
list_filesB
List all translation files with their basic information
Inputs: language, namespace.
quality_analysisC
Analyze translation quality across files
Inputs: languages, namespaces.
scan_code_for_missing_keysC
Scan code for missing keys using the scanner integration
Inputs: sourceCodePaths.
sync_all_missingC
Comprehensive sync to add all missing keys across all languages, ensuring complete coverage
Inputs: dryRun, placeholder, createBackup.
sync_from_sourceB
Sync specific missing keys from source language to target languages
Inputs: keys (required), targetLanguages (required), copyValues, namespaces, +2 more.
sync_missing_keysC
Synchronize missing translation keys across all languages from a source language, maintaining sorted structure
Inputs: dryRun, namespaces, placeholder, createBackup, +2 more.
usage_analysisC
Generate detailed usage analysis of translation keys
Inputs: sourceCodePaths.
validate_filesC
Validate translation files for JSON syntax and structure issues
Inputs: fix.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 14 tools
Multiple sync tools (sync_missing_keys, sync_from_source, sync_all_missing) have nearly identical descriptions, making it difficult to choose between them. health_check, quality_analysis, and validate_files also overlap somewhat in their focus on analyzing file health.
All tool names use snake_case, but the pattern is inconsistent: some are verb_noun (get_project_info, list_files, add_translation_key) while others are noun-based (health_check, quality_analysis, coverage_report). The three sync tools are confusingly similar in naming.
14 tools is within the typical 3-15 range and appropriate for the scope of i18next translation management. However, the redundant sync tools could be consolidated, making the count feel slightly padded.
The toolset lacks basic update and delete operations for translation keys, and there is no import functionality. It is heavily skewed toward analysis and adding missing keys, leaving gaps in the full lifecycle management of translations.
Maintenance
Related MCP Connectors
Localize apps from your AI assistant: translate locale files, set glossaries, connect GitHub repos.
AI-native translation management: push translation files, translate, review and audit strings.
Localize apps from your AI agent: create projects, add languages, import files, add strings, export.
Localize iOS and Android apps: coverage, missing strings, glossary-aware AI drafts and file sync.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables translation of JSON i18n files to multiple languages using various AI providers (Google Gemini, OpenAI, Ollama/DeepSeek) with intelligent caching and deduplication.37 npm5-
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to read and write JSON translation files (i18n, i18next, react-i18next) via the Model Context Protocol.36 npm2-
- AlicenseNot gradedqualityCmaintenanceEnables localization of React, Next.js, and Vue apps from an AI assistant by managing projects, languages, translations, glossaries, style guides, and GitHub repository integration.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to inspect, audit and safely edit locale JSON files across flat, nested, and namespaced layouts without loading whole files into the model context, with compact token-efficient reads and write paths that cannot drop keys or overwrite silently. Ships ten tools plus slash-command prompts for project info, key search, reference lookup, translation upserts, and missing-translation audits.1060 npmMIT