Skip to main content
Glama
transglot MCP server

transglot MCP server

Official
by transglot

transglot MCP server

npm license

A Model Context Protocol (MCP) server for transglot, AI translation management for software teams. It gives AI coding agents and assistants typed tools to read and write translations, pull and push localization files in 20 formats, start AI translation batches, run translation QA and manage the glossary, all over the transglot public REST API.

Use it to let an agent localize the feature it just built: add the strings, push the source file, translate the missing locales, check QA and pull the results back into the repository.

  • Stdio server on npm: npx -y @transglot/mcp, authenticated with a project access token.

  • Hosted remote server at https://api.transglot.ai/mcp (Streamable HTTP with OAuth), for clients that support remote MCP servers. No token to paste.

  • 17 tools covering translations, languages, batches, QA, glossary and file import/export.

Links: Website · MCP docs · npm · CLI · GitHub Action

This repository is a read-only mirror of the source published to npm, synced on every release. Report issues at transglot.ai/contact.

Requirements

A project access token (tgl_…). Create one in the transglot web UI: in the project, open Settings, choose the Project tab, then API keys. Minting a token needs the Starter plan or above. Node.js 20 or later.

One server instance serves one project: the token is project-scoped, and the abilities on the token (read, write, pull, push, manage) gate which tools succeed.

Related MCP server: Smartling MCP Server

Setup

Most MCP clients read an mcpServers block like this one. In Cursor it goes in .cursor/mcp.json; other clients use their own MCP settings file.

{
  "mcpServers": {
    "transglot": {
      "command": "npx",
      "args": ["-y", "@transglot/mcp"],
      "env": { "TRANSGLOT_TOKEN": "tgl_xxx" }
    }
  }
}

Hosted server (OAuth, no token)

Add https://api.transglot.ai/mcp as a remote MCP server in your client and sign in with your transglot login. You choose the workspaces the connection reaches and its abilities. One connection reaches every project where you are the account Owner, an Admin or a Developer. The tools are the same, plus list_projects; every other tool takes an optional project id. It needs a workspace plan with API access (Starter and above). Full guide: transglot.ai/docs/mcp.

Environment

Variable

Required

Meaning

TRANSGLOT_TOKEN

yes

Project access token (Bearer). Never logged; redacted from every error message.

TRANSGLOT_BASE_URL

no

Server base URL for self-hosted installs. Defaults to https://api.transglot.ai (the API host; the web UI on https://app.transglot.ai serves no /v1 paths). Plain http:// is allowed for loopback hosts only. TRANSGLOT_URL (the CLI's variable) is honored as a fallback.

Tools

