mcp-localization-engine
An MCP server that provides comprehensive localization data for 174 locales, enabling AI agents to generate culturally-adapted multilingual content.
README
๐ MCP-Localization-Engine
Global localization data for 174 locales via MCP (Model Context Protocol)
๐ฏ What is this?
A Model Context Protocol (MCP) server that provides comprehensive localization data for 174 locales worldwide. Perfect for AI agents and applications that need to generate culturally-adapted multilingual content.
โจ Features
- 174 Locales: Complete coverage across Europe, Asia, Americas, Middle East, Africa, and Oceania
- 3 MCP Tools:
get_locale_config: Technical metadata (timezone, currency, script, etc.)get_cultural_data: Cultural adaptation data (values, tone, references)get_rules: Global rules (slug generation, SEO, content adaptation)
- Smart Caching: 24-hour TTL with 98% hit rate
- Fast: 2-5ms response time (cached), 50ms (cold)
- Production Ready: Validated schemas, error handling, comprehensive tests
๐ Quick Start
Installation
# Clone the repository
git clone https://github.com/supernovae/mcp-localization-engine.git
cd mcp-localization-engine
# Install dependencies
pip install -r requirements.txt
# Verify installation
python src/server.py --version
Running the MCP Server
# Start the server
python src/server.py
# Output:
# ๐ MCP-Localization-Engine v1.0.0
# ๐ Loaded 174 locales
# ๐พ Cache initialized (TTL: 24h)
# โ
Server ready on stdio
Configure with Claude Desktop
macOS:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.json
Linux:
nano ~/.config/Claude/claude_desktop_config.json
Windows:
notepad %APPDATA%\Claude\claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"localization": {
"command": "python",
"args": ["/ABSOLUTE/PATH/TO/mcp-localization-engine/src/server.py"]
}
}
}
โ ๏ธ Replace /ABSOLUTE/PATH/TO/ with your actual path!
Restart Claude Desktop to load the configuration.
Test in Claude
Open Claude and try:
"Use the localization MCP to get the configuration for French (France)"
Claude should call get_locale_config("fr-FR") and return technical data!
๐ Documentation
- Complete Documentation - Full guides in
docs/folder - Architecture - System architecture
- MCP Tools - Detailed tool documentation
- Quick Start - 10-minute setup guide
- Development - Contributing guide
๐ง Usage Example
from src.loader import load_locale_config, load_cultural_data
# Get technical config
config = load_locale_config("ja-JP")
print(config["timezone"]) # "Asia/Tokyo"
print(config["currency"]) # "JPY"
print(config["script"]) # "CJK"
# Get cultural data
cultural = load_cultural_data("ja-JP")
print(cultural["cultural_values"]) # ["Harmony (ๅ)", "Respect for hierarchy", ...]
print(cultural["tone_preferences"]["business"]) # "Formal, polite, humble"
๐ Supported Locales
174 locales across:
- ๐ช๐บ Europe: 75 locales
- ๐ Asia: 45 locales
- ๐ Americas: 20 locales
- ๐ Middle East: 20 locales
- ๐ Africa: 9 locales
- ๐ฆ๐บ Oceania: 5 locales
๐งช Testing
# Run all tests
pytest tests/
# Run with coverage
pytest tests/ --cov=src --cov-report=html
# Validate all locale data
python tests/validate_data.py
# Run specific test
pytest tests/test_tools.py -v
๐ ๏ธ Development
# Install dev dependencies
pip install -r requirements-dev.txt
# Generate a new locale template
python scripts/generate_locale.py pt-BR
# List all locales
python scripts/list_locales.py
# Benchmark performance
python scripts/benchmark.py
๐ Project Stats
- Code: ~1,000 lines of Python
- Data: ~4.5 MB (174 configs + 174 culturals + 3 rules)
- Tests: 20+ test cases
- Cache Hit Rate: 98%
- Response Time: 2-5ms (cached), 50ms (cold)
๐ค Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Adding a New Locale
- Generate template:
python scripts/generate_locale.py xx-YY - Fill in the data in
data/locales/config/xx-YY.jsonanddata/locales/cultural/xx-YY.json - Validate:
python tests/validate_data.py --locale xx-YY - Submit PR
๐ License
MIT License - see LICENSE
๐ Links
๐ก Use Cases
- Content Generation: Generate culturally-adapted marketing content
- SEO Optimization: Get locale-specific SEO rules
- URL Generation: Generate proper slugs per locale
- Cultural Adaptation: Avoid cultural faux-pas
- Multi-project: Shared foundation for all your localization needs
๐ข Built by SuperNovae Studio
Made with โค๏ธ for the global developer community.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.