Skip to main content

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

Metadata

Release files for qwen-mt-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qwen-mt-mcp 0.1.0
File Size Uploaded Provenance Actions
qwen_mt_mcp-0.1.0.tar.gz 65.7 kB Without provenance Details for qwen_mt_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qwen-mt-mcp 0.1.0
File Interpreter ABI Platform Actions
qwen_mt_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for qwen_mt_mcp-0.1.0-py3-none-any.whl

Total release size: 78.0 kB

Release files / qwen_mt_mcp-0.1.0.tar.gz

Download URL qwen_mt_mcp-0.1.0.tar.gz
Size 65.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0fc5780c5e735d4405234c768b59814a4e8b692ab4ed91dc22ede5682500a312
BLAKE2b-256 checksum
How to use checksums
559ada3d94c966b7713b1b5c59c6012f520599649a34e8a18e86b0b43277c6c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / qwen_mt_mcp-0.1.0-py3-none-any.whl

Download URL qwen_mt_mcp-0.1.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b46205b8ea262743d5e64e4f0973d6960f79e9781761d9c19e5a3da38e1978d
BLAKE2b-256 checksum
How to use checksums
ffeb2dfe3f219ceb294d42a509609a6c53792745f3ecadbf2559adea74c920c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Security for qwen-mt-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page