Skip to main content
Glama

Localizable XStrings MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_MODELNoOpenAI model for translationsgpt-4o-mini
OPENAI_API_KEYYesYour OpenAI API key
OPENAI_BASE_URLNoCustom API base URL
TRANSLATION_CHUNK_SIZENoStrings per API request50
TRANSLATION_TEMPERATURENoModel creativity (0.0-1.0)0.3
TRANSLATION_RATE_LIMIT_DELAYNoDelay between requests (seconds)1.0
TRANSLATION_MAX_CONCURRENT_CHUNKSNoMax concurrent requests2

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
get_languages_tool
MCP tool to get supported languages from xcstrings file. Args: file_path (str): Path to the .xcstrings file Returns: str: JSON string of supported languages or error message
get_keys_tool
MCP tool to get all localization keys from xcstrings file. Args: file_path (str): Path to the .xcstrings file Returns: str: List of all keys or error message
get_base_strings_tool
MCP tool to get base language strings from xcstrings file. Args: file_path (str): Path to the .xcstrings file Returns: str: Base language strings or error message
translate_tool
MCP tool to translate strings to target language and return translated keys. Args: file_path (str): Path to the .xcstrings file target_language (str): Target language code Returns: str: Translation result with translated keys or error message
apply_tool
MCP tool to translate and apply translations to xcstrings file. Args: file_path (str): Path to the .xcstrings file target_language (str): Target language code app_description (str): Optional description of the app for better translation context Returns: str: Application result with translated keys or error message
apply_missing_tool
MCP tool to apply only missing translations for a target language in xcstrings file. Only translates keys that don't already have translations in the target language. Args: file_path (str): Path to the .xcstrings file target_language (str): Target language code app_description (str): Optional description of the app for better translation context Returns: str: Application result with newly translated keys or error message
translate_key_tool
MCP tool to translate a specific key to multiple target languages and apply translations. Args: file_path (str): Path to the .xcstrings file key (str): The specific key to translate target_languages (str): Comma-separated list of target language codes (e.g., "es,fr,de") app_description (str): Optional description of the app for better translation context Returns: str: Translation results or error message

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iamnotagentleman/localizable-xcstrings-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server