MCP server for the Tolgee localization platform API
Project description
tolgee-mcp
An MCP server that wraps the Tolgee localization platform API, enabling LLMs to manage translation projects, keys, translations, languages, and related workflows.
Setup
Prerequisites
- Python 3.11+
- uv
- A Tolgee API key (from your Tolgee instance or Tolgee Cloud)
Installation
git clone https://github.com/ytarfa/tolgee-mcp.git
cd tolgee-mcp
uv sync
Configuration
Set the following environment variables:
| Variable | Required | Default | Description |
|---|---|---|---|
TOLGEE_API_KEY |
Yes | — | Your Tolgee API key |
TOLGEE_API_URL |
No | https://app.tolgee.io |
Base URL of your Tolgee instance |
Usage with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"tolgee": {
"command": "uv",
"args": ["run", "--directory", "/path/to/tolgee-mcp", "tolgee-mcp"],
"env": {
"TOLGEE_API_KEY": "your-api-key"
}
}
}
}
Running directly
TOLGEE_API_KEY=your-api-key uv run tolgee-mcp
The server uses STDIO transport.
Tools
Projects
| Tool | Description |
|---|---|
list_projects |
List all projects accessible to the authenticated user |
get_project |
Get details of a specific project |
create_project |
Create a new project |
update_project |
Update a project's settings |
delete_project |
Delete a project (irreversible) |
Languages
| Tool | Description |
|---|---|
list_languages |
List all languages in a project |
create_language |
Add a new language to a project |
update_language |
Update a language's properties |
delete_language |
Delete a language and all its translations |
Keys
| Tool | Description |
|---|---|
list_keys |
List localization keys with pagination |
search_keys |
Search keys by name |
create_key |
Create a new key with optional translations and namespace |
update_key |
Update a key's name |
delete_keys |
Delete one or more keys |
import_keys |
Batch import keys with translations |
Translations
| Tool | Description |
|---|---|
get_translations |
Get translations with language and pagination filters |
set_translations |
Set translation values for an existing key |
create_or_update_translations |
Create a key if needed and set its translations |
set_translation_state |
Set the state of a translation (e.g. reviewed, translated) |
get_translation_history |
Get modification history of a translation |
Export / Import
| Tool | Description |
|---|---|
export_translations |
Export translations (JSON, XLIFF, etc.) |
import_translations |
Single-step import of translations |
Tags & Namespaces
| Tool | Description |
|---|---|
list_tags |
List all tags in a project |
tag_key |
Add a tag to a key |
remove_tag_from_key |
Remove a tag from a key |
list_namespaces |
List all used namespaces |
update_namespace |
Rename a namespace |
Project Structure
src/tolgee_mcp/
__init__.py
__main__.py # Entry point
server.py # FastMCP instance and tool registration
client.py # Async HTTP client for the Tolgee API
tools/
projects.py # Project management tools
languages.py # Language management tools
keys.py # Key management tools
translations.py # Translation tools
export_import.py # Export and import tools
tags.py # Tag and namespace tools
License
MIT
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 tolgee_mcp-0.1.0.tar.gz.
File metadata
- Download URL: tolgee_mcp-0.1.0.tar.gz
- Upload date:
- Size: 48.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4917f22a8408f8f6a2ab17f72200464e8c8244c2d9d8ab02d4a6895ed4bc6f7c
|
|
| MD5 |
21806fe585bd561d371acdc9c68ff813
|
|
| BLAKE2b-256 |
081ef125fb44eaf82305b7f1a689fa2d3db06b1bb909e3a43adbadf25b29b453
|
File details
Details for the file tolgee_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tolgee_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ab689c9a2c880004063cb652959148a0aa23634899d4f068c1e0069cc4d30ac
|
|
| MD5 |
cc7ceaaa7b5b105e85c2059f5a35932c
|
|
| BLAKE2b-256 |
825939962c1bc916d6547cef555695aba41171fa39892965ee7b92b0e6d3c47d
|