Translate
live ReferenceTranslate text, detect languages, and list supported languages via LibreTranslate
3 tools
0ms auth
free tier 50 calls/day
Tools
translate
required: text, source, target Translate text from a source language to a target language. Returns the translated text.
Parameters
Name Type Description
text req string The text to translate source req string Source language code (e.g. "en" for English, "es" for Spanish) target req string Target language code (e.g. "es" for Spanish, "fr" for French) Try it
Response
detect_language
required: text Detect the language of a text string. Returns an array of detected languages with confidence scores.
Parameters
Name Type Description
text req string The text whose language should be detected Try it
Response
list_languages List all languages supported by the translation API. Returns language codes and names.
No parameters required.
Try it
Response
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/translate/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/translate/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"translate","arguments":{"text": "hello world", "source": "en", "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","source":"example","target":"example"}); ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("translate text, detect languages, and list supported languages via libretranslate");