TODO verify: translate5 version this feature is available from.
The MCP server lets AI apps like ChatGPT and Claude work with translate5 for a user: translate texts and files, create projects, read status and statistics. This page is for administrators: how to activate it, how AI apps log in, and which options and rights exist. How users work with it is described on the user page “AI apps: work with translate5 from ChatGPT, Claude and other AI apps (MCP)”.
Paid plug-in
The MCP server is the plug-in “Mcp”. It is not part of the open source core of translate5.
Requirements and activation
- translate5 is reachable over HTTPS. The apps of ChatGPT and Claude connect from the servers of their provider, so the address must be reachable from the internet.
- The address of the instance is set correctly in
runtimeOptions.server.name. - The plug-in is active.
t5 plugin:enable Mcp
Server address
AI apps connect to https://<address of translate5>/editor/mcp. Administrators find the address ready to copy in “Preferences” > “AI apps” > “Start”.
- The MCP server only answers on the main address of the instance and on the domains set for clients (“Clients” > “General” > “Website address (domain only)”). A request with any other host name gets the answer 403 “Invalid Host header”.
- An AI app stays on the address it connected to: the login, the token renewal and the uploads use the same address.
How AI apps log in
AI apps log in with the translate5 login of the user (OAuth 2.1 with PKCE). No password or token is typed into the AI app.
- The user adds the server address in the AI app.
- The app opens a browser page of translate5. The user logs in there with the normal translate5 login, or with the single sign-on of the client (see below).
- The page “Connect <app> to translate5” names the app and the user. The user clicks “Allow”.
- The app gets an access token that is valid for one hour and renews it in the background.
- Allowed apps. Only the apps listed in
runtimeOptions.plugins.Mcp.oauthAllowedClientscan log in. Each app is given by the URL of its client metadata document. ChatGPT and Claude (web, desktop and coding apps) are allowed by default. Remove an entry to block an app, its connections end at their next renewal. - Rights. The AI app works as the user. Every action runs with the rights and the client restrictions of this user, the same as in the translate5 UI and the REST API.
- Every renewal confirms the user. translate5 checks at each renewal that the user still exists and may use the MCP server. A deleted user loses the connection at once.
- Lifetime. A confirmed connection goes on and ends when the app does not use it for 30 days (
oauthConnectionIdleDays).
Single sign-on
If a client logs in with OpenID Connect, its users connect the AI app with the domain of the client as server address. The login of the AI app then goes to the identity provider of this client, the same way as the translate5 login. A user who is already signed in at the company only clicks “Allow”.
Add the redirect URI at the identity provider
The identity provider must accept an additional redirect URI for the login of AI apps: https://<domain of the client>/editor/mcp/oauth/sso. You find it ready to copy in “Clients” > “OpenID Connect” > “Redirect URI for AI apps”. Add it to the app registration of the identity provider, next to the one of the translate5 login. Without it the login of the AI app stops at the identity provider with a redirect URI error.
Situation | What happens |
|---|---|
The user is still valid at the identity provider | translate5 asks the identity provider at every token renewal (about once per hour of use) and updates the roles and clients of the user like on a login. The connection goes on, the user does not log in again. |
The user was disabled at the identity provider, or the roles sent no longer allow a translate5 login | The connection ends at the next renewal. Event |
The identity provider cannot be asked: it is not reachable, hands out no lasting refresh token, or asking is turned off | The connection goes on for at most 24 hours ( |
- To ask the identity provider, the login of the AI app requests the scope
offline_access. The identity provider must allow this scope for translate5. - If the identity provider refuses the login because of the scope, turn off
runtimeOptions.plugins.Mcp.oauthAskIdentityProvider. Connections then end after the 24 hours named above. - The single sign-on of AI apps only works over HTTPS and on the domain of the client. On the main address of the instance the translate5 login is used, unless the main address has a single sign-on itself.
TODO verify: test run against Microsoft Entra ID (redirect URI, scope offline_access, disabled user) before this section is published.
Agents with an application token
Scripts and agents that cannot do the browser login can use an application token of translate5 instead. They send it with every request to the MCP server in the header Translate5AuthToken. The same rights apply as for the user the token belongs to.
Configuration options
Option (name in the UI) | Default | Can be set for | Description |
|---|---|---|---|
| ChatGPT and Claude | instance | AI apps that may connect with the translate5 login, each given by the URL of its client metadata document. Remove an entry to block the app. |
|
| instance | Days after which a connection ends when the app does not use it. As long as the app is used and the user is confirmed, the connection goes on. |
| enabled | instance | For connections made with single sign-on: translate5 asks the identity provider at every token renewal and updates the roles of the user. Needs the scope |
|
| instance | Hours a connection goes on when the identity provider cannot be asked. After that the user logs in again in the AI app. |
|
| instance | Days the entries of the activity log are kept. |
|
| system | Maximum size of a file uploaded for AI apps. The PHP upload limits of the server apply additionally. |
|
| system | Hours an uploaded file is kept before it is deleted, if no project used it. |
Options of the instance are changed in “Preferences” > “System configuration”, search for MCP:. Options of the system are not shown there, change them on the command line:
t5 config runtimeOptions.plugins.Mcp.uploadMaxSizeMb 100
Access rights
What | Right | Default roles |
|---|---|---|
Connect an AI app and use the MCP server |
| Every user ( |
See the area “AI apps” in the preferences |
|
|
Edit the playbook |
|
|
Read the activity log |
|
|
List and end connections through the REST API (own connections, administrators all) |
|
|
To keep a group of users away from the MCP server, remove the right editor_plugins_mcp_mcp / index from their role. This is a change in the database of the installation.
Actions (tools) and the roles that get them
The MCP server offers an AI app only the actions the connected user has the translate5 rights for. The table shows the default roles.
Action | What it does | Changes data | Default roles |
|---|---|---|---|
| Lists the clients the user may see, with their descriptions and the playbook for all clients. | NO | Every user |
| Returns the playbook and the process of one client. | NO | Every user |
| Opens the upload window in the chat (only in apps that show windows). | NO | Every user |
| Returns an address an agent uploads a file to. | NO | Every user |
| Lists the files the user uploaded. | NO | Every user |
| Returns the beginning of the text of a document. | NO | Every user |
| Translates a text with the language resources of a client. | NO | InstantTranslate |
| Translates a file with the language resources of a client. | YES | InstantTranslate |
| Lists the file translations of the user and their status. | NO | InstantTranslate |
| Returns a translated file as download link. | NO | InstantTranslate |
| Saves a translation to the translation memory. | YES | InstantTranslate write to TM |
| Returns price and date of a revision by a person. | NO | InstantTranslate human revision allowed |
| Orders the revision of a file translation. | YES | InstantTranslate human revision allowed |
| Creates a project with its tasks and starts the import. | YES | PM, PM (selected clients), Admin |
| Lists projects. | NO | PM, PM (selected clients), Admin |
| Returns the status of a project and its tasks. | NO | PM, PM (selected clients), Admin |
| Returns the translated files of a project as download links. | NO | PM, PM (selected clients), Admin |
| Lists open jobs of users. | NO | PM, PM (selected clients), Admin |
| Lists the kinds of language resources that can be created. | NO | PM, PM (selected clients), Admin |
| Lists language resources. | NO | PM, PM (selected clients), Admin |
| Creates a language resource. | YES | PM, PM (selected clients), Admin |
| Sets the default clients of a language resource. | YES | PM, PM (selected clients), Admin |
| Returns post-editing statistics of finished tasks. | NO | PM, PM (selected clients), Admin |
| Read the event log of tasks, and the system log for users who may see it. | NO | PM, PM (selected clients), Admin |
Secrets in logs
The log actions hand log entries to the AI app, and with it to the provider of the AI. Passwords, tokens and other credentials in the entries are masked before. Names and e-mail addresses of users are not masked.
Playbook, connections and activity log
Administrators steer and watch the AI apps in “Preferences” > “AI apps”. The user page describes the tabs “Playbook”, “Connected apps” and “Activity”.
Connections can also be listed and ended on the command line:
t5 mcp:connections:list t5 mcp:connections:list --user <login> t5 mcp:connections:revoke <id>
Addresses
Address | Used for |
|---|---|
| The MCP server (Streamable HTTP). Without a token it answers with the login challenge for AI apps. |
| Discovery of the login for AI apps. |
| Browser page of the login and of the “Allow” button. |
| Return address of the identity provider after the single sign-on of an AI app login. |
| Token exchange and renewal by the AI app. |
| Upload of files for AI apps, with an upload ticket or a token. |
| Download of translated files with a single use ticket. |
Good to know
- Files uploaded for AI apps are kept in
data/McpUploadsand deleted by the periodical cron job after the upload lifetime. - Upload addresses and download links work once and for 15 minutes.
- A document dropped into the chat of an AI app is processed by the provider of the AI before translate5 is involved. The same is true for everything the actions return to the app, for example segments, names of projects and log entries.
- The playbook guides the AI, it does not enforce anything. Binding rules belong into the workflow and the defaults of the client.
Troubleshooting
Problem | What to do |
|---|---|
The AI app cannot connect, the server answers 403 “Invalid Host header” | The app uses an address that is neither the main address ( |
The login of the AI app stops at the identity provider with a redirect URI error | Add the “Redirect URI for AI apps” of the client to the app registration of the identity provider. |
The login page says that the AI app is not allowed | Add the client metadata URL of the app to |
Users of a client with single sign-on have to connect again every day | The identity provider hands out no lasting refresh token or does not allow the scope |
An AI app does not offer an action | The connected user lacks the rights for it, see the table of actions above. |




