Translate
liveReferenceTranslate text, detect languages, and list supported languages via LibreTranslate
3tools
0msauth
free tier50 calls/day
Tools
translaterequired: text, source, targetTranslate text from a source language to a target language. Returns the translated text.
Parameters
NameTypeDescription
textreqstringThe text to translatesourcereqstringSource language code (e.g. "en" for English, "es" for Spanish)targetreqstringTarget language code (e.g. "es" for Spanish, "fr" for French)Try it
Response
detect_languagerequired: textDetect the language of a text string. Returns an array of detected languages with confidence scores.
Parameters
NameTypeDescription
textreqstringThe text whose language should be detectedTry it
Response
list_languagesList 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");