# glot

> glot is an open-source MCP server for developer tools. App string context and glossary for coding agents; blocks broken translations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/mattjeff/glot
- **MCP Registry name:** io.github.MattJeff/glot
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add glot --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' -- npx -y glot-i18n
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "glot": {
      "command": "npx",
      "args": [
        "-y",
        "glot-i18n"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "glot": {
      "command": "npx",
      "args": [
        "-y",
        "glot-i18n"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "glot": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "glot-i18n"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "glot": {
      "command": "npx",
      "args": [
        "-y",
        "glot-i18n"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "glot": {
      "command": "npx",
      "args": [
        "-y",
        "glot-i18n"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>"
      }
    }
  }
}
```

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/glot
