Skip to main content

Function: buildLibreTranslateMcpServer()

buildLibreTranslateMcpServer(client): McpServer

Defined in: src/mcp/build.ts:27

An MCP server exposing a LibreTranslate instance, with no transport attached.

Curated tools translate text and files, detect languages, list them, send suggestions and report the instance's status; libretranslate_resources / libretranslate_describe / libretranslate_call reach the raw API. Connect it to any transport — startLibreTranslateMcpServer serves it over HTTP, serveLibreTranslateMcpStdio over stdio.

Parameters​

client​

LibreTranslateClient

Returns​

McpServer