translate_translate
Pack: translate · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/translate_translate for the schema, then POST the same URL with its arguments for the data.
Translate text between languages using a LibreTranslate instance you supply — pass _apiKey for libretranslate.com or _endpoint for a self-hosted server. For translation with no key of your own, call mymemory_translate instead.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | yes | The text to translate |
source | string | yes | Source language code (e.g. “en” for English, “es” for Spanish) |
target | string | yes | Target language code (e.g. “es” for Spanish, “fr” for French) |
Example call
Arguments
{
"text": "Hello, how are you?",
"source": "en",
"target": "es"
}
curl
curl -X POST https://gateway.pipeworx.io/translate/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"translate_translate","arguments":{"text":"Hello, how are you?","source":"en","target":"es"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('translate_translate', {
"text": "Hello, how are you?",
"source": "en",
"target": "es"
});
More examples
{
"text": "Bonjour, comment allez-vous?",
"source": "fr",
"target": "de"
}
Response shape
Always returns: source, target, original_text, translated_text
| Field | Type | Description |
|---|---|---|
source | string | Source language code |
target | string | Target language code |
original_text | string | The original text that was translated |
translated_text | string | The translated text result |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string",
"description": "Source language code"
},
"target": {
"type": "string",
"description": "Target language code"
},
"original_text": {
"type": "string",
"description": "The original text that was translated"
},
"translated_text": {
"type": "string",
"description": "The translated text result"
}
},
"required": [
"source",
"target",
"original_text",
"translated_text"
]
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the translate pack
{
"mcpServers": {
"translate": {
"url": "https://gateway.pipeworx.io/translate/mcp"
}
}
}
See Getting Started for client-specific install steps.