Skip to main content

MCP Server for Alibaba Cloud Qwen-MT machine translation

Project description

qwen-mt-mcp

MCP Server for Alibaba Cloud Qwen-MT machine translation. Supports 92 languages, glossary terms, translation memory, and domain hints.

Installation

pip install qwen-mt-mcp

Or with uv:

uv pip install qwen-mt-mcp

Configuration

Environment Variable Required Default Description
DASHSCOPE_API_KEY Yes Alibaba Cloud DashScope API Key
QWEN_MT_REGION No beijing API region: beijing or singapore
QWEN_MT_DEFAULT_MODEL No qwen-mt-plus Default model: qwen-mt-plus / qwen-mt-flash / qwen-mt-lite

MCP Client Setup

Claude Desktop / Cursor

Add to your MCP config:

{
  "mcpServers": {
    "qwen-mt": {
      "command": "uvx",
      "args": ["qwen-mt-mcp"],
      "env": {
        "DASHSCOPE_API_KEY": "sk-your-key"
      }
    }
  }
}

Or if installed locally:

{
  "mcpServers": {
    "qwen-mt": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/MT-mcp", "qwen-mt-mcp"],
      "env": {
        "DASHSCOPE_API_KEY": "sk-your-key"
      }
    }
  }
}

Tools

translate

Translate text between languages.

Parameters:

Parameter Type Required Description
text string Yes Text to translate (max 8192 tokens)
target_lang string Yes Target language name, e.g. "English", "Chinese"
source_lang string No Source language, default "auto" for auto-detection
model string No qwen-mt-plus (best quality), qwen-mt-flash (balanced), qwen-mt-lite (fastest)
terms array No Glossary: [{"source": "term", "target": "translation"}]
tm_list array No Translation memory: [{"source": "src sentence", "target": "tgt sentence"}]
domains string No Domain hint in English, e.g. "IT", "legal", "medical"

get_supported_languages

List supported languages for a given model.

Parameter Type Required Description
model string No Model to query (default from config)

Models

Model Quality Speed Languages Streaming
qwen-mt-plus Highest Slower 92 No
qwen-mt-flash Balanced Medium 92 Yes
qwen-mt-lite Basic Fastest 31 Yes

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qwen_mt_mcp-0.1.0.tar.gz (65.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qwen_mt_mcp-0.1.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file qwen_mt_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: qwen_mt_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 65.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for qwen_mt_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0fc5780c5e735d4405234c768b59814a4e8b692ab4ed91dc22ede5682500a312
MD5 954b97b49ff8bd8f023d19623aad2104
BLAKE2b-256 559ada3d94c966b7713b1b5c59c6012f520599649a34e8a18e86b0b43277c6c4

See more details on using hashes here.

File details

Details for the file qwen_mt_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for qwen_mt_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b46205b8ea262743d5e64e4f0973d6960f79e9781761d9c19e5a3da38e1978d
MD5 ee111d29ba7a9fe085bb3a5ec78204f7
BLAKE2b-256 ffeb2dfe3f219ceb294d42a509609a6c53792745f3ecadbf2559adea74c920c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page