Menu

AI agents (MCP)

Lingo exposes a remote MCP endpoint so AI agents can read, add, machine-translate and review copy on your behalf. Every connection signs in with a real Lingo account: the agent gets your org role, nothing more.

Endpoint: https://<your-lingo-host>/api/mcp (no trailing slash). Auth: OAuth 2.1 (PKCE). Clients register themselves (Client ID Metadata Documents or dynamic registration); you approve a consent screen in Lingo. Scopes: read:translations (list/search/read, translation memory, glossary, review queue) and write:translations (create/edit/delete keys, DeepL, approve, suggest, glossary). Both are proposed on the consent screen; untick write for a read-only agent.

Connect

ClientHow
claude.ai / Claude DesktopSettings → Connectors → Add custom connector → paste the endpoint URL → Connect → approve in Lingo.
Claude Codeclaude mcp add --transport http lingo https://<host>/api/mcp then /mcp → authenticate.
CursorSettings → MCP → Add server → type HTTP, URL above → sign in when prompted.
ChatGPTSettings → Connectors → Create (developer mode) → MCP server URL above → OAuth → approve in Lingo.

A connection stays signed in as long as it is used at least once every 30 days. All Claude Code sessions on one machine share one connection.

Revoke a connection any time under Connected apps (/app/connected-apps, or the command palette). The agent's next call fails immediately.

Tools

ToolScopeWhat it does
list_projectsreadOrgs, projects, languages and your role. Call first.
search_keysreadKeys by path, context or text in any language, with context and statuses.
get_keyreadOne key: context, values, statuses, provenance; suggestions from translator.
project_statusreadPer-language counts, including unreviewed machine translations.
tm_lookupreadTranslation-memory matches for a source text.
list_glossaryreadGlossary terms and locked renderings (admin).
list_pendingreadValues awaiting review: draft, in review, or with a pending suggestion.
create_keywriteNew key; context required, source copy optional; memory fills identical copy as drafts (reuseMemory), then machineTranslate → DeepL.
set_key_contextwriteSets the context on up to 50 existing keys; per-key results.
set_translationwriteHuman draft for one language; approve=true (admin) approves it too.
bulk_create_keys / bulk_set_translationswriteEvery locale of up to 50 keys in one call (new keys / existing keys); per-key errors; no webhooks.
delete_keywriteDeletes a key and its values.
translate_key / translate_missingwriteDeepL into empty targets as fuzzy drafts; useContext opt-in for bulk.
approve_translationwriteBatch approve up to 50 key/language pairs; closes their pending suggestions.
decide_suggestion / suggest_translationwriteReview-workflow actions; see Review workflow.
add_glossary_termwriteAdds a glossary term (admin).
delete_glossary_termwriteRemoves a glossary term for one language (admin).
get_guidereadHow-to guides (list, or one by name), always the deployed version.

Prompts (slash commands in Claude Code, e.g. /mcp__lingo__migrate_from_locize emails): migrate_from_locize <namespace> runs the migration runbook; backfill_context <org/project> writes key contexts from the current repo.

Guides are how-to documents the server hands to agents through get_guide. They ship with the server, so every connected agent reads the version that is currently deployed; there is nothing to share or install.

Keys are addressed by their full dotted path exactly as the editor and CLI show them.

set_translation refuses to replace approved text unless approve=true is passed. approve=true needs the admin role, and that is checked before anything is written. So a translator's agent can't change approved text directly: it proposes the change with suggest_translation. This is stricter than the editor, where a translator's edit to approved text is saved and returns the value to draft (see Editing approved text).

bulk_create_keys and bulk_set_translations write whole keys. Every project locale (the source and every target) is required for each key, and a blank value counts as missing. A key with an error is reported in results and the other keys are still written, but a database error rolls back the whole call. An approved value changes only with approve=true (admin role); otherwise use suggest_translation. Unchanged text is skipped and keeps its status, even with approve=true. approve=true approves only the values whose text the call changes, and closes pending suggestions only on those values. To approve unchanged text (for example a DeepL draft), use approve_translation. bulk_create_keys uses no translation memory and no DeepL, and its key names follow the same rule as create_key. Neither tool sends webhooks. Responses are { updated, results } and { created, results }. updated/created count keys accepted, including keys whose text was unchanged. Send 10-25 keys per call; the limit is 50.

An agent connected by a viewer or developer can use the read tools, apart from the glossary, which needs an admin. get_key gives it the key's values without the pending suggestions, which need the translator role. Every write tool refuses it.

Every key has a context: where it is used, e.g. "Checkout button on the payment screen of the booking flow". It tells same-looking copy apart ("checkout" the payment vs. checking out a stored bag). Reviewers should judge a translation against it. Single-key machine translation sends it to DeepL (translate_key, create_key with machineTranslate, the ✨ button); bulk translate_missing / "Translate missing" only with useContext / the "Use key context" checkbox, off by default so bulk runs keep batching 50 keys per request. DeepL does not bill context characters. The app and create_key require it; the REST API (description field) and file imports keep it optional.

How it works

Lingo is its own OAuth 2.1 authorization server for the MCP profile: public clients only, PKCE S256 mandatory, opaque tokens stored hashed, access tokens live one hour, refresh tokens live 30 days and rotate on every use. An access token stays valid until it expires even after a refresh, because each session of a client holds its own copy. A rotated refresh token presented again by the same client still gets a new pair while the tokens that replaced it are unused or were first used less than a minute ago. That covers sessions that share a connection and refresh at the same moment, for example after the computer wakes up, and a session that lost the new pair while the computer went to sleep. Presented after that, it revokes the whole grant. Discovery documents live at /.well-known/oauth-authorization-server and /.well-known/oauth-protected-resource. Tokens are bound to the MCP endpoint; API keys are never accepted there and OAuth tokens are never accepted by the REST API.

Rate limits: 600 requests/min per user on the endpoint; registration and token endpoints are limited per IP.

Tool calls that name an organisation are counted on its Settings → Statistics page, per member and agent. Admins see which tools each member's agent called, in which project, how often, whether the calls succeeded and how much data they returned, never the content of a request or a result.

Operator notes: No new configuration: the issuer is NEXT_PUBLIC_APP_URL. Note that Next inlines it at build time — when you change it, rebuild the image (or pass --build-arg NEXT_PUBLIC_APP_URL=…); otherwise every discovery document, iss and resource check disagrees with your real domain and no token is usable. Set AUTH_SECRET (already required in production); the consent form is signed with it.