i18next
A comprehensive Model Context Protocol (MCP) server that provides automated translation management capabilities for Cursor and other AI assistants, enabling direct interaction with i18next translation files, health checking, missing key detection, and automated translation workflows.
claude mcp add --transport stdio gtrias-i18next-mcp-server npx -y i18next-mcp-server@latest \ --env I18N_LOCALES_PATH="Path to translation files (default: public/locales)" \ --env I18N_PROJECT_ROOT="Your project root directory" \ --env I18N_DEFAULT_LANGUAGE="Source language (default: en)" \ --env I18N_SUPPORTED_LANGUAGES="Comma-separated language codes (e.g., en,es,fr)"
How to use
This MCP server provides translation management capabilities for i18next projects, enabling AI assistants and automation tools to interact with translation files directly. It exposes a suite of core tools for project analysis, translation key management, file operations, and quality checks. You can query project information, scan for missing keys, validate JSON translation files, export data, and generate analyses like coverage, usage, and quality reports. To use it with Cursor or other MCP clients, configure the server in your MCP settings so the client can invoke these tools via the defined commands. The core workflow typically involves inspecting translation files under your locales directory, adding or syncing keys across languages, and exporting translations for downstream processes or formats.
How to install
Prerequisites:
- Node.js and npm (or npx available via npm 5.2+)
- Internet access to fetch the MCP server package via npx
Installation and setup steps:
- Ensure Node.js and npm are installed. Verify with: node -v npm -v
- Test running the MCP server with npx (no local install required): npx i18next-mcp-server@latest --help
- If you prefer to install locally, you can add the package to your project: npm install --save-dev i18next-mcp-server npx i18next-mcp-server@latest --help
- Prepare Cursor (or your MCP client) configuration using the example in the repository README. Save the configuration in your Cursor settings or the MCP client config file to enable the i18next translation workflow.
- If you plan to run the server repeatedly, consider using the recommended command from the mcp_config example and ensure the environment variables are set to match your project layout.
Additional notes
Tips and common considerations:
- Environment variables should reflect your actual project structure. Typical defaults are I18N_PROJECT_ROOT as your project root, I18N_LOCALES_PATH as public/locales, I18N_DEFAULT_LANGUAGE as en, and I18N_SUPPORTED_LANGUAGES as a comma-separated list like en,es,fr.
- The server expects a standard i18next project layout with translation JSON files organized by language under the locales path (e.g., public/locales/en/translation.json).
- When using Cursor, ensure your MCP configuration references the correct command and arguments for npx and that the env variables point to your local project files to enable seamless translation management.
- For production usage, consider pinning the MCP server version (e.g., i18next-mcp-server@vX.Y.Z) to avoid breaking changes from upstream releases.
- If you run into JSON validation errors while using validate_files, check for trailing commas and ensure all translation JSON files are well-formed before performing exports or imports.
Related MCP Servers
context7
Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
mcp-bundler
Is the MCP configuration too complicated? You can easily share your own simplified setup!
akyn-sdk
Turn any data source into an MCP server in 5 minutes. Build AI-agents-ready knowledge bases.
promptboard
The Shared Whiteboard for Your AI Agents via MCP. Paste screenshots, mark them up, and share with AI.