loading…
Search for a command to run...
loading…
An MCP server for processing XLIFF and TMX translation files, enabling parsing, validation, and manipulation of translation units in localization workflows.
An MCP server for processing XLIFF and TMX translation files, enabling parsing, validation, and manipulation of translation units in localization workflows.
An MCP (Model Context Protocol) server for processing XLIFF and TMX translation files. This server provides tools for parsing, validating, and manipulating translation files commonly used in localization workflows.
skills/ module that AI agents can read directlypython setup.py
pip install -e .
./install.sh # Unix/Linux/macOS
install.bat # Windows
Add the server to your Claude Desktop configuration file:
macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %AppData%\Claude\claude_desktop_config.json
{
"mcpServers": {
"xliff-processor": {
"command": "python",
"args": ["-m", "xliff_mcp.server"],
"cwd": "/absolute/path/to/xliff-mcp-server"
}
}
}
Or if using uv:
{
"mcpServers": {
"xliff-processor": {
"command": "uv",
"args": ["run", "python", "-m", "xliff_mcp.server"],
"cwd": "/absolute/path/to/xliff-mcp-server"
}
}
}
Process XLIFF content and extract translation units.
Parameters:
file_name (string): Name of the XLIFF filecontent (string): XLIFF file contentReturns: JSON with translation units including:
Process XLIFF preserving inline tags for AI translation.
Parameters:
file_name (string): Name of the XLIFF filecontent (string): XLIFF file contentReturns: JSON with translation units preserving original formatting tags
Validate XLIFF content format.
Parameters:
content (string): XLIFF file content to validateReturns: JSON with validation status, message, and unit count
Replace target translations in XLIFF file.
Parameters:
content (string): Original XLIFF file contenttranslations (string): JSON array of translations with segNumber/unitId and aiResult/mtResultReturns: JSON with updated XLIFF content and replacement count
Process TMX content and extract translation units.
Parameters:
file_name (string): Name of the TMX filecontent (string): TMX file contentReturns: JSON with translation units including metadata
Validate TMX content format.
Parameters:
content (string): TMX file content to validateReturns: JSON with validation status and unit count
Generate CSV or JSON file content from an XLIFF file.
Parameters:
file_name (string): Name of the source XLIFF filecontent (string): XLIFF file contentoutput_format (string): csv or jsonpreserve_tags (boolean): Whether to preserve inline tags before exportReturns: JSON with generated file_name, mime_type, content, and unit_count
Generate CSV or JSON file content from a TMX file.
Parameters:
file_name (string): Name of the source TMX filecontent (string): TMX file contentoutput_format (string): csv or jsonReturns: JSON with generated file_name, mime_type, content, and unit_count
Skills are separate from the MCP runtime and its tools.
xliff_mcp/ package that exposes tools, prompts, and resourcesskills/ directory that AI agents can read directlyxliff_mcp/workflows/ package that maps workflow guidance into MCP prompts/resourcesThe runtime still exposes workflow guidance through:
skills://catalog and per-skill detail resources at skills://{skill_name}For agent usage inside the repository:
Validate XLIFF content, extract translation units, and summarize translation readiness.
Extract tag-preserving XLIFF segments and guide AI translation without breaking inline markup.
Merge translated segment JSON back into the original XLIFF and verify the replacement count.
Validate TMX content, inspect language pairs, and summarize translation memory entries for reuse.
Once configured in Claude Desktop, you can use the tools like this:
Process an XLIFF file: "Please process this XLIFF file and show me the translation units"
Validate XLIFF format: "Can you validate if this XLIFF content is properly formatted?"
Replace translations: "Replace the target translations in this XLIFF file with these new translations"
Process TMX file: "Extract all translation units from this TMX file"
Generate a CSV export: "Export this XLIFF file as CSV and give me the file content"
Generate a JSON export: "Export this TMX file as JSON so I can save it locally"
Use a runtime workflow prompt:
"Use the translate_xliff_with_tags prompt to help me translate this XLIFF safely"
ruff check .
python -m pytest
python test_server.py
python -m xliff_mcp.server
MIT
For issues and questions, please open an issue on the GitHub repository.
Выполни в терминале:
claude mcp add xliff-processor -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development