---
canonical_url: "https://docs.composio.dev/toolkits/deepl_mcp"
markdown_url: "https://docs.composio.dev/toolkits/deepl_mcp.md"
product: "platform"
version: null
last_updated: null
---

# DeepL MCP

Translate text and documents, improve writing, and discover supported languages through DeepL’s provider-hosted MCP server.

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 9
- **Triggers:** 0
- **Slug:** `DEEPL_MCP`
- **Version:** 00000000_00

## Tools

### Correct-text

**Slug:** `DEEPL_MCP_CORRECT_TEXT`

Correct one or more texts for typos, grammar and punctuation errors using DeepL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | array | Yes | One or more texts to correct. |
| `targetLang` | string | No | Optional target language code. DeepL Write supports: DE, EN-GB, EN-US, ES, FR, IT, JA, KO, PT-BR, PT-PT, ZH-HANS. |

### Download-document

**Slug:** `DEEPL_MCP_DOWNLOAD_DOCUMENT`

Get a download link for a translated document once its status is 'done'. Returns 'downloadUrl', a short-lived, single-use link. Fetch it with an HTTP GET (the URL carries its own token, so do not add an Authorization header), or present it to the user. The link works only once. The bytes are streamed from the server and never pass through this conversation. For an upload with several target languages: omit 'targetLang' to get one link per finished language, or pass it to get that one language.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sessionId` | string | Yes | A session id returned by upload-document. |
| `targetLang` | string | No | Target language code to download, e.g. 'DE'. Omit for every finished language of the upload. |

### Get-document-status

**Slug:** `DEEPL_MCP_GET_DOCUMENT_STATUS`

Check the translation status of a document session. Returns one of: 'awaiting_upload' (file not received yet), 'queued', 'translating', 'done', or 'error'. The additive 'uploadStatus' is 'awaiting', 'uploading', or 'complete' when known. Any of the upload's session ids reports the whole upload: 'status' covers every target language ('translating' while any language still runs, 'error' only when they all failed) and 'targets' reports each language on its own. Once the status is 'done', call download-document.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sessionId` | string | Yes | A session id returned by upload-document. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `status` | string | Yes |  |
| `targets` | string | No |  |
| `sessionId` | string | Yes |  |
| `errorMessage` | string | No |  |
| `uploadStatus` | string | No |  |
| `billedCharacters` | string | No |  |
| `secondsRemaining` | string | No |  |

### Get-source-languages

**Slug:** `DEEPL_MCP_GET_SOURCE_LANGUAGES`

Get the source language codes supported by DeepL for translation, e.g. 'EN' or 'DE'. Use one of these for the sourceLang parameter of translate-text.

### Get-target-languages

**Slug:** `DEEPL_MCP_GET_TARGET_LANGUAGES`

Get the target language codes supported by DeepL for translation, e.g. 'EN-US' or 'DE'. Use one of these for the targetLang parameter of translate-text.

### Rephrase-text

**Slug:** `DEEPL_MCP_REPHRASE_TEXT`

Rephrase text in the same or a different language using DeepL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | array | Yes | One or more texts to rephrase. |
| `tone` | string | No | Optional tone for the output: confident, diplomatic, enthusiastic, or friendly. Requires a style-capable targetLang. Specify either a writing style or a tone, not both. |
| `targetLang` | string | No | Target language code. Optional for a plain rephrase (auto-detected), but REQUIRED when a writingStyle or tone is set. DeepL Write supports: DE, EN-GB, EN-US, ES, FR, IT, JA, KO, PT-BR, PT-PT, ZH-HANS — styles/tones work only on DE, EN-GB, EN-US, ES, FR, IT, PT-BR, PT-PT. |
| `writingStyle` | string | No | Optional writing style for the output: academic, business, casual, or simple. Requires a style-capable targetLang. |

### Translate-text

**Slug:** `DEEPL_MCP_TRANSLATE_TEXT`

Translate text to one or more target languages using DeepL. Use this for plain text provided directly in the conversation — snippets, strings, messages, or passages pasted by the user. Do not use this to translate a file or document (e.g. Word, PowerPoint, Excel, PDF, HTML, .txt, .srt, .xlf/.xliff) — even if you can already read its contents — because it returns plain text and discards the document's layout and formatting. For files, use upload-document instead. Review the optional parameters and use those that apply for best results. When using a glossary, you must specify the source language as well as the target language. If the user references a glossary by name, use list-glossaries to look up its id. An unknown glossaryId is silently ignored (translation proceeds without it). An administrator may assign a language system (style profile) to the account, whose glossaries and style rule set can replace the glossaryId and styleId passed here; 'appliedCustomizations' in the result says so when it happened, per target language. Every target language is translated in one call; the result holds one entry per language, and a language DeepL refused is reported in 'failures' while the others still translate. Multiple texts are supported and translated independently; within each target language, results correlate to the inputs by position. If any text is blank, the whole request is rejected.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `text` | array | Yes | One or more texts to translate. Each entry is translated independently. |
| `context` | string | No | Optional description of the text's domain to improve translation quality. Not itself translated. At most 300 characters. |
| `styleId` | string | No | Style rule set id from list-style-rule-sets. Its own custom instructions are applied with it, so do not repeat them below. |
| `formality` | string | No | Controls formality: 'less', 'more', 'default', 'prefer_less', or 'prefer_more'. Only some target languages support this. |
| `glossaryId` | string | No | Glossary id to ensure consistent terminology. |
| `sourceLang` | string | No | Source language code, e.g. 'EN' or 'DE'. Omit to let DeepL auto-detect. |
| `targetLangs` | array | Yes | One or more target language codes, e.g. ['EN-US', 'DE']. Each is translated separately. |
| `customInstructions` | string | No | Optional custom instructions to steer translation. Max 10 instructions, 300 characters each. |

