translate
Pack: deepl · Endpoint: https://gateway.pipeworx.io/deepl/mcp
Translate one or more text strings using DeepL. Requires text (string or array) and target_lang (e.g. “DE”, “FR”, “JA”). Optionally specify source_lang, formality (more/less/prefer_more/prefer_less), tag_handling (html/xml), and glossary_id. Returns detected source language and translated text.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | unknown | yes | String or array of strings. |
target_lang | string | yes | |
source_lang | string | no | |
split_sentences | string | no | |
preserve_formatting | boolean | no | |
formality | string | no | |
glossary_id | string | no | |
tag_handling | string | no | |
outline_detection | boolean | no | |
non_splitting_tags | string | no | |
splitting_tags | string | no | |
ignore_tags | string | no |
Example call
Arguments
{
"text": "Hello, how are you?",
"target_lang": "DE"
}
curl
curl -X POST https://gateway.pipeworx.io/deepl/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"translate","arguments":{"text":"Hello, how are you?","target_lang":"DE"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('translate', {
"text": "Hello, how are you?",
"target_lang": "DE"
});
More examples
{
"text": [
"Good morning",
"Good evening"
],
"target_lang": "FR",
"source_lang": "EN",
"formality": "formal"
}
Response shape
Always returns: translations
| Field | Type | Description |
|---|---|---|
translations | array | Array of translated text results |
Full JSON Schema
{
"type": "object",
"properties": {
"translations": {
"type": "array",
"description": "Array of translated text results",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Translated text"
},
"detected_source_language": {
"type": "string",
"description": "Detected source language code"
}
},
"required": [
"text"
]
}
}
},
"required": [
"translations"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"deepl": {
"url": "https://gateway.pipeworx.io/deepl/mcp"
}
}
}
See Getting Started for client-specific install steps.