mcp-server-sdlxliff
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-server-sdlxliff
Chat with your SDL Trados translation files using Claude.
Review translations, find errors, and make corrections through simple natural conversation - no manual XML editing required.
Two Ways to Use
Option | Best For | Claude Access |
Professional users who want a dedicated app | API key (pay per use) | |
Claude Pro/Team subscribers | Claude subscription |
Both options use the same MCP server under the hood - choose based on how you prefer to access Claude.
Related MCP server: rosetta
What You Can Do
Just ask Claude in plain language:
"Check this file for grammar errors in the Russian translations"
"Find segments where the translation is much longer than the source"
"Fix segment 42 - change 'программа' to 'приложение'"
"Show me all segments that are still in Draft status"
"Run QA checks with my glossary"
"Save my changes"
Claude reads your SDLXLIFF files, understands the translation context, and can make corrections while preserving all formatting tags automatically.
XLIFF Chat Desktop App
A standalone macOS app with a native file picker - no command line required.
Installation
Install the MCP server globally (not in a virtual environment):
pip3 install mcp-server-sdlxliffNote: The desktop app looks for Python at
/opt/homebrew/bin/python3(Apple Silicon) or/usr/local/bin/python3(Intel Mac). Make sure to install with the samepip3that corresponds to your Homebrew Python.Download
XLIFF Chat_1.1.0_aarch64.dmgfrom ReleasesOpen the
.dmgand drag XLIFF Chat to your Applications folderLaunch XLIFF Chat and enter your Anthropic API key
Usage
Click File or Folder button to select SDLXLIFF files
The MCP server connects automatically
Start chatting - ask Claude to review, check, or edit your translations
Requirements
macOS 10.15 or later
Python 3.10+ with
mcp-server-sdlxliffinstalled globallyAnthropic API key
Claude Desktop Extension
Use with your Claude Pro or Team subscription through Claude Cowork.
Installation
Option A: Desktop Extension (Recommended)
Download
mcp-server-sdlxliff-1.1.0.mcpbfrom ReleasesOpen Claude Desktop → Settings → Extensions
Click "Install Extension" and select the downloaded
.mcpbfileThe extension installs automatically (Python and dependencies are managed for you)
Option B: Manual Installation
pip install mcp-server-sdlxliffThen add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sdlxliff": {
"command": "mcp-server-sdlxliff"
}
}
}Usage with Claude Cowork
Open Claude Cowork
Click "+ Add folder" and select a folder containing your SDLXLIFF files
The MCP tools will be available automatically
Ask Claude to review or edit translations
Compatibility
Product | Works? | Notes |
Claude Cowork | Yes | Add a folder with SDLXLIFF files and start chatting |
Claude Desktop (chat) | No | Sandbox limitation prevents file access |
Claude.ai (web) | No | No local filesystem access |
Features
Natural conversation - Ask questions and request changes in plain language
Error detection - Find grammar, spelling, consistency, and terminology issues
QA checks - Automated quality assurance with glossary support
Safe corrections - Edit translations while preserving all formatting tags
Batch review - Process large files with automatic pagination
Change tracking - Modified segments are marked as
RejectedTranslationfor easy review in Trados
Human in the Loop
Claude's corrections are suggestions, not final changes. The workflow keeps you in control:
Claude marks all modified segments as
RejectedTranslationOpen the file in SDL Trados Studio
Filter by status →
RejectedTranslationto see only Claude's changesReview each suggestion and Confirm or Edit as needed
Your approved changes become
TranslatedorApprovedTranslation
This ensures human oversight - you always have the final say on what goes into the translation.
Available Tools
read_sdlxliff
Extract translation segments from an SDLXLIFF file.
Parameters:
file_path(string, required): Path to the SDLXLIFF fileoffset(integer, optional): Starting segment index for pagination (default: 0)limit(integer, optional): Maximum segments to return (default: all). Use 50 for large files.include_tags(boolean, optional): Include tagged text fields for segments with formatting tags (default: false)
Returns: JSON object with pagination metadata and segments:
{
"total_segments": 184,
"offset": 0,
"count": 50,
"has_more": true,
"segments": [...]
}Each segment contains:
segment_id: Unique segment identifier (mrk mid)trans_unit_id: Parent trans-unit IDsource: Source text (clean, without tags)target: Target text (clean, without tags)has_tags: Whether segment contains inline formatting tagssource_tagged: Source with tag placeholders (only ifhas_tags=trueandinclude_tags=true)target_tagged: Target with tag placeholders (only ifhas_tags=trueandinclude_tags=true)status: SDL confirmation level (e.g.,Translated,RejectedTranslation)locked: Whether segment is lockedpercent: TM match percentage, e.g.,100for exact match (only present when available)origin: Match origin, e.g.,tm,document-match,auto-propagated(only present when available)text_match: Context Match indicator - valueSourceAndTargetmeans this is a CM (only present for context matches)repetitions: Number of times this source text appears in the file (only present when > 1)
get_sdlxliff_segment
Get a specific segment by its ID.
Parameters:
file_path(string, required): Path to the SDLXLIFF filesegment_id(string, required): The segment ID (mrk mid) to retrieve
update_sdlxliff_segment
Update a segment's target text. Automatically sets status to RejectedTranslation.
Parameters:
file_path(string, required): Path to the SDLXLIFF filesegment_id(string, required): The segment ID (mrk mid) to updatetarget_text(string, required): New target text. For segments with tags, include placeholders.preserve_tags(boolean, optional): Validate and restore tags from placeholders (default: true)
Note: Changes are kept in memory until save_sdlxliff is called. For segments with formatting tags (has_tags=true), you must include tag placeholders in the target text. See Tag Handling below.
validate_sdlxliff_segment
Pre-validate proposed changes to a segment before updating.
Parameters:
file_path(string, required): Path to the SDLXLIFF filesegment_id(string, required): The segment ID to validate againsttarget_text(string, required): Proposed target text with tag placeholders
Returns: Validation result with errors, warnings, and missing/extra tag information.
save_sdlxliff
Save changes to the SDLXLIFF file.
Parameters:
file_path(string, required): Path to the SDLXLIFF fileoutput_path(string, optional): Alternative output path (default: overwrites original)
get_sdlxliff_statistics
Get statistics about the translation file.
Parameters:
file_path(string, required): Path to the SDLXLIFF file
Returns: JSON object with:
total_segments: Total number of segmentsstatus_counts: Count of segments by SDL confirmation levellocked_count: Number of locked segments
qa_check_sdlxliff
Run quality assurance checks on the translation file.
Parameters:
file_path(string, required): Path to the SDLXLIFF filesegment_ids(array of strings, optional): Specific segment IDs to check. If omitted, checks all segments.checks(array of strings, optional): Specific checks to run. If omitted, runs default checks (all exceptspelling).glossary_path(string, optional): Path to glossary file for terminology check. If omitted, auto-discoversglossary.tsv,glossary.txt,terminology.tsv, orterminology.txtin the same directory as the SDLXLIFF file.dictionary_path(string, optional): Path to custom dictionary for spelling check. If omitted, auto-discoversdictionary.txt,custom_words.txt, orspelling.txtin the same directory as the SDLXLIFF file.
Available checks:
Check | Description | Default |
| Source ends with | Yes |
| Numbers in source don't match numbers in target | Yes |
| Target contains consecutive spaces | Yes |
| Leading/trailing whitespace mismatch between source and target | Yes |
| Different count of | Yes |
| Segments with same source text have different translations | Yes |
| Glossary terms from source must appear in target (requires glossary file) | Yes |
| Spellcheck target text using target language from file metadata | No (opt-in) |
Spelling check:
Must be explicitly requested:
checks: ["spelling"]orchecks: ["spelling", "numbers", ...]Uses target language from SDLXLIFF metadata (e.g.,
de-DE,ru-RU)Supported languages:
Russian, Ukrainian, English: Yandex.Speller (proper morphological dictionary)
German, Spanish, French, Italian, Portuguese, Dutch: pyspellchecker
Unsupported languages are silently skipped (no false positives for rare languages)
Glossary file format:
# Comment lines start with #
# Format: source_term<TAB>target_term
Galaxy Galaxy
Settings Настройки
Smart Switch Smart SwitchSingle terms (without tab) mean the term must appear unchanged in the target.
Custom dictionary file format (for spelling):
# Comment lines start with #
# One word per line (case-insensitive)
SDLXLIFF
Trados
MCP
ProductNameReturns: JSON object with:
{
"total_segments": 184,
"segments_checked": 184,
"segments_with_issues": 12,
"glossary_used": "/path/to/glossary.tsv",
"glossary_terms_count": 5,
"target_language": "de-DE",
"dictionary_used": "/path/to/dictionary.txt",
"custom_words_count": 10,
"issues": [
{
"segment_id": "42",
"check": "spelling",
"severity": "warning",
"message": "Possible misspelling: 'korrektr' (suggestions: korrektor, korrekter, korrekt)",
"source_excerpt": "",
"target_excerpt": "Das ist ein korrektr Satz..."
}
],
"summary": {
"trailing_punctuation": 5,
"numbers": 3,
"spelling": 2
}
}If spelling is requested but the language is unsupported:
{
"spelling_skipped": "Language 'ja-JP' not supported for spelling check"
}SDLXLIFF Format
SDLXLIFF is SDL's extension of the XLIFF 1.2 standard, used by SDL Trados Studio. Key characteristics:
Each
<mrk mtype="seg">element is a separate translatable segmentSegment IDs are the
midattribute values (globally unique numbers)Status is stored in
<sdl:seg conf="...">(not the XLIFFstateattribute)Valid SDL confirmation levels:
Draft,Translated,RejectedTranslation,ApprovedTranslation,RejectedSignOff,ApprovedSignOff
Tag Handling
SDLXLIFF files often contain inline formatting tags (<g>, <x>, <bpt>, <ept>, etc.) that control bold, italic, colors, line breaks, and other formatting in the final document. These tags must be preserved during translation updates or the formatting will be lost.
How It Works
The MCP server converts XML tags to readable placeholders:
XML Tag | Placeholder | Description |
|
| Paired formatting tag |
|
| Self-closing tag (e.g., line break) |
|
| Begin paired tag |
|
| End paired tag |
Example
Original XML:
<mrk mid="3"><g id="5">Acme</g><g id="6">&</g><g id="7"> Events</g></mrk>Extracted as:
{
"source": "Acme& Events",
"source_tagged": "{5}Acme{/5}{6}&{/6}{7} Events{/7}",
"has_tags": true
}To update this segment, you must include all tags:
{5}Acme{/5}{6}&{/6}{7} Мероприятия{/7}Validation Rules
When updating segments with tags:
All original tags must be present - Missing tags will cause the update to be rejected
No extra tags allowed - Only tags from the original segment can be used
Tags must be properly paired - Opening
{5}must have matching{/5}Tag order can change - Word order differences between languages are allowed (with a warning)
Workflow for Tagged Segments
Read segments with
read_sdlxliff- checkhas_tagsfieldFor segments with
has_tags=true, useget_sdlxliff_segmentto get thesource_tagged/target_taggedfieldsInclude all placeholders when calling
update_sdlxliff_segmentIf validation fails, the error message shows which tags are missing
Claude Desktop Chat Limitation
Claude Desktop Chat runs Claude in a gVisor sandboxed container for security. When you attach files via "+ Add files", they are uploaded to /mnt/user-data/uploads/ inside this container.
The problem: MCP servers run on your host machine, not inside the container. They cannot access the sandboxed filesystem where attached files are stored.
┌─────────────────────────────────────────┐
│ gVisor Container │
│ ┌─────────────────────────────────┐ │
│ │ /mnt/user-data/uploads/ │ │
│ │ └── your_file.sdlxliff │ ←── File uploaded here
│ └─────────────────────────────────┘ │
│ Claude │
└─────────────────────────────────────────┘
╳ No access ╳
┌─────────────────────────────────────────┐
│ Host Machine │
│ ┌─────────────────────────────────┐ │
│ │ MCP Server (sdlxliff) │ ←── Cannot read container filesystem
│ └─────────────────────────────────┘ │
└─────────────────────────────────────────┘Workaround: Use Claude Cowork or XLIFF Chat instead, which have direct access to your local files.
Development
# Clone the repository
git clone https://github.com/EugeneAnt/mcp-server-sdlxliff.git
cd mcp-server-sdlxliff
# Install with dev dependencies
uv pip install -e ".[dev]"
# Run tests
pytestBuilding the Desktop Extension
To create a .mcpb bundle for distribution:
# Install the MCPB CLI
npm install -g @anthropic-ai/mcpb
# Validate the manifest
mcpb validate manifest.json
# Create the bundle
mcpb pack .This creates mcp-server-sdlxliff-X.X.X.mcpb ready for installation in Claude Desktop.
Building the Desktop App
cd desktop
# Install dependencies
bun install
# Build for macOS
bun run tauri buildThis creates XLIFF Chat.dmg in desktop/src-tauri/target/release/bundle/dmg/.
Acknowledgments
Spelling check for Russian, Ukrainian, and English: Yandex.Speller
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Translation QA: checks a translation against its source. It checks; it does not translate.
Translation QA: automated checks, AI evaluation, linguistic review, and visual in-context testing.
Let Claude read and edit your KudoNovel novels: chapters, beats, story bible and book summary.
Manage product translations from Claude and ship reviewed changes as GitHub pull requests.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables processing and translating SRT subtitle files with intelligent conversation detection and context preservation. Supports parsing, validation, chunking of large files, and translation while maintaining precise timing and HTML formatting.6MIT
- AlicenseAqualityDmaintenanceEnables translation of Excel files using Claude AI while preserving formatting, formulas, and data integrity.650 npm2MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other LLM clients to read and write Microsoft Project files directly, covering tasks, resources, assignments, dependencies, and critical path information without needing Microsoft Project open.MIT
- FlicenseNot gradedqualityAmaintenanceEnables Claude to read, edit, and generate real Final Cut Pro timelines from Final Cut Pro XML, including cut detection, markers, roles, silence removal, transcript-based editing, keyframes, speed curves, and live pushes into Final Cut Pro with journaled undoable writes and validation.-