i18n-tools-mcp
Provides tools to manage i18next translation JSON files, including querying, setting, adding, deleting, renaming, moving, listing, searching, and batch operations for both flat and namespaced directory layouts.
Supports next-i18next by providing tools to read and write translation files used in Next.js applications, with batch operations to minimize file-watcher churn.
Supports react-i18next by providing tools to read and write translation files used in React applications.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.

i18n-tools-mcp
MCP server for querying and managing JSON translation files. Designed for AI agents (Claude Code, Cursor, etc.) to read and write i18n, i18next, react-i18next, and next-i18next translations directly through the Model Context Protocol.
Supports flat ({locale}.json) and namespaced ({locale}/{namespace}.json) directory layouts with dot-notation keys.
Install
Ask your AI agent:
Install the i18n-tools-mcp MCP server. The translations directory is at ./messages and the base locale is nl.
Or add it manually to your MCP client config (e.g. .claude/settings.json):
{
"mcpServers": {
"i18n-tools": {
"command": "npx",
"args": ["i18n-tools-mcp", "./messages", "nl"]
}
}
}Arguments:
Required: Path to the directory containing your translation files
Optional: Base locale code (default:
nl) — used in tool descriptions to guide AI agentsOptional: JSON indentation spaces (default:
4)
Related MCP server: i18n Agent
Directory structures
Both flat and namespaced layouts are auto-detected. JSON files directly in the directory make it flat; other folders next to them (such as Laravel's resources/lang/vendor) are then ignored.
Flat — one JSON file per locale:
messages/
en.json
nl.jsonNamespaced — subdirectory per locale, one JSON file per namespace (i18next-style):
messages/
en/
common.json
auth.json
nl/
common.json
auth.jsonIn namespace mode, prefix keys with the namespace: common:Users.name. Read operations (query, list, search, missing) work across all namespaces when no prefix is given. Write operations (set, add) require a namespace prefix.
Keys containing dots
Keys may be nested objects, literal keys containing dots (Laravel-style {"auth.login.title": "..."}), or a mix of both. A dot-notation key is resolved against what is actually in the file, with the longest literal key winning at each level, so auth.login.title finds both {"auth": {"login": {"title": ...}}} and {"auth.login.title": ...}.
Existing keys are updated in place, in whichever form they already have.
New keys descend into existing nested objects as far as possible. The remainder is written as one literal dotted key when that object already contains dotted keys, and as nested objects otherwise.
Prefixes of flat keys act as groups:
query,delete,renameandmoveondatatablecoverdatatable.columnsanddatatable.rows.
Tools
query
Look up a translation key across all locale files. Returns the value for each locale that has the key.
Parameter | Type | Required | Description |
| string | yes | Dot-notation key, e.g. |
set
Set a translation value for a single locale. Creates intermediate keys if needed.
Parameter | Type | Required | Description |
| string | yes | Locale code, e.g. |
| string | yes | Dot-notation key, e.g. |
| string | yes | The translation value |
add
Add a translation key to multiple locales at once.
Parameter | Type | Required | Description |
| string | yes | Dot-notation key, e.g. |
|
| yes | Locale-to-value mapping, e.g. |
delete
Delete a translation key from all locale files.
Parameter | Type | Required | Description |
| string | yes | Dot-notation key, e.g. |
rename
Rename a translation key across all locale files. Preserves values.
Parameter | Type | Required | Description |
| string | yes | Current dot-notation key, e.g. |
| string | yes | New dot-notation key, e.g. |
move
Move a translation key to a different path across all locale files.
Parameter | Type | Required | Description |
| string | yes | Current dot-notation key, e.g. |
| string | yes | New dot-notation key, e.g. |
list
List all translation keys. Optionally filter by a key prefix.
Parameter | Type | Required | Description |
| string | no | Key prefix to filter by, e.g. |
search
Search translations by value (case-insensitive).
Parameter | Type | Required | Description |
| string | yes | Text to search for in translation values |
missing
Find translation keys that exist in some locales but are missing in others. Takes no parameters.
batch
Apply multiple mutations in a single call. Each affected locale file is read once, mutated in memory, and written exactly once — regardless of how many ops touch it. Per-file atomic: if any op fails, no files are written.
Prefer this over repeated set/add/delete/rename/move calls for bulk changes. It minimizes file-watcher churn (Next.js dev, Vite HMR) and avoids partial writes.
Parameter | Type | Required | Description |
|
| yes | Ordered list of operations (see below) |
Each op is one of:
{ "op": "set", "locale": "en", "key": "Users.name", "value": "Name" }
{ "op": "add", "key": "Users.email", "translations": { "nl": "E-mail", "en": "Email" } }
{ "op": "delete", "key": "Users.legacy" }
{ "op": "rename", "oldKey": "Users.name", "newKey": "Users.fullName" }
{ "op": "move", "oldKey": "Users.name", "newKey": "Profile.name" }Development
pnpm install # Install dependencies
pnpm dev # Watch mode
pnpm test # Run tests
pnpm test:watch # Watch mode tests
pnpm build # Compile TypeScriptTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Research-backed lint + generation for agent context files (CLAUDE.md, AGENTS.md) + prompt enhancer.
Gives AI agents direct access to your Sanity projects and guidance for working with them
Securely search and manage workspace context files for AI agents and teams.
Read and write your Matryoshka Mind Map (nested mind map / TODO app) from AI agents.
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.19 npm5-
- AlicenseNot gradedqualityDmaintenanceAI-powered translation management built for AI agents. Automate localization with regional sensitivity and zero TMS overhead. Works with Claude Code, Cursor, VS Code via MCP protocol. Supports JSON, YAML, Markdown, PO and more.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that lets AI agents read and write locale JSON translation files directly from the conversation without loading the whole catalog into context.7 npm1ISC
- AlicenseCqualityDmaintenanceEnables AI assistants to manage i18next translation files, including adding keys, syncing missing translations, and analyzing coverage.1425 npm12MIT