MCP Translation Text Server

Provides text translation via Niutrans API with a local MCP stdio provider and language catalog access.
  • other

1

GitHub Stars

other

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "tianfn-mcp-translation-text": {
      "command": "uv",
      "args": [
        "tool",
        "run",
        "mcp-translation-text"
      ],
      "env": {
        "NIUTRANS_API_KEY": "${env.NIUTRANS_API_KEY}"
      }
    }
  }
}

You can run a local MCP server that exposes translation capabilities powered by Niutrans via a lightweight stdio provider. This makes it easy to translate text and discover supported languages from clients like Cursor/mcp-cli, while keeping your API key securely configured on startup.

How to use

Set up the MCP server and connect your client to the translation provider. You will provide your Niutrans API key as an environment variable, run the local provider, and then invoke translation and language catalog endpoints through your MCP client.

How to install

Prerequisites you need before installation are Python and the uv tool. You also need access to the Niutrans API key.

  1. Install the uv tool. If you have Python, you can install uv with a typical package manager method once Python and pip are available.

  2. Install the translation provider package via uv.

  3. Prepare your Niutrans API key and set it as an environment variable NIUTRANS_API_KEY.

0pt 1 P2

Additional notes

The translation provider exposes a tool named translate_text and a language catalog resource to help you map languages to codes before translating.

Available tools

translate_text

Translates the given text from a source language to a target language. Requires input text, source language code/alias, and target language code/alias.

language_catalog

Provides all available languages and aliases (language://catalog) to map codes to user-friendly names before translation.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
MCP Translation Text Server MCP Server - tianfn/mcp-translation-text | VeilStrat