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

libretranslate_translate

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

No parameters required.

▶Try it
libretranslate_detect_language

Detect the source language of a piece of text. Returns ranked language candidates with confidence.

No parameters required.

▶Try it
libretranslate_list_languages

List languages supported by the configured LibreTranslate 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":"libretranslate_translate","arguments":{}}}'

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("libretranslate_translate", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("libretranslate open-source ml translation api — text translation, language detection, supported languages");