glot
App string context and glossary for coding agents; blocks broken translations
- Pricing
- Open source
- Platforms
- CLI, macOS, Windows
- Runs
- Locally
- Version
- 0.4.0
- Listing updated
- today
Similar MCP servers
About glot
glot is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
glot is an i18n toolchain whose bundled MCP server hands a coding agent your translation keys, where they are used (file and line, plus UI role), the glossary, and tools that add strings through the same validator. Every LLM output is checked by code, and a refused string goes back to the model with the exact reason, two retries and then a fallback model; if it still fails, nothing is written to your catalogs.
The checks cover placeholders (same set as the source, none invented), CLDR plural categories for the target language, a glossary of required, forbidden and do-not-translate terms, and pixel width, where measured boxes and fonts from your running app cause translations that would overflow to be refused. A lockfile hashes source and target so only the delta is translated and hand edits are never overwritten without a force flag. Commands also detect your i18n stack and convert hardcoded UI strings into keys for next-intl and react-i18next.
It adds no runtime and works with your existing i18n library. The translate step needs your own Anthropic, OpenAI or compatible key; context, check and add do not. MIT licensed.
Install
Run in a terminal
claude mcp add glot --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- npx -y glot-i18nAdd to claude_desktop_config.json
{
"mcpServers": {
"glot": {
"command": "npx",
"args": [
"-y",
"glot-i18n"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"glot": {
"command": "npx",
"args": [
"-y",
"glot-i18n"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"glot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"glot-i18n"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"glot": {
"command": "npx",
"args": [
"-y",
"glot-i18n"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"glot": {
"command": "npx",
"args": [
"-y",
"glot-i18n"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
ANTHROPIC_API_KEYLLM key used by the translate tool (or OPENAI_API_KEY, per glot.toml). Not needed for context, check or add.
What it does
- Live string context
- Shows each key's usages, including file, line and UI role.
- Validated translations
- Refuses outputs with wrong placeholders, plurals or glossary terms.
- Pixel-width checks
- Rejects translations wider than the measured UI box.
- Delta-only translation
- Lockfile hashing translates only what changed.
- Hardcoded string extraction
- Turns hardcoded UI strings into keys and rewrites components.
- Glossary enforcement
- Applies required, forbidden and do-not-translate terms.
Good for
- Localise an app into French and German with a coding agent
- Catch placeholder or plural errors before merge
- Stop long translations from overflowing buttons
- Enforce brand terms across languages
Pricing
Open source
MIT licensed; bring your own LLM key for translation
glot FAQ
Do I need an API key?
Only for the translate tool; context, check and add do not need one.
Which libraries does it support?
It works with your existing i18n library, and extraction targets next-intl and react-i18next.
What happens if a translation is invalid?
It is retried up to twice, then a fallback model is tried, and otherwise nothing is written.
What licence is it?
MIT.
Is glot free?
Yes. glot is open source, so you can use and self-host it for free.
How do I add glot to Claude Code?
Run this command in your terminal: claude mcp add glot --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- npx -y glot-i18n
What are the best alternatives to glot?
The closest alternatives to glot are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


