# locli

> locli is a freemium MCP server for developer tools. Localization for coding agents: push app texts, approve a release, pull translations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, Web, iOS, Android, API
- **Website:** https://locli.dev
- **Repository:** https://github.com/mariohahn/locli/tree/HEAD/cli
- **MCP Registry name:** io.github.mariohahn/locli
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

locli stores an app's user-facing strings once, keyed by meaning, and writes each platform's own format back: String Catalogs for iOS, `strings.xml` for Android and ICU-style JSON for web and backend. The CLI, run as `npx @locli/cli`, finds your text files during `init`, writes a `locli.json` and adds a block to `AGENTS.md` so an agent knows the workflow.

The loop is push, approve, pull. `push` uploads only keys locli lacks and never overwrites existing text, a project owner approves a release in the web app, and `pull` writes the approved release into your files. Other commands show status, find the feature area a new key belongs to, report where a key is used in code and show the translation guide with glossary and tone.

Placeholders, plurals, glossary and tone are checked before a text can ship, and the site says there are no per-word fees because the agent translates with its own model. It is hosted in Frankfurt. The stdio MCP package reads `LOCLI_TOKEN`, `LOCLI_CONFIG` and `LOCLI_API_URL`.

## Features

- **One key per meaning:** Keep a single key across iOS, Android, web and backend.
- **Platform-native output:** Write String Catalogs, strings.xml and JSON with plurals and placeholders converted.
- **Approval before release:** Every changed text waits for an owner's approval, shown as a diff.
- **Safe push:** Upload only missing keys and never overwrite existing texts.
- **Translation guide:** Keep glossary, tone and product names so every agent translates alike.
- **Status and context:** Show missing translations and where each key is used in code.

## Good for

- Have an agent add a feature with keys instead of hard-coded strings
- Translate new texts into every project language
- Keep iOS, Android and web wording in sync
- Let product or marketing fix a text without a pull request

## Install

### Claude Code (Terminal)

```sh
claude mcp add locli --env LOCLI_TOKEN='<LOCLI_TOKEN>' -- npx -y @locli/cli
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "locli": {
      "command": "npx",
      "args": [
        "-y",
        "@locli/cli"
      ],
      "env": {
        "LOCLI_TOKEN": "<LOCLI_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "locli": {
      "command": "npx",
      "args": [
        "-y",
        "@locli/cli"
      ],
      "env": {
        "LOCLI_TOKEN": "<LOCLI_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "locli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@locli/cli"
      ],
      "env": {
        "LOCLI_TOKEN": "<LOCLI_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "locli": {
      "command": "npx",
      "args": [
        "-y",
        "@locli/cli"
      ],
      "env": {
        "LOCLI_TOKEN": "<LOCLI_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "locli": {
      "command": "npx",
      "args": [
        "-y",
        "@locli/cli"
      ],
      "env": {
        "LOCLI_TOKEN": "<LOCLI_TOKEN>"
      }
    }
  }
}
```

## FAQ

### How do I log in locally?

Run `npx @locli/cli login`; in CI set the `LOCLI_TOKEN` environment variable.

### Can an agent overwrite approved texts?

No. `push` never overwrites existing texts, and builds pull only approved releases.

### Which formats does it handle?

iOS String Catalogs, Android strings.xml and JSON for web and backend.

### Is there a free plan?

The site says it is free for one project, with no credit card and no per-word fees.

### Is locli free?

locli has a free plan, with paid plans for more usage or features.

### How do I add locli to Claude Code?

Run this command in your terminal: claude mcp add locli --env LOCLI_TOKEN='<LOCLI_TOKEN>' -- npx -y @locli/cli

### What are the best alternatives to locli?

The closest alternatives to locli are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [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.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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