# π POEditor MCP Server
A comprehensive Model Context Protocol (MCP) server for POEditor translation management, featuring advanced automation scripts and workflow optimization tools.
[](https://github.com/r-pedraza/poeditor-mcp/releases)
[](https://www.python.org/)
[](https://opensource.org/licenses/MIT)
[](https://github.com/r-pedraza/poeditor-mcp/stargazers)
[](https://github.com/modelcontextprotocol)
[](https://poeditor.com/)
[](https://claude.ai/)
[](https://code.visualstudio.com/)
[](https://github.com/r-pedraza/poeditor-mcp/issues)
[](https://github.com/r-pedraza/poeditor-mcp/pulls)
[](https://github.com/r-pedraza/poeditor-mcp/commits/main)
[](https://github.com/r-pedraza/poeditor-mcp)
## π **Features**
- **π Complete MCP Server**: Full integration with POEditor API
- **ποΈ Control Center**: Master script to manage all automation tools
- **π Smart Reporting**: Interactive HTML reports with progress tracking
- **π¨ Monitoring System**: Automated alerts for translation issues
- **π€ AI Automation**: Intelligent translation suggestions and consistency checking
- **π§ Notifications**: Email and Slack integration for team updates
- **π¦ Mass Export**: Multi-format export system for all platforms
- **π Scheduler**: Automated task execution with cron-like functionality
## π― **Why This MCP?**
Unlike other MCP servers that require complex Docker setups, POEditor MCP is designed for simplicity:
- β **No Docker required** - Pure Python implementation
- π― **Translation-focused** - Built specifically for localization workflows
- π§ **Minimal setup** - Just add your API token and run
- π **Instant execution** - `python setup.py && python control_center.py`
- π **Visual reports** - Beautiful HTML dashboards
- π€ **Built-in AI** - Smart translation suggestions
## π **Project Status**
[](https://github.com/r-pedraza/poeditor-mcp)
[](https://github.com/r-pedraza/poeditor-mcp/commits/main)
[](https://poeditor.com/docs/api)
[](https://github.com/r-pedraza/poeditor-mcp#documentation)
| Feature | Status | Description |
|---------|--------|-------------|
| π MCP Server | β
Complete | Full MCP protocol implementation |
| π― POEditor API | β
Complete | All API endpoints covered |
| π€ Claude Desktop | β
Supported | Ready-to-use configuration |
| π§ VS Code | β
Supported | MCP extension compatible |
| π Automation | β
Complete | 10+ automation scripts |
| π Documentation | β
Complete | Comprehensive guides |
| π§ͺ Testing | β
Complete | Thorough test coverage |
| π Internationalization | π§ Planned | Multi-language support |
## π **Quick Start**
### 1. **Automatic Setup** (Recommended)
```bash
# Clone the repository
git clone https://github.com/yourusername/poeditor-mcp.git
cd poeditor-mcp
# Run the automatic setup script
python setup.py
# Follow the interactive prompts to configure your POEditor API token
```
### 2. **Manual Setup**
```bash
# Install dependencies
pip install -r requirements.txt
# Copy environment template
cp .env.template .env
# Edit .env with your POEditor API token
nano .env
# Test the connection
python test_connection.py
```
### 3. **Start Using**
```bash
# Show all available commands
python control_center.py help
# Run daily monitoring
python control_center.py monitor
# Generate progress report
python control_center.py daily_report
# Start automated scheduling
python control_center.py schedule start
```
## οΏ½ **MCP Client Configuration**
Once installed, configure your MCP client to use the POEditor server:
### **π― Claude Desktop**
Add this configuration to your Claude Desktop config file:
**macOS/Linux**: `~/.claude_desktop_config.json`
**Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"poeditor": {
"command": "python",
"args": ["-m", "mcp_poeditor"],
"cwd": "/path/to/your/poeditor-mcp",
"env": {
"POEDITOR_API_TOKEN": "your_poeditor_token_here"
}
}
}
}
```
### **π§ Visual Studio Code**
Add this configuration to your VS Code settings:
**File**: `.vscode/settings.json` (workspace) or user settings
```json
{
"mcp.servers": {
"poeditor": {
"command": "python",
"args": ["-m", "mcp_poeditor"],
"cwd": "/path/to/your/poeditor-mcp",
"env": {
"POEDITOR_API_TOKEN": "your_poeditor_token_here"
}
}
}
}
```
### **π Configuration Notes**
- Replace `/path/to/your/poeditor-mcp` with the actual path to your installation
- Replace `your_poeditor_token_here` with your actual POEditor API token
- Restart your MCP client after configuration
- Use the provided example files: `claude_desktop_config_example.json` and `vscode_settings_example.json`
## οΏ½π οΈ **Available Tools**
The MCP server provides comprehensive POEditor management through these tool categories:
### **π Project Management**
- `list_projects` - List all projects
- `get_project` - Get project details
- `create_project` - Create new project
### **π Language Management**
- `list_languages` - List project languages
- `add_language` - Add language to project
- `remove_language` - Remove language from project
### **π Term Management**
- `list_terms` - List project terms
- `search_terms` - Search terms by key/value
- `add_terms` - Add new terms
- `delete_terms` - Remove terms
### **βοΈ Translation Management**
- `list_translations` - Get language translations
- `add_translation` - Add new translation
- `update_translation` - Update existing translation
- `export_translations` - Export in multiple formats
### **π Statistics & Analytics**
- `get_project_stats` - Project statistics
- `get_translation_progress` - Progress by language
- `compare_languages` - Language comparison analysis
## ποΈ **Automation Scripts**
The project includes a powerful suite of automation scripts accessible through the control center:
```bash
python control_center.py <command>
```
### **π Reporting & Analytics**
- `daily_report` - Generate comprehensive HTML progress reports
- `status` - Check system health and configuration
### **π¨ Monitoring & Alerts**
- `monitor` - Scan for translation issues and quality problems
- `test` - Run system diagnostics
### **π€ Automation**
- `automate` - AI-powered translation suggestions and consistency checks
- `schedule` - Automated task scheduling and execution
### **π Optimization**
- `optimize` - Workflow analysis with actionable recommendations
- `sync` - Synchronize translations between similar projects
### **π¦ Export & Integration**
- `export` - Mass export in multiple formats (JSON, Android XML, iOS Strings, etc.)
- `notify` - Send team notifications via email/Slack
### **π§ Management**
- `setup` - Interactive environment configuration
- `demo` - Complete system demonstration
## π **Project Structure**
```
poeditor-mcp/
βββ π README.md # This file
βββ π requirements.txt # Python dependencies
βββ π .env.template # Environment template
βββ π setup.py # Automatic setup script
βββ π test_connection.py # Connection test utility
βββ π claude_desktop_config_example.json # Claude Desktop config example
βββ π vscode_settings_example.json # VS Code config example
βββ π CONFIG_README.md # Configuration guide
β
βββ π mcp_poeditor/ # Core MCP package
β βββ π __init__.py
β βββ π __main__.py # Entry point
β βββ π server.py # MCP server implementation
β βββ π poeditor_client.py # POEditor API client
β β
β βββ π tools/ # MCP tools
β β βββ π projects.py # Project management
β β βββ π languages.py # Language management
β β βββ π terms.py # Term management
β β βββ π translations.py # Translation management
β β βββ π stats.py # Statistics & analytics
β β
β βββ π utils/ # Utilities
β βββ π config.py # Configuration management
β βββ π helpers.py # Helper functions
β
βββ π scripts/ # ποΈ AUTOMATION SUITE
β βββ π README.md # Scripts documentation
β βββ π control_center.py # ποΈ Master control script
β βββ π daily_report.py # π Daily progress reports
β βββ π translation_monitor.py # π¨ Quality monitoring
β βββ π workflow_optimizer.py # π Workflow optimization
β βββ π project_sync.py # π Project synchronization
β βββ π notification_manager.py # π§ Team notifications
β βββ π translation_automator.py # π€ AI automation
β βββ π mass_exporter.py # π¦ Multi-format export
β βββ π scheduler.py # π Task scheduling
β βββ π demo_workflow.py # π― Complete demo
β
βββ π examples/ # Usage examples
β βββ π basic_usage.py # Basic MCP usage
β βββ π automation_examples.py # Automation examples
β βββ π integration_guide.md # Integration guide
β
βββ π docs/ # Documentation
βββ π INSTALLATION.md # Detailed installation
βββ π CONFIGURATION.md # Configuration guide
βββ π API_REFERENCE.md # API documentation
βββ π CONTRIBUTING.md # Contribution guidelines
```
## π§ **Configuration**
### **Environment Variables**
Create a `.env` file in the root directory:
```env
# POEditor API Configuration
POEDITOR_API_TOKEN=your_api_token_here
POEDITOR_API_URL=https://api.poeditor.com/v2/
# MCP Server Configuration
MCP_SERVER_NAME=poeditor-mcp
MCP_SERVER_VERSION=1.0.0
# Notification Settings (Optional)
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@company.com
SMTP_PASSWORD=your_app_password
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
# Automation Settings
DEFAULT_EXPORT_FORMAT=json
MAX_RETRIES=3
REQUEST_TIMEOUT=30
LOG_LEVEL=INFO
```
### **Scheduler Configuration**
Customize automation schedules in `scripts/scheduler_config.json`:
```json
{
"schedules": {
"daily_report": {
"time": "08:00",
"enabled": true,
"weekdays_only": true,
"description": "Generate daily progress report"
},
"monitoring": {
"time": "09:00",
"enabled": true,
"weekdays_only": true,
"description": "Run translation quality monitoring"
},
"weekly_optimization": {
"day": "monday",
"time": "08:30",
"enabled": true,
"description": "Weekly workflow optimization analysis"
}
}
}
```
## π **Usage Examples**
### **Basic Translation Management**
```python
from mcp_poeditor.server import call_tool
# List all projects
projects = await call_tool("list_projects", {})
# Get project languages
languages = await call_tool("list_languages", {"project_id": "123456"})
# Search for specific terms
results = await call_tool("search_terms", {
"project_id": "123456",
"search_query": "login"
})
# Export translations
export_url = await call_tool("export_translations", {
"project_id": "123456",
"language_code": "es",
"file_format": "json"
})
```
### **Automation Workflow**
```bash
# Morning routine
python control_center.py monitor # Check for issues
python control_center.py daily_report # Generate progress report
# Development workflow
python control_center.py automate # Get AI suggestions
python control_center.py export # Export for developers
# Weekly optimization
python control_center.py optimize # Analyze workflow efficiency
python control_center.py sync # Sync related projects
```
### **Integration with CI/CD**
```yaml
# GitHub Actions example
name: Translation Export
on:
schedule:
- cron: '0 8 * * *' # Daily at 8 AM
jobs:
export:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Export translations
env:
POEDITOR_API_TOKEN: ${{ secrets.POEDITOR_API_TOKEN }}
run: python control_center.py export
```
## π **Automated Workflows**
### **Daily Automation**
- π
**Morning**: Quality monitoring and progress reports
- π **Midday**: AI-powered translation suggestions
- π **Evening**: Export updates for development teams
### **Weekly Optimization**
- π **Monday**: Workflow analysis and optimization recommendations
- π **Wednesday**: Project synchronization and consistency checks
- π¦ **Friday**: Complete backup and multi-format export
### **Real-time Monitoring**
- π¨ **Quality alerts**: Fuzzy translations, consistency issues
- π **Progress tracking**: Language completion milestones
- π₯ **Team notifications**: Slack/email updates for important events
## π― **Supported Export Formats**
Perfect for any development workflow:
- π± **Mobile**: Android XML, iOS Strings, React Native JSON
- π **Web**: JSON, CSV for React/Vue/Angular applications
- π₯οΈ **Backend**: Gettext PO, Java Properties, YAML
- π **Analysis**: Excel XLSX, CSV for progress tracking
- π **Integration**: XLIFF, TMX for CAT tools
## π **Documentation**
- [π Installation Guide](docs/INSTALLATION.md) - Detailed setup instructions
- [βοΈ Configuration Guide](docs/CONFIGURATION.md) - Advanced configuration options
- [π§ API Reference](docs/API_REFERENCE.md) - Complete API documentation
- [π Integration Guide](examples/integration_guide.md) - Platform integration examples
- [π€ Contributing](docs/CONTRIBUTING.md) - How to contribute to the project
## π **Troubleshooting**
### **Common Issues**
**Connection Failed**
```bash
# Test your POEditor API token
python test_connection.py
# Check configuration
python control_center.py status
```
**Missing Dependencies**
```bash
# Reinstall requirements
pip install -r requirements.txt
# Run system diagnostics
python control_center.py test
```
**Permission Errors**
```bash
# Fix file permissions
chmod +x setup.py
chmod +x control_center.py
```
### **Getting Help**
1. π **Check logs**: `./logs/` directory contains detailed execution logs
2. π§ͺ **Run diagnostics**: `python control_center.py test`
3. π **System status**: `python control_center.py status`
4. π **Report issues**: Create a GitHub issue with log details
## π€ **Contributing**
We welcome contributions! Please see our [Contributing Guide](docs/CONTRIBUTING.md) for details on:
- π Reporting bugs
- π‘ Suggesting features
- π§ Submitting pull requests
- π Improving documentation
## π **License**
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## π **Acknowledgments**
- [Model Context Protocol](https://github.com/modelcontextprotocol) for the excellent MCP framework
- [POEditor](https://poeditor.com) for their comprehensive translation management API
- The open-source community for inspiration and best practices
---
**β If this project helps you, please consider giving it a star!**
**π Start automating your translation workflow today!**