Read tools are free and side-effect-less; mutating tools state their effects in their descriptions so the agent (and you, via your client's approval flow) can decide. Tools marked AI spend consume the organization's AI word quota.

Tool

Effect

get_project

Read project identity, configured locales, key count.

list_languages

Read the locale inventory.

add_language

Add a target language; unless translate_now is false, also translate the existing strings into it (AI spend). Needs manage.

get_translation

Read one key in one locale: value, workflow state, staleness, QA verdict.

upsert_translation

Create/overwrite one value (or plural forms) as a human edit. A source-locale edit may auto-queue an AI batch (AI spend).

translate_missing

Queue an AI batch filling missing target values; never overwrites human edits (AI spend).

get_batch_status

Poll a batch by id, optionally with its failed items.

list_batches

List recent batches; active_only finds the one blocking a new run.

retry_failed_batch

Re-queue a finished batch's failed items (AI spend).

cancel_batch

Stop a running batch; unspent reserved words return to the allowance.

run_qa

Run the agentic QA pass; findings land on each row (AI spend, plan-gated).

glossary_list_terms

List glossary terms, keyset-paginated via next_cursor.

glossary_add_term

Add an active term (do-not-translate / forbidden / required translations).

glossary_update_term

Full-replace a term by id.

glossary_delete_term

Permanently delete a term by id.

pull_file

Export one locale as a file (20 formats, optional min_state filter).

push_file

Import file content; sync_removals also deletes keys absent from a source file; optional metadata sidecar (key descriptions and length ceilings) on a source-locale push.

Formats for pull_file/push_file (the upload filename defaults to <locale>.<ext>):

Format

Extension

Format

Extension

json_flat

.json

csv

.csv

json_nested

.json

xlsx

.xlsx

android_xml

.xml

xliff_20

.xlf

ios_strings

.strings

java_properties

.properties

ios_stringsdict

.stringsdict

resx

.resx

flutter_arb

.arb

markdown

.md

laravel_php

.php

unity_csv

.csv

laravel_json

.json

unreal_po

.po

xliff_12

.xlf

ios_xcstrings

.xcstrings

gettext_po

.po

yaml

.yml

unity_csv and unreal_po are the game engine formats (Unity string tables and Unreal .po catalogs).

Behavior

  • Transport: stdio for this package (npx @transglot/mcp), with a project token; stdout is reserved for the protocol, diagnostics go to stderr, and npx @transglot/mcp --help prints usage. Streamable HTTP for the hosted connector at https://api.transglot.ai/mcp, with OAuth.

  • Errors: RFC 7807 problems from the API surface as in-band tool errors, slug (HTTP status): detail plus a what-to-do-next hint (e.g. quota exceeded reports used/limit and says to raise the word limit).

  • Rate limits: the API allows 60 requests/minute per token; transient 429s are retried automatically (honoring Retry-After, capped, max 2 retries) before an error is surfaced. The hosted connector gets 60/minute in each project and retries once, only when Retry-After is 10 s or less.

  • Security: the token is sent only as the Authorization header and is redacted from any error text, even if a server echoes it back.

Not covered

The public API has no endpoints for listing/searching keys, creating/deleting individual keys (keys are managed by pushing source files), or removing languages (done in the web UI), so there are no tools for those. Adding a language is covered by add_language. The API's webhook endpoints have no tools here; manage webhooks in the web UI or through the REST API.

Development

npm ci
npm run typecheck
npm test        # vitest; builds dist/ once for the stdio ring
npm run build

Available Tools

17 tools
add_languageAdd a languageA

Add a target language to the project. Pass a BCP 47 tag ("de", "pt-BR", "zh-Hans"); the result carries the CANONICAL code (e.g. "pt_BR"), which is the one to use in every later call. Unless translate_now is false, it also starts an AI translation run of the existing strings into the new language, which SPENDS the organization AI word quota; the run happens only when the project translates on its own (auto_translate), whatever translate_now says, and otherwise batch_id and backfill_skipped_reason are both null. Poll get_batch_status with batch_id. A refused run does not refuse the add: the language is still added, batch_id is null and backfill_skipped_reason says why (quota_exceeded, translation_paused, nothing_to_translate). Fails with locale-rejected for an unknown code or a language the project already has, and plan-limit when the account plan has no room for another language. Each new language takes one of the language slots on the account plan (unless another project of the account already uses it), and it cannot be removed through the API, only in the transglot web UI, so do not add languages to experiment. Workspace admins are notified. Requires the "manage" ability.

Inputs: locale (required), translate_now. Returns: batch_id, language, backfill_skipped_reason

cancel_batchCancel a running batchA
Idempotent

Stop a pending or processing AI translation batch. Queued chunks refuse to run, so this is how you STOP spend rather than cause it, and the batch's unspent reserved words go back to the cycle allowance (words already spent on the items it completed stay spent). Already-translated items are kept; the remaining items are marked failed, so retry_failed_batch resumes what was stopped. Idempotent: a batch that already finished comes back unchanged with its own status, never an error. Requires the "manage" ability.

Inputs: batch_id (required). Returns: id, total, failed, status, +6 more

get_batch_statusGet batch statusA
Read-only

Read one AI translation batch by id: status (pending / processing / completed / completed_with_errors / failed / cancelled), progress counters (total, completed, failed) and the per-language breakdown. Set include_failures to also list up to 100 failed items as {key, locale, error}. Free read. Poll this after translate_missing, retry_failed_batch, or a push that queued a batch. Be mindful of the 60 requests/minute limit when polling.

Inputs: batch_id (required), include_failures. Returns: id, total, failed, status, +6 more

get_projectGet projectA
Read-only

Read the current project: id, name, slug, source locale, every configured locale (with RTL flag and which one is the source), the total key count, and the message syntax and icu dialect. Free read with no side effects. Call it first to learn which locales exist before reading or writing translations.

Inputs: no named parameters. Returns: id, name, slug, locales, +4 more

get_translationGet translationA
Read-only

Read one translation key in one locale. Free read. Returns the full row: key metadata (name, description, is_plural, max_length) plus the source-locale cell and the requested locale's cell with its content or plural_forms, workflow state (ai_translated / human_edited / reviewed / null when missing), staleness flag, and the persisted QA verdict (needs_review, qa_score, qa_findings). Requires the "read" ability.

Inputs: key (required), locale (required). Returns: row

glossary_add_termAdd glossary termA

Create a new glossary term with status "active". It immediately steers future AI translation and QA for this project. Set do_not_translate for terms that must stay verbatim (brand names), forbidden for terms QA must flag, or provide required per-locale translations. Plan-gated feature; requires the "manage" ability. Returns the created term (with its id).

Inputs: source_term (required), notes, forbidden, translations, +3 more. Returns: id, notes, status, forbidden, +10 more

glossary_delete_termDelete glossary termA
DestructiveIdempotent

Permanently delete a glossary term by id. This cannot be undone; future AI translation and QA stop enforcing the term. Plan-gated feature; requires the "manage" ability.

Inputs: term_id (required). Returns: deleted, term_id

glossary_list_termsList glossary termsA
Read-only

List the project's glossary terms (plan-gated feature). Returns up to 100 terms per page with keyset pagination: pass the returned next_cursor to fetch the next page; next_cursor is null on the last page. Filter by status: "active" (default, enforced in AI translation and QA), "pending" (AI-extracted candidates awaiting review), or "rejected". Free read; requires the "read" ability.

Inputs: cursor, status. Returns: terms, next_cursor

glossary_update_termUpdate glossary termA
DestructiveIdempotent

REPLACE a glossary term by id. This is a full replace, not a patch: send every field that should be kept; source_term is required and any omitted optional field resets to its default (false / empty). Read the term first via glossary_list_terms. Plan-gated feature; requires the "manage" ability. Returns the updated term.

Inputs: term_id (required), source_term (required), notes, forbidden, +4 more. Returns: id, notes, status, forbidden, +10 more

list_batchesList batchesA
Read-only

List the project's AI translation batches, most recent first (at most 50). Set active_only to return only running batches (status pending or processing), useful to find the batch that is blocking a new translate_missing call, or the auto-batch queued by a source-locale edit. Free read.

Inputs: active_only. Returns: batches

list_languagesList languagesA
Read-only

List the locales configured on the project (code, display name, RTL flag, is_source) plus the source locale. Free read with no side effects. Use add_language to add one; removing a language is done in the transglot web UI.

Inputs: no named parameters. Returns: languages, source_locale

pull_filePull (export) a translation fileA
Read-only

Export one locale's translations as a localization file and return its content as text. Free read. Formats: json_flat, json_nested, android_xml, ios_strings, ios_stringsdict, flutter_arb, laravel_php, laravel_json, xliff_12, ios_xcstrings, gettext_po, yaml, csv, xlsx, xliff_20, java_properties, resx, markdown, unity_csv, unreal_po. Optional min_state exports only values that are human_edited-or-better, or reviewed only. skipped_keys counts entries the chosen format cannot represent (e.g. plural keys in json_flat, simple keys in ios_stringsdict). On a project set to icu message syntax the server also withholds entries whose translation is not valid ICU MessageFormat, and reports how many in omitted_invalid_icu_keys, which is absent when the server did not check. Requires the "pull" ability.

Inputs: format (required), locale (required), min_state. Returns: content, filename, skipped_keys, omitted_invalid_icu_keys

push_filePush (import) a translation fileA
Destructive

Import a localization file into one locale; pass the file content as a string (max 10 MB before JSON escaping, which can enlarge it, so a file with many non-ASCII characters may be refused below 10 MB). Formats: json_flat, json_nested, android_xml, ios_strings, ios_stringsdict, flutter_arb, laravel_php, laravel_json, xliff_12, ios_xcstrings, gettext_po, yaml, csv, xlsx, xliff_20, java_properties, resx, markdown, unity_csv, unreal_po. Pushing the SOURCE locale creates new keys and updates source values; pushing a target locale writes translations for existing keys (unknown keys are reported, never created). Values are written as human edits, but the server keeps existing human edits over pushed values and reports them as conflicts. Mode "sync_removals" (source locale only) additionally DELETES every project key missing from the file. This is destructive; the default "merge" never deletes. When the project has auto-translate on, a push may queue an AI batch (returned in batch, quota permitting; see quota_exceeded, and translation_paused for any other stop on AI spend). Optional metadata (source locale only, and not for formats that carry descriptions in the file) is a JSON sidecar of key descriptions and length ceilings keyed by key name, e.g. {"cart.title": {"description": "Cart page heading", "max_length": 40}}; null clears a field, an absent field is left alone. The result then carries a metadata block, and a warning if the server ignored the sidecar. Requires the "push" ability.

Inputs: format (required), locale (required), content (required), mode, +2 more. Returns: batch, metadata, warnings, conflicts, +7 more

retry_failed_batchRetry failed batch itemsA
Destructive

Re-queue the FAILED items of a finished batch as a new AI translation batch. SPENDS AI word quota and conflicts with a running batch (active-batch, HTTP 409). Returns the new batch; poll get_batch_status with its id. Requires the "manage" ability.

Inputs: batch_id (required). Returns: id, total, failed, status, +6 more

run_qaRun AI QA passA
Destructive

Run the agentic QA pass over the project's target translations (plan-gated: requires a plan with quality mode). Scopes: "missing" = rows never QA'd, "stale" = rows whose source changed since their last QA, "all" = every row, "selected" = only the given key_ids (a no-op without key_ids); optionally restrict locales. Incremental: rows already QA'd against the current source are skipped. SPENDS AI word quota. Returns {dispatched_jobs, rows}; findings are persisted per row and appear in get_translation as needs_review / qa_score / qa_findings once the background jobs finish. Requires the "manage" ability.

Inputs: scope (required), key_ids, locales. Returns: rows, dispatched_jobs

translate_missingTranslate missing values with AIA
Destructive

Start an AI translation batch that fills every MISSING target value and re-translates every STALE machine translation (one whose source text changed since), optionally restricted to given locales and/or numeric key_ids. A stale machine translation is replaced; human-edited and reviewed translations are never overwritten, stale or not. SPENDS the organization AI word quota (fails with quota-exceeded when exhausted) and conflicts with a running batch (active-batch, HTTP 409; the running batch id is in the error). Returns the queued batch immediately; poll get_batch_status with its id until the status is terminal (completed, completed_with_errors, failed, or cancelled). Requires the "manage" ability.

Inputs: key_ids, locales. Returns: id, total, failed, status, +6 more

upsert_translationUpsert translationA
DestructiveIdempotent

Create or OVERWRITE the value of one existing key in one locale (it cannot create new keys; use push_file on the source locale for that). Pass value for a simple key, or plural_forms (CLDR category map, e.g. {"one": "...", "other": "..."}) for a plural key. Send exactly one of the two. A JSON project has no plural FORMS: an ICU plural or select there is ONE string, so send it as value with its selectors and argument names verbatim (e.g. {count, plural, one {# item} other {# items}}). plural_forms is for a key the project stores as separate forms (is_plural true, as gettext or Android do); splitting an ICU message into it writes a row the format cannot represent. The write is recorded as a human edit (state human_edited) and versioned server-side, so it wins over future AI batches. Overwriting the SOURCE locale marks targets stale and, if the project has auto-translate on, queues a background AI batch (spends AI word quota; its id is not returned, so check list_batches). Optional reviewer attributes the edit. Returns the fresh row. Requires the "write" ability.

Inputs: key (required), locale (required), value, reviewer, +1 more. Returns: row

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 17 tools

    Disambiguation4/5

    Most tools have clearly distinct resource+action targets: language management, translation reads/writes, batch lifecycle, QA, glossary CRUD, and file import/export are all well separated. The one notable overlap is list_languages versus get_project, since get_project already returns every configured locale and its description even tells agents to call it first to learn which locales exist, making the standalone language lister somewhat redundant.

    Naming Consistency4/5

    The dominant convention is verb_noun (list_languages, get_project, add_language, get_translation, upsert_translation, cancel_batch, run_qa, pull_file, push_file), which is clear and readable. The glossary tools break the pattern by putting the noun first (glossary_list_terms, glossary_add_term, glossary_update_term, glossary_delete_term) instead of list_glossary_terms etc., a minor but systematic deviation.

    Tool Count4/5

    At 17 tools the surface is on the heavier side, but the domain is genuinely broad: locales, translations, AI batches, QA, glossary, and file import/export each justify dedicated operations. No tool appears redundant or purely decorative, so the count is reasonable for a full localization platform.

    Completeness4/5

    Coverage is strong: glossary has full CRUD, batches have create/status/list/retry/cancel, translations have read and upsert, and files have both pull and push. Gaps exist but are documented—languages cannot be removed via the API and translation keys cannot be deleted except through destructive sync_removals push, and key creation only happens indirectly via push_file on the source locale.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables comprehensive translation management through POEditor's API with project, language, term, and translation operations. Includes automation scripts for reporting, monitoring, AI-powered suggestions, and multi-format exports.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      AI-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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Lets a coding agent find, translate, validate and review an app's existing localization files (Android strings.xml, Apple String Catalogs, gettext) directly in the repo, supplying code usage, comments, glossary and voice notes as context. Placeholders, plural forms, escaping and markup are checked in code before any translation is written, and results land as reviewable drafts that never overwrite hand edits or approved work.
      1
      MIT