LibreTranslate

liveAI/MLReference

LibreTranslate open-source ML translation API — text translation, language detection, supported languages. Self-hosted or compatible instance.

3tools
0msauth
free tier50 calls/day
🔑Authentication

Free public LibreTranslate instances have largely shut down. You must supply your own: self-hosted, libretranslate.com (paid), or a community instance. The pack accepts an endpoint URL + optional API key.

Config with credentials
{
  "mcpServers": {
    "pipeworx-libretranslate": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://gateway.pipeworx.io/libretranslate/mcp?_endpoint=https%3A%2F%2Fyour-instance%2F&_apiKey=optional"
      ]
    }
  }
}

Tools

translaterequired: text, target

Translate text. Source can be "auto".

Parameters
NameTypeDescription
textreqstringText to translate
sourceoptstringSource code or "auto"
targetreqstringTarget language code
formatoptstringtext | html
Try it
detect_languagerequired: text

Detect source language.

Parameters
NameTypeDescription
textreqstringText to analyze
Try it
list_languages

Supported languages on the configured instance.

No parameters required.

Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/libretranslate/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/libretranslate/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"translate","arguments":{"text": "hello world", "target": "en"}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("translate", {"text":"example","target":"example"});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("libretranslate open-source ml translation api — text translation, language detection, supported languages");