Skip to main content

MCP Translator Server

This project provides an MCP (Model Context Protocol) server designed to facilitate the translation of long-form text documents.

Features

  • Accepts paths to multiple text files for concurrent translation jobs.
  • Splits each text file into manageable chunks.
  • Stores chunks and their translation status in a SQLite database (translation_progress.db), keeping track of which file each chunk belongs to.
  • Provides tools to:
    • Initialize or restart the translation process for a specific file (start_translation file_path=...). Clears previous progress for that file if it existed.
    • List all ongoing translation jobs and their progress (list_jobs).
    • Fetch the next untranslated chunk for a specific file (get_next_chunk file_path=...).
    • Submit the translation for a specific chunk ID (submit_translation chunk_id=... translated_text=...).

Setup

  1. Install dependencies:

    pip install .
    # Or pip install -e . for development mode
    
  2. Download the spaCy model:

    python -m spacy download xx_sent_ud_sm
    

Running the Server

mcp-translator

This will start the MCP server, listening for client connections. The database file (translation_progress.db) will be created in the same directory as server.py.

Usage

Connect an MCP client (like a compatible AI assistant or script) to the running server. The client can then use the available tools, making sure to specify the file_path where required (start_translation, get_next_chunk), to manage the translation workflow for different files.

Metadata

Release files for mcp-translator 0.1.6

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

Source distribution (sdist)

Source distribution for mcp-translator 0.1.6
File Size Uploaded
mcp_translator-0.1.6.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-translator 0.1.6
File Interpreter ABI Platform
mcp_translator-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 29.8 kB

Release files / mcp_translator-0.1.6.tar.gz

Download URL mcp_translator-0.1.6.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
621d4f6915a55b6d5fcd723da3fe9f13216e7d2a1db0ef128315ff9a7897e2e1
BLAKE2b-256 checksum
How to use checksums
838cdad59dd228d87133c5d949e4377ae5bfdcb69bffe749a2b6e1b9161ab42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / mcp_translator-0.1.6-py3-none-any.whl

Download URL mcp_translator-0.1.6-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44cf61e789301ba489f1892af69bd3c5e9a37f7f530a4947b6ebe4a76605a15a
BLAKE2b-256 checksum
How to use checksums
a6e2e7ec6b9938113f246b2bef4b17662fa9b57e7f31b1f0e5c450a7487f07ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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