Sponsored by Deepsite.site

🌐 i18n MCP Server

Created By
reinier-millo10 months ago
MCP server for handling i18n JSON files
Content

🌐 i18n MCP Server

i18n MCP Server is a powerful tool for managing internationalization (i18n) in your projects. It streamlines the process of translating JSON-based language files by allowing you to use powerful language models to generate translations directly from a base language file — all through a convenient server interface.

The MCP server is intended to work with the Cursor IDE using stdio transport. It should also work properly with any client that supports stdio transport.

💡 Why i18n MCP Server?

  • Save hours of manual translation work
  • Keep your i18n files consistent and up to date
  • Eliminate repetitive copy/paste tasks when scaling your app globally.

🚀 Features

🌍 Multi-language support

Automatically generate translations in multiple languages from a single base language file.

🤖 Translate using models on Cursor

You don't need to pay for additional translation services. Select the translation model you want to use and generate translations on demand.

⚡ Effortless workflow

No need to manually duplicate or edit JSON files — just send a request and get translated files ready to use.

🛠️ Developer-friendly

Built with simplicity and speed in mind for seamless integration into development pipelines.

Working flow

This MCP server helps with incremental translation of JSON files. It provides simple tools to:

  1. Get the base language file with all texts in a single language and the set of supported languages.
  2. Get chunks of strings to translate. Each chunk will be a list of texts separated by new lines.
  3. Update generated translations in the memory cache.
  4. Save translations to language-specific JSON files.

📦 Installation and configuration

  1. Clone the repository
git clone
  1. Install dependencies:
pnpm install # or npm/yarn
  1. Build the server:
pnpm run build
  1. Configure the MCP server on Cursor

Navigate to Cursor Settings / MCP and click to add a new MCP server. In the opened JSON, include the server definition:

{
  "mcpServers": {
    ...
    "i18n-translation-server": {
      "command": "node",
      "args": ["<base-path>/i18n-mcp/dist/mcp_server.js"]
    },
    ...
  }
}

You will need to replace <base-path> with the correct absolute path to the compiled server.

📤 Usage

Once the MCP server is running, you can use the Cursor Agent to interact with the server tools. For example:

We are preparing the i18n files for a project and have a base language file. Using the following data, execute the
proposed tasks to prepare the additional required languages.

Base JSON language file: <absolute path to the base language file>
Base language: <base language>
Supported languages: <comma-separated list of supported languages>

These are the tasks that we need to perform:

1. Clear the previous data
2. Read the base JSON language file
3. Get the next chunk
4. For each language in the supported languages, do the following subtasks:
   4.1. Translate all items in the chunk from the base language to the target language. Ensure that the order is
   preserved and that any i18n string parameters are respected.
   4.2. Update the translations for the language
5. Repeat from task 3 until the next chunk does not return any data.
6. After processing all chunks, save translations for each supported language.

This request will generate a JSON file for each language in the same folder as the base JSON language file. The current version was tested using gpt-4.1 and a chunk size of 250 entries. For other models, this value may need to be adjusted due to token limits. Another issue that may occur is that the flow can sometimes be interrupted between steps 5 and 6, requiring manual resumption due to the 25 tool call restriction in Cursor.

This is just a proposed task request, but new ones can be written by chaining the defined tools.

During testing, we noted that language files are generated faster when generating a single language per request, instead of all at once. Additionally, the response time will depend on the model used.

📚 Future Plans

  • Support for multiple caches
  • Language file integrity check
  • Support dynamic chunk size
  • Translation only for missing entries
  • Translation only for specific items
  • Version tracking for language files
  • Better local cache for translations

🙌 Contributing

Pull requests and issues are welcome! Let's build a better translation workflow together.

📄 License

This project is licensed under the GNU Affero General Public License v3.0. See the LICENSE file for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Serper MCP ServerA Serper MCP Server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
DeepChatYour AI Partner on Desktop
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
CursorThe AI Code Editor
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
WindsurfThe new purpose-built IDE to harness magic