Labsco
zhuermu logo

PowerPoint Translator

โ˜… 2

from zhuermu

Translate PowerPoint files using AWS Bedrock. Requires AWS credentials to be configured.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

PowerPoint Translator MCP Service

A Model Context Protocol (MCP) service that provides PowerPoint translation capabilities using AWS Bedrock models.

Features

  • Translate PowerPoint presentations to multiple languages
  • Preserve formatting during translation
  • Support for AWS Bedrock Nova models
  • Intelligent handling of proper nouns, brand names, and special content
  • Full MCP protocol compliance with proper initialization and tool handling
  • Fallback implementation when MCP library is not available

Supported Languages

  • Simplified Chinese (zh-CN)
  • Traditional Chinese (zh-TW)
  • English (en)
  • Japanese (ja)
  • Korean (ko)
  • French (fr)
  • German (de)
  • Spanish (es)

Available Tools

  1. translate_ppt - Translate a PowerPoint document

    • input_file: Path to the input PowerPoint file (required)
    • target_language: Target language code (default: zh-CN)
    • output_file: Path to save the translated file (optional)
    • translation_method: Translation method, 'nova' or 'claude' (default: nova)
  2. list_supported_languages - List all supported target languages

Command Line Arguments

  • --mcp: Run in MCP mode
  • --translate: Translate a PowerPoint file
  • --input-file: Path to the input PowerPoint file
  • --target-language: Target language code
  • --output-file: Path to save the translated file
  • --model-id: Translation model ID (choices: 'amazon.nova-micro-v1:0', 'amazon.nova-lite-v1:0')
  • --list-languages: List supported languages
  • --install-deps: Install required dependencies
  • --use-uv: Use uv package manager instead of pip
  • --venv: Create and use a virtual environment with uv
  • --venv-path: Path for the virtual environment (default: ./venv)

Testing

Test the MCP server functionality:

Copy & paste โ€” that's it
python test_mcp.py

Development

Local Development

  1. Clone and setup:

    Copy & paste โ€” that's it
    git clone https://github.com/yourusername/mcpppttranslator.git
    cd mcpppttranslator
    python server.py --install-deps --use-uv --venv
  2. Test the server:

    Copy & paste โ€” that's it
    python test_mcp.py

MCP Protocol Compliance

This server implements the full MCP protocol specification including:

  • Proper initialize method handling
  • Standard tools/list and tools/call methods
  • Correct JSON-RPC 2.0 response formatting
  • Error handling and graceful degradation
  • Backward compatibility with legacy MCP methods

License

MIT