mcp-localization-engine

mcp-localization-engine

An MCP server that provides comprehensive localization data for 174 locales, enabling AI agents to generate culturally-adapted multilingual content.

Category
访问服务器

README

🌍 MCP-Localization-Engine

Global localization data for 174 locales via MCP (Model Context Protocol)

Python 3.8+ License: MIT MCP

🎯 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

🔧 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

View complete list →

🧪 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

  1. Generate template: python scripts/generate_locale.py xx-YY
  2. Fill in the data in data/locales/config/xx-YY.json and data/locales/cultural/xx-YY.json
  3. Validate: python tests/validate_data.py --locale xx-YY
  4. 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.


Questions? Open an issue or check the docs!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选