A Model Context Protocol server for Amazon Translate to provide text translation, custom terminology management, and batch translation processing
Project description
Amazon Translate MCP Server
A Model Context Protocol (MCP) server that provides AI applications with access to neural machine translation service, Amazon Translate for text translation, managed batch processing, and smart translation workflow management across 75+ languages.
Features
- Text Translation: Real-time translation with custom terminology support
- Managed Batch Processing: End to End Large-scale document translation with S3 integration , monitoring and error analysis
- Language Detection: Automatic source language identification
- Custom Terminology: Domain-specific translation consistency
- Intelligent Workflows: Automated multi-step translation processes with workflow orchestration
- Error Analysis: Comprehensive error analysis for failed jobs
Installation
Using uvx (Recommended)
uvx awslabs.amazon-translate-mcp-server@latest
Using pip
pip install awslabs.amazon-translate-mcp-server
python -m awslabs.amazon_translate_mcp_server.server
Configuration
Environment Variables
# AWS Configuration (required)
export AWS_REGION=us-east-1
export AWS_PROFILE=your-profile
# Optional Settings
export FASTMCP_LOG_LEVEL=INFO
export TRANSLATE_MAX_TEXT_LENGTH=10000
MCP Client Setup
Add to your Claude Desktop configuration:
{
"mcpServers": {
"amazon-translate": {
"command": "uvx",
"args": ["awslabs.amazon-translate-mcp-server@latest"],
"env": {
"AWS_REGION": "us-east-1",
"AWS_PROFILE": "default"
}
}
}
}
Available Tools
Translation Operations
translate_text- Translate text between languagesdetect_language- Identify source language automaticallyvalidate_translation- Quality assessment of translations
Batch Operations
start_batch_translation- Process multiple documentsget_translation_job- Monitor job statuslist_translation_jobs- View all translation jobstrigger_batch_translation- Start job without monitoringmonitor_batch_translation- Monitor until completionanalyze_batch_translation_errors- Analyze failed jobs
Terminology Management
list_terminologies- Browse custom terminology setscreate_terminology- Create domain-specific termsimport_terminology- Import from CSV/TMX filesget_terminology- Get terminology details
Language Operations
list_language_pairs- Show supported language combinationsget_language_metrics- View usage statistics
Workflow Operations
smart_translate_workflow- Automated translation with quality validationmanaged_batch_translation_workflow- Complete batch lifecycle managementlist_active_workflows- Monitor running workflowsget_workflow_status- Get workflow progress
Usage Examples
Basic Translation
# Translate text
translate_text(
text="Hello, world!",
source_language="en",
target_language="es"
)
# Returns: "¡Hola, mundo!"
# Auto-detect language
detect_language(text="Bonjour le monde")
# Returns: {"detected_language": "fr", "confidence_score": 0.99}
Batch Translation
# Start batch job
start_batch_translation(
input_s3_uri="s3://my-bucket/documents/",
output_s3_uri="s3://my-bucket/translated/",
data_access_role_arn="arn:aws:iam::123456789012:role/TranslateRole",
job_name="my-translation-job",
source_language="en",
target_languages=["es", "fr", "de"]
)
Smart Workflow
# Automated translation with quality validation
smart_translate_workflow(
text="Hello, how are you?",
target_language="es",
quality_threshold=0.8
)
AWS Permissions
Required IAM permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"translate:*",
"s3:GetObject",
"s3:PutObject",
"s3:ListBucket",
"sts:GetCallerIdentity"
],
"Resource": "*"
}
]
}
Troubleshooting
- Authentication Errors: Ensure AWS credentials are configured
- Translation Failures: Check language pair support and text length limits
- Batch Job Issues: Verify S3 permissions and IAM role configuration
- Workflow Issues: Check workflow orchestrator in health check
Development
# Clone and install
git clone https://github.com/awslabs/mcp.git
cd mcp/src/amazon-translate-mcp-server
uv venv && uv sync --all-groups
#mcp inspector
npx @modelcontextprotocol/inspector uv --directory <directory path to amazon-translate-mcp-server> run --module awslabs.amazon_translate_mcp_server.server
# Run tests
uv run --frozen pytest --cov --cov-branch --cov-report=term-missing
License
Apache License 2.0
Support
Note: Requires AWS account with Amazon Translate access. AWS charges apply.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awslabs_amazon_translate_mcp_server-1.0.1.tar.gz.
File metadata
- Download URL: awslabs_amazon_translate_mcp_server-1.0.1.tar.gz
- Upload date:
- Size: 178.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f26b9264d20d9c4d08026ae59751ffc18aa0544895fb58565bc965df3dabc095
|
|
| MD5 |
18a6b420a9cc153d2b3958a69a5ae6c7
|
|
| BLAKE2b-256 |
0740c482620aacee0fc41b2a129464ff7b0c25126e04753f42f3c379ba721c71
|
Provenance
The following attestation bundles were made for awslabs_amazon_translate_mcp_server-1.0.1.tar.gz:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_amazon_translate_mcp_server-1.0.1.tar.gz -
Subject digest:
f26b9264d20d9c4d08026ae59751ffc18aa0544895fb58565bc965df3dabc095 - Sigstore transparency entry: 1521322299
- Sigstore integration time:
-
Permalink:
awslabs/mcp@7a6b54317af1377afe8cc030f04b05c5d5a59747 -
Branch / Tag:
refs/tags/2026.05.20260512232912 - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7a6b54317af1377afe8cc030f04b05c5d5a59747 -
Trigger Event:
push
-
Statement type:
File details
Details for the file awslabs_amazon_translate_mcp_server-1.0.1-py3-none-any.whl.
File metadata
- Download URL: awslabs_amazon_translate_mcp_server-1.0.1-py3-none-any.whl
- Upload date:
- Size: 77.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce975aff8667c46ec9e6f91550c82c91943c47a2daf77598375c4ce808f27de0
|
|
| MD5 |
2d0f4c5e8480e9cb9e647dbb70671b1a
|
|
| BLAKE2b-256 |
9e32fff7512ceeab0c826d930e1382fc310aa2aa7549ed8fdc9d09a075f978d5
|
Provenance
The following attestation bundles were made for awslabs_amazon_translate_mcp_server-1.0.1-py3-none-any.whl:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_amazon_translate_mcp_server-1.0.1-py3-none-any.whl -
Subject digest:
ce975aff8667c46ec9e6f91550c82c91943c47a2daf77598375c4ce808f27de0 - Sigstore transparency entry: 1521322344
- Sigstore integration time:
-
Permalink:
awslabs/mcp@7a6b54317af1377afe8cc030f04b05c5d5a59747 -
Branch / Tag:
refs/tags/2026.05.20260512232912 - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7a6b54317af1377afe8cc030f04b05c5d5a59747 -
Trigger Event:
push
-
Statement type: