All writing
Field notes

xcstrings-mcp: Xcode localization with coding agents

I publish my own iOS apps, and every new feature brings text that needs translating. I built xcstrings-mcp to let coding agents work on their Xcode String Catalogs (.xcstrings). It runs locally and checks catalog edits before saving them. I still want to know what the agent changed and whether those words belong in the app.

Download PDF
Recorded narration 1×
An ink drawing of a card catalog connected to interface labels on a phone.
Give the agent the relevant entries and keep the catalog around them intact.

A small translation task can become a very large edit

Xcode stores an app’s localizations in String Catalogs, the .xcstrings files in the project. Inside that JSON are the original text, translations, comments, plural forms and translation states. Add more screens and languages, and a request to translate a few new labels can send an agent digging through a file full of unrelated content.

I don’t want to spend the model’s context on the rest of the catalog, then review a diff full of formatting changes to find the sentences I asked for. The agent needs a way to ask for the relevant entries and change those entries without rewriting their surroundings.

xcstrings-mcp provides that interface. It is an open-source MCP server, written in Rust, that runs locally between the coding agent and the catalog. The agent handles the translation; the server reads and writes the file through structured operations. That lets me define a smaller job, with a result I can actually inspect.

Give the agent a worklist and the context to use it

The workflow starts by identifying the entries that need work in the target language and capturing a fixed list. The agent can read them in batches. Finishing that list gives it a stopping point, instead of an open-ended instruction to keep translating until a coverage counter reaches 100%.

Small batches still need enough context. A button labelled “Open” could open a document or describe a shop’s status. Through the tool, the agent can retrieve the current source, context supplied by the developer, variables, relevant glossary terms and nearby entries. The glossary helps keep the same product concept from acquiring a different name on every screen.

This is the information I want the model to spend its attention on. Once it has a proposed translation, though, I want checks that can reject a concrete mistake without another model having to notice it.

Catch the mistakes that code can check

A translation can read perfectly well while breaking the app’s formatting. If the source expects a number through %lld and the translation drops that argument, nice wording won’t fix it. Plurals have their own rules too: copying the source language’s forms does not necessarily give the target language all the forms it needs. xcstrings-mcp checks format arguments and plural requirements before saving translations.

There is another problem even a good translation can have: it may be based on an old source. Imagine changing “Delete” to “Delete permanently” while an agent is still working. The server requires the source version captured when the agent read the entry and rejects the submission if the source or its authored context has changed. The agent has to read the new input and reconsider its answer.

When the text passes those checks, native edits preserve the catalog’s other fields, member order and Xcode formatting. I want the diff to show the translation work. Keeping the rest of the file stable makes the next step, reviewing that work, much less distracting.

Keep the review visible until the text works in the app

Submitting a translation saves it as a draft marked needs_review. Approval is a separate operation: it checks the captured source and target versions, then changes the state without rewriting the text. An agent should not approve its own drafts just to make the coverage figure look finished.

That separation gives the review a useful starting point. The wording is there, the mechanical checks have run, and the outstanding drafts are visible in a queue. I can focus on whether a term fits the product, whether a button is clear and whether the text fits the interface. A technically valid sentence can still be a bad label.

This is the kind of tooling I want around my agents. I can hand over the repetitive translation work while making mistakes easier to find and unfinished work harder to hide. The result I care about is the text someone sees while using my app. The catalog and its coverage report should help me get there.

The same localization work continues on the store page, where screenshots need their own context. I cover that in the appshots-mcp note.

Try it on your own catalog

Install xcstrings-mcp with either Homebrew or Cargo. Choose the package manager you already use; you only need one of these commands.

Homebrew
brew install Murzav/tap/xcstrings-mcp
Cargo
cargo install xcstrings-mcp

If you use Claude Code, register the server with:

Connect to Claude Code
claude mcp add xcstrings-mcp -- xcstrings-mcp

Then ask the agent to inspect your .xcstrings catalog and report missing translations for one language before making changes. The repository has setup instructions for other MCP clients and the full translation workflow. Read the repository documentation