LibreTranslate AI Agent Tool Server Setup - n8n Workflow

Deploy a LibreTranslate MCP server using this powerful n8n workflow. Integrate translation, detection, and language listing capabilities directly into your n8n AI agents.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Developers building multilingual AI solutions utilizing n8n.

  • Users looking for advanced n8n workflow configurations and scalable tool architectures.

  • n8n experts needing to expose self-hosted services as AI Agent tools.

  • Automation specialists wanting to use open-source translation within a high-performance n8n automation.

Overview

This expert-level n8n workflow transforms a self-hosted LibreTranslate instance (assumed to be running at http://libretranslate.local) into a highly accessible AI Agent tool server using the Microservice Cluster Protocol (MCP). This specialized n8n template provides a unified, structured endpoint, allowing n8n AI agents to seamlessly utilize six distinct language functionalities, including text and file translation, language detection, and managing frontend settings.

By leveraging the specialized MCP n8n node, this setup eliminates the need for the AI agent to manage multiple API endpoints. Instead, the agent simply calls the appropriate tool name defined within this n8n workflow. This approach simplifies complex AI automation, enhances tool reliability, and demonstrates the immense power of integrating external services using the n8n platform.

How it Works

The entire process is initiated by the LibreTranslate MCP Server n8n trigger, which acts as the centralized webhook endpoint for incoming AI Agent requests. When an AI agent decides a translation task is required, it sends a request to this specific n8n workflow endpoint.

The core of the logic relies on six separate HTTP Request Tool n8n nodes, each configured to map directly to a LibreTranslate API endpoint (e.g., /translate, /detect). These n8n nodes are exposed as callable tools via the MCP n8n trigger.

Parameters needed for the API calls (like source text or target language) are automatically populated by the AI agent using expressions like $fromAI(). Once the HTTP Request Tool n8n node executes the call against LibreTranslate, the resulting data is immediately returned via the MCP n8n trigger back to the originating AI agent, completing the language task within the main n8n automation.

Installation Guide

This n8n workflow is designed for quick deployment. Follow these steps to set up your LibreTranslate MCP server:


  1. Import Workflow: Download the provided JSON and import this n8n workflow into your n8n instance.

  2. Authentication: No external authentication is strictly required for this specific n8n template, assuming LibreTranslate is running locally without API key requirements.

  3. Activate Workflow: Enable the n8n workflow to start the MCP server listener.

  4. Get MCP URL: Copy the webhook URL generated by the LibreTranslate MCP Server n8n trigger node.

  5. Connect AI Agent: Use the copied MCP URL when configuring the tool set for your n8n AI agent. The agent can then automatically discover and use the six available translation tools defined in this n8n node structure.

Node Details


  • LibreTranslate MCP Server (MCP Trigger n8n node):

- Function: Serves as the primary entry point (n8n trigger) for AI agent requests using the Microservice Cluster Protocol.
- Key Configuration: Sets the webhook path to libretranslate-mcp.

  • Detect Text Language (HTTP Request Tool n8n node):

- Function: Wraps the LibreTranslate /detect endpoint, allowing the AI agent to identify the language of input text.

  • List Supported Languages (HTTP Request Tool n8n node):

- Function: Queries the LibreTranslate /languages endpoint to provide a list of all supported translation languages, crucial information for the AI agent.

  • Translate Text (HTTP Request Tool n8n node):

- Function: The main translation n8n node, wrapping /translate to convert text between specified languages.

  • Translate File (HTTP Request Tool n8n node):

- Function: Handles complex operations by wrapping the /translate_file endpoint, enabling file translation tasks within the n8n workflow.

  • Retrieve Frontend Settings (HTTP Request Tool n8n node):

- Function: Fetches settings specific to the LibreTranslate frontend via the /frontend/settings endpoint.

  • Submit Translation Suggestion (HTTP Request Tool n8n node):

- Function: Allows the AI agent to submit feedback or suggestions to improve translations using the /suggest endpoint.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

Featured*