home / mcp / textra japanese to english translator mcp server

Textra Japanese to English Translator MCP Server

Provides an MCP server that translates Japanese text into English using Textra to support LLMs with limited Japanese understanding.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "hokupod-textra-ja-to-en-mcp": {
      "command": "fastmcp",
      "args": [
        "dev",
        "server.py"
      ],
      "env": {
        "TEXTRA_API_KEY": "YOUR_API_KEY",
        "TEXTRA_TOKEN_URL": "https://auth.textra.example/token",
        "TEXTRA_USER_NAME": "YOUR_USERNAME",
        "TEXTRA_API_SECRET": "YOUR_API_SECRET",
        "TEXTRA_JA_EN_API_URL": "https://api.textra-ja-en.example"
      }
    }
  }
}

You run a dedicated MCP server that translates Japanese input into English using the Textra translation API. This enables LLMs that have limited Japanese understanding to receive English requests, improving comprehension and response quality when you work with multilingual prompts.

How to use

When you connect an MCP client to this server, any input you send in Japanese is translated to English before it reaches the language model. The tool is designed to be used transparently, so you can write prompts in Japanese and rely on the translation to preserve intent across languages. If your client supports MCP server discovery, look for the tool named “Japanese to English Translator” and select it before sending your request.

How to install

# Prerequisites
# - Python and a virtual environment
# - Internet access for dependencies

# 1. Clone the project
git clone <repository_url>
cd <repository_directory>

# 2. Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# 3. Install runtime dependencies
pip install .

# Optional: install development/testing dependencies
pip install '.[dev]'

# 4. Set environment variables with Textra credentials
export TEXTRA_API_KEY="your_api_key"
export TEXTRA_API_SECRET="your_api_secret"
export TEXTRA_USER_NAME="your_username"

# Optional endpoints
# export TEXTRA_JA_EN_API_URL="https://api.textra.example/ja-en"
# export TEXTRA_TOKEN_URL="https://oauth.textra.example/token"

# 5. Run the server locally (examples)
# Development server with auto-reload
fastmcp dev server.py

# Quick-run via temporary environment
uvx python server.py

Additional sections

Security and configuration notes: store API credentials in your shell environment rather than in a local .env file to ensure they remain available when MCP clients connect. If you need to override the translation endpoint, set TEXTRA_JA_EN_API_URL. If your Textra setup uses a separate OAuth token endpoint, set TEXTRA_TOKEN_URL.

Available tools

translate

Translates input from Japanese to English using the Textra API so that prompts reach the LLM in English with preserved intent.