equalang-mcp

v0.2.4
io.github.equalang-ai/equalang-mcp Checked 23 hours ago Published 2 months ago

Translate 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.

ParameterTypeDescription
target_language *stringLanguage 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.
bilingualbooleanSubtitles and recordings only: keep the original line above each translated one.
file_idstringA file already uploaded by estimate_cost, instead of source: starts the job without uploading again.
output_dirstringDirectory for the results. Defaults to beside a local source. A URL source has no "beside": without this the answer carries temporary links.
output_formatsarrayRecordings only: the formats to write (default srt).
sourcestringThe 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_languagestringLanguage of the file; omit to detect it.
wait_secondsnumberSeconds 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.

ParameterTypeDescription
file_idstringA file already uploaded by estimate_cost, instead of source: starts the job without uploading again.
output_dirstringDirectory for the results. Defaults to beside a local source. A URL source has no "beside": without this the answer carries temporary links.
output_formatsarrayThe formats to write (default srt). txt is plain text without times.
sourcestringThe 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_languagestringLanguage spoken; omit to detect it.
wait_secondsnumberSeconds 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.

ParameterTypeDescription
target_language *stringLanguage 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_languagestringLanguage of the text; omit to detect it.
textstringOne whole text, paragraphs and line breaks included, instead of texts.
textsarraySeparate 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.

ParameterTypeDescription
path *stringAbsolute 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.

ParameterTypeDescription
job_id *stringThe job_id an earlier call answered with.
output_dirstringDirectory for the results. Defaults to beside a local source. A URL source has no "beside": without this the answer carries temporary links.
wait_secondsnumberSeconds 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.

ParameterTypeDescription
job_id *stringThe 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.

ParameterTypeDescription
kindstringfile (default): the languages translate_file takes; text: the wider set translate_text takes.
matchingstringOnly languages whose name or code contains this, e.g. "chinese" or "pt".