LibreTranslate/LibreTranslate-MCP

MCP Server for LibreTranslate. Machine Translation for AI agents.

4

stars

11

commits

TypeScript

primary language

May 17, 2026

updated

README

LibreTranslate-MCP

Build Status Version

A MCP server to connect AI agents with LibreTranslate to give them machine translation capabilities.

Usage

Add this to your client's configuration:

OpenCode

{
  "mcp": {
    "LibreTranslate": {
      "type": "local",
      "command": ["npx", "-y", "@libretranslate/mcp"],
      "environment": {
        "LIBRETRANSLATE_API_URL": "https://libretranslate.com",
        "LIBRETRANSLATE_API_KEY": "your-api-key"
      }
    }
  }
}

Claude

{
  "mcpServers": {
    "libretranslate": {
      "command": "npx",
      "args": ["-y", "@libretranslate/mcp"],
      "env": {
        "LIBRETRANSLATE_API_URL": "https://libretranslate.com",
        "LIBRETRANSLATE_API_KEY": "your-api-key"
      }
    }
  }
}

Configuration

Set the following environment variables:

VariableDescription
LIBRETRANSLATE_API_URLURL of the LibreTranslate API (default: https://libretranslate.com)
LIBRETRANSLATE_API_KEYAPI key for the LibreTranslate service (required for libretranslate.com)

Available Tools

detect

Detect the language of a given text.

translate

Translate text from one language to another.

languages

List all supported languages for translation.

License

AGPLv3

Contributors

pierotofy

11 commits

LibreTranslate/LibreTranslate-MCP

MCP Server for LibreTranslate. Machine Translation for AI agents.

4

stars

11

commits

TypeScript

primary language

May 17, 2026

updated

README

LibreTranslate-MCP

Build Status Version

A MCP server to connect AI agents with LibreTranslate to give them machine translation capabilities.

Usage

Add this to your client's configuration:

OpenCode

{
  "mcp": {
    "LibreTranslate": {
      "type": "local",
      "command": ["npx", "-y", "@libretranslate/mcp"],
      "environment": {
        "LIBRETRANSLATE_API_URL": "https://libretranslate.com",
        "LIBRETRANSLATE_API_KEY": "your-api-key"
      }
    }
  }
}

Claude

{
  "mcpServers": {
    "libretranslate": {
      "command": "npx",
      "args": ["-y", "@libretranslate/mcp"],
      "env": {
        "LIBRETRANSLATE_API_URL": "https://libretranslate.com",
        "LIBRETRANSLATE_API_KEY": "your-api-key"
      }
    }
  }
}

Configuration

Set the following environment variables:

VariableDescription
LIBRETRANSLATE_API_URLURL of the LibreTranslate API (default: https://libretranslate.com)
LIBRETRANSLATE_API_KEYAPI key for the LibreTranslate service (required for libretranslate.com)

Available Tools

detect

Detect the language of a given text.

translate

Translate text from one language to another.

languages

List all supported languages for translation.

License

AGPLv3

Contributors

pierotofy

11 commits

Languages

TypeScript

98.5%

JavaScript

1.5%