equalang-mcp
v0.2.4Translate documents, subtitles, pictures, audio and video with layout kept; transcribe recordings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
translate_file Translate a file
Translate a whole file into another language and save the result, keeping its layout, tables, images and formulas. Documents (pdf, docx, pptx, xlsx, epub, html, txt), subtitles (srt, vtt), pictures (jpg, png, webp, bmp), and recordings (mp3, m4a, wav, flac, ogg, aac, opus, mp4, mov, webm, mkv), which come back as translated subtitles. Answers with the paths written, never the contents. COSTS THE USER'S CREDITS: say what it will cost and get their agreement first -- estimate_cost gives the number for a file.
| Parameter | Type | Description |
|---|---|---|
target_language * | string | Language to translate into. A language code such as en, zh-CN, zh-TW, ja, ko, es, fr, de. list_languages has the codes: fewer for files than for text. |
bilingual | boolean | Subtitles and recordings only: keep the original line above each translated one. |
file_id | string | A file already uploaded by estimate_cost, instead of source: starts the job without uploading again. |
output_dir | string | Directory for the results. Defaults to beside a local source. A URL source has no "beside": without this the answer carries temporary links. |
output_formats | array | Recordings only: the formats to write (default srt). |
source | string | The file: an absolute path on this machine, or a public http(s) URL (fetched by Equalang, not downloaded here). Omit when passing file_id. |
source_language | string | Language of the file; omit to detect it. |
wait_seconds | number | Seconds to wait before answering with a job_id instead (default 50, at most 240). |
transcribe_recording Transcribe a recording
Write down what is said in an audio or video file (mp3, m4a, wav, flac, ogg, aac, opus, mp4, mov, webm, mkv) as timed text, in the language spoken, and save it. For a translation of the recording use translate_file instead. Charged for the speech actually heard: silence and music are not. COSTS THE USER'S CREDITS: say what it will cost and get their agreement first -- estimate_cost gives the number for a file.
| Parameter | Type | Description |
|---|---|---|
file_id | string | A file already uploaded by estimate_cost, instead of source: starts the job without uploading again. |
output_dir | string | Directory for the results. Defaults to beside a local source. A URL source has no "beside": without this the answer carries temporary links. |
output_formats | array | The formats to write (default srt). txt is plain text without times. |
source | string | The file: an absolute path on this machine, or a public http(s) URL (fetched by Equalang, not downloaded here). Omit when passing file_id. |
source_language | string | Language spoken; omit to detect it. |
wait_seconds | number | Seconds to wait before answering with a job_id instead (default 50, at most 240). |
translate_text Translate text
Translate plain text and answer with the translation. Pass texts for separate strings -- labels, messages: each translated on its own, answered in order, at most 50 texts of 5,000 characters, 20,000 characters per call. Pass text for one long text -- an article, a chapter, up to 100,000 characters: it is cut at sentences by Equalang, so do not split it yourself. For anything that is a file, use translate_file, which keeps its formatting. Charged by length, a small amount; the answer says how much.
| Parameter | Type | Description |
|---|---|---|
target_language * | string | Language to translate into. A language code such as en, zh-CN, zh-TW, ja, ko, es, fr, de. list_languages has the codes: fewer for files than for text. |
source_language | string | Language of the text; omit to detect it. |
text | string | One whole text, paragraphs and line breaks included, instead of texts. |
texts | array | Separate strings, each translated on its own. Omit when passing text. |
estimate_cost Estimate what a file will cost
Upload a local file without starting anything, and answer with the most a job on it can cost in credits. Free. Pass the returned file_id to translate_file or transcribe_recording so the file is not uploaded twice; kept_until says how long it is held. A recording is charged for the speech actually heard, usually less than the estimate.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to the file on this machine. |
check_job Check a job
Look a job up by id and, if it has finished, save its results. Use after a tool answered before its job was done.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job_id an earlier call answered with. |
output_dir | string | Directory for the results. Defaults to beside a local source. A URL source has no "beside": without this the answer carries temporary links. |
wait_seconds | number | Seconds to keep waiting if it is still running (default 0, at most 240). |
cancel_job Cancel a job
Stop a queued or running job. A cancelled job is not charged; one that had already finished is left as it is.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The job to stop. |
get_credit_balance Check the credit balance
How many credits the account has. Credits are bought at https://equalang.com/pricing; the same balance serves the website and this server.
list_languages List the languages
The language codes Equalang takes, with their names, read from the live API. Needs no key. Use it to turn a language's name into its code.
| Parameter | Type | Description |
|---|---|---|
kind | string | file (default): the languages translate_file takes; text: the wider set translate_text takes. |
matching | string | Only languages whose name or code contains this, e.g. "chinese" or "pt". |