### Upload-document

**Slug:** `DEEPL_MCP_UPLOAD_DOCUMENT`

Translate a whole file or document, preserving its original layout and formatting. Use this — not translate-text — whenever the user wants to translate a file or document (rather than text typed into the conversation), even if its contents are already visible to you; translate-text would strip the formatting. For plain text pasted into the conversation, use translate-text instead. Supported file extensions in this deployment: .docx, .doc, .pptx, .ppt, .xlsx, .xls, .pdf, .htm, .html, .txt, .xlf, .xliff, .srt, .png, .jpg, .jpeg. PNG and JPEG files are limited to 3 MB; limits for other formats depend on the user's plan. Always start a document translation with this call, and pass 'filename' with the file's extension. It reserves a short-lived upload session and returns 'sessionId' and 'uploadUrl'; it does not upload the file itself, and nothing is translated or billed until the file arrives. If the call had no 'filename', first call upload-document again with it. Then do exactly one of the following: 1. Upload the source file bytes: HTTP PUT the raw bytes to 'uploadUrl' with 'Content-Type: application/octet-stream'. 2. If you cannot access or transfer the file bytes, immediately call upload-document-show-fallback-widget with the returned 'sessionId'; it shows the user an upload widget where they select the file. Being unable to upload the bytes directly is an expected, recoverable condition: the next step is then to call upload-document-show-fallback-widget. Pass all target languages in one call rather than one call per language: the file is then uploaded only once. Each language is translated and billed separately once the file arrives. A language DeepL refuses is listed in 'failures' while the others still translate. An administrator may assign a language system (style profile) to the account, whose glossaries and style rule set can replace the glossaryId and styleId passed here; 'appliedCustomizations' on a target says so when it happened, per target language.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `styleId` | string | No | Style rule set id from list-style-rule-sets. Its own custom instructions are applied with it, so do not repeat them below. Requires a DeepL Pro plan. |
| `filename` | string | No | Original file name including its extension (for example, 'report.docx'). |
| `formality` | string | No | Controls formality: 'less', 'more', 'default', 'prefer_less', or 'prefer_more'. Only some target languages support this. Requires a DeepL Pro plan. |
| `glossaryId` | string | No | Id of a glossary to apply. Requires sourceLang; the glossary must have a dictionary for the source/target pair. Use list-glossaries to discover ids. Requires a DeepL Pro plan. |
| `sourceLang` | string | No | Source language code, e.g. 'EN'. Omit to let DeepL auto-detect. Required when using a glossary. |
| `uploadMode` | string | No | Reserved for compatibility with earlier clients. This value is ignored. |
| `targetLangs` | array | Yes | One or more target language codes, e.g. ['EN-US', 'DE']. The file is uploaded once and translated into each of them. Use get-target-languages to discover supported codes. |
| `customInstructions` | string | No | Free-text instructions that steer the translation (e.g. 'Use a friendly tone'). Requires a DeepL Pro plan. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `targets` | string | No |  |
| `failures` | string | No |  |
| `sessionId` | string | Yes |  |
| `uploadUrl` | string | Yes |  |
| `uploadStatus` | string | No |  |
| `expiresInMinutes` | integer | Yes |  |

### Upload-document-show-fallback-widget

**Slug:** `DEEPL_MCP_UPLOAD_DOCUMENT_SHOW_FALLBACK_WIDGET`

Second step of a document translation, for when the file bytes cannot be sent to 'uploadUrl': shows the user an upload widget for the upload session that upload-document already reserved, so they can select the file themselves. Call it with the 'sessionId' returned by upload-document right after that call, whenever you cannot access or transfer the file bytes. The widget tracks the translation and offers the download.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sessionId` | string | Yes | The sessionId returned by upload-document. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `targets` | string | No |  |
| `failures` | string | No |  |
| `sessionId` | string | Yes |  |
| `uploadUrl` | string | Yes |  |
| `uploadStatus` | string | No |  |
| `expiresInMinutes` | integer | Yes |  |
