libretranslate_translate

Pack: libretranslate · 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/libretranslate_translate for the schema, then POST the same URL with its arguments for the data.

Translate text. Source can be “auto” to auto-detect. Returns translated text and the detected source (if applicable).

Parameters

NameTypeRequiredDescription
textstringyesText to translate
sourcestringnoSource language code or “auto” (default “auto”)
targetstringyesTarget language code (e.g., “es”, “fr”, “ja”)
formatstringnotext (default) | html

Example call

Arguments

{
  "text": "Hello, how are you?",
  "target": "es"
}

curl

curl -X POST https://gateway.pipeworx.io/libretranslate/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"libretranslate_translate","arguments":{"text":"Hello, how are you?","target":"es"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('libretranslate_translate', {
  "text": "Hello, how are you?",
  "target": "es"
});

More examples

{
  "text": "<p>Welcome to our website</p>",
  "target": "fr",
  "source": "en",
  "format": "html"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Original text that was translated"
        },
        "source": {
          "type": "string",
          "description": "Source language code or 'auto'"
        },
        "target": {
          "type": "string",
          "description": "Target language code"
        },
        "format": {
          "type": "string",
          "description": "Format type (text or html)"
        },
        "translated_text": {
          "type": [
            "string",
            "null"
          ],
          "description": "Translated text or null if unavailable"
        },
        "detected_source": {
          "type": [
            "string",
            "null"
          ],
          "description": "Auto-detected source language code or null"
        },
        "detected_confidence": {
          "type": [
            "number",
            "null"
          ],
          "description": "Confidence score for detected language or null"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "Present and true on an answer; a miss is the found:false branch."
        }
      },
      "required": [
        "text",
        "source",
        "target",
        "format",
        "translated_text",
        "detected_source",
        "detected_confidence"
      ]
    },
    {
      "type": "object",
      "description": "A miss or an unavailable upstream: found:false with a reason and a hint (the shape check-found-false-schemas.mjs expects).",
      "properties": {
        "found": {
          "type": "boolean",
          "enum": [
            false
          ]
        }
      },
      "required": [
        "found"
      ]
    }
  ]
}

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 libretranslate pack
{
  "mcpServers": {
    "libretranslate": {
      "url": "https://gateway.pipeworx.io/libretranslate/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 15, 2026