Weblate MCP Server
Seamlessly connect AI assistants to Weblate for translation management via the Model Context Protocol.
Key Features
Use Cases
README
Weblate MCP Server
A Model Context Protocol (MCP) server that provides seamless integration with Weblate translation management platform. This server enables AI assistants to interact directly with your Weblate instance for comprehensive translation management.
π Features
- π§ Complete Weblate API Access: Full integration with Weblate's REST API
- π€ AI-Powered Workflow: Natural language interaction with your translation projects
- π Project Management: Create, list, and manage translation projects
- π Component Operations: Handle translation components and configurations
- βοΈ Translation Management: Update, search, and manage translations
- π Language Support: Work with all supported languages in your Weblate instance
- π Multiple Transports: HTTP/SSE, Streamable HTTP, and STDIO support
- π‘οΈ Type Safety: Full TypeScript implementation with comprehensive error handling
- β‘ LLM-Optimized: Tools designed to guide AI models toward efficient usage patterns
π― What is This?
This MCP server acts as a bridge between AI assistants (like Claude Desktop) and your Weblate translation management platform. Instead of manually navigating the Weblate web interface, you can use natural language to:
- "List all projects in my Weblate instance"
- "Show me the French translations for the frontend component"
- "Update the welcome message translation"
- "Create a new translation project"
π Quick Start
Option 1: Use with npx (Recommended)
The easiest way to use this MCP server is with npx - no installation required!
For Claude Desktop or other MCP clients:
{
"mcpServers": {
"weblate": {
"command": "npx",
"args": ["-y", "@mmntm/weblate-mcp"],
"env": {
"WEBLATE_API_URL": "https://your-weblate-instance.com/api",
"WEBLATE_API_TOKEN": "your-weblate-api-token"
}
}
}
}
Manual testing:
# Test the server directly
npx @mmntm/weblate-mcp
Option 2: Development Setup
Prerequisites
- Node.js 18+
- pnpm package manager
- Weblate instance with API access
Installation
# Clone and install
git clone <this-repo>
cd weblate-mcp
pnpm install
# Configure environment
cp .env.example .env
# Edit .env with your Weblate API URL and token
# Build and start
pnpm build
pnpm start
Server runs on http://localhost:3001 by default.
Environment Configuration
WEBLATE_API_URL=https://your-weblate-instance.com
WEBLATE_API_TOKEN=your-api-token-here
PORT=3001
NODE_ENV=production
LOG_LEVEL=info
π MCP Client Configuration
Claude Desktop (npx method - Recommended)
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"weblate": {
"command": "npx",
"args": ["-y", "@mmntm/weblate-mcp"],
"env": {
"WEBLATE_API_URL": "https://your-weblate-instance.com/api",
"WEBLATE_API_TOKEN": "your-weblate-api-token"
}
}
}
}
Claude Desktop (Development/Local)
For development or local builds:
{
"mcpServers": {
"weblate": {
"command": "node",
"args": ["/path/to/weblate-mcp/dist/main.js"],
"env": {
"WEBLATE_API_URL": "https://your-weblate-instance.com/api",
"WEBLATE_API_TOKEN": "your-api-token"
}
}
}
}
HTTP Clients (Cursor, VS Code, Web Apps)
{
"transport": "http",
"url": "http://localhost:3001/mcp"
}
π οΈ Available Tools
π Project Management
| Tool | Description |
|---|---|
listProjects |
List all available Weblate projects with URLs and metadata |
π§ Component Management
| Tool | Description |
|---|---|
listComponents |
List components in a specific project with source language details |
βοΈ Translation Management
| Tool | Description |
|---|---|
searchUnitsWithFilters β |
Efficient search using Weblate's native filtering syntax |
searchStringInProject |
Search for translations containing specific text in a project |
getTranslationForKey |
Get translation value for a specific key |
writeTranslation |
Update or write translation values with approval support |
bulkWriteTranslations β‘ |
Batch update multiple translations efficiently with error handling |
findTranslationsForKey |
Find all translations for a specific key across languages |
π Why searchUnitsWithFilters is Recommended
The searchUnitsWithFilters tool uses Weblate's native filtering syntax, making it the most efficient way to find translations:
- β Inefficient: Getting all keys then checking each one individually (can make thousands of API calls)
- β Efficient: Single filtered search using Weblate's query syntax
Example efficient queries:
state:=0- Find untranslated stringsstate:=10- Find strings that need editingsource:"login"- Find strings containing "login"component:common AND state:=0- Complex filters
π Language Management
| Tool | Description |
|---|---|
listLanguages |
List languages available in a specific project |
π Translation Statistics Dashboard
| Tool | Description |
|---|---|
getProjectStatistics |
Comprehensive project statistics with completion rates and string counts |
getComponentStatistics |
Detailed statistics for a specific component |
getProjectDashboard |
Complete dashboard overview with all component statistics |
getTranslationStatistics |
Statistics for specific translation (project/component/language) |
getComponentLanguageProgress |
Translation progress for all languages in a component with progress bars |
getLanguageStatistics |
Statistics for a language across all projects |
getUserStatistics |
User contribution statistics and activity metrics |
π Change Tracking & History
| Tool | Description |
|---|---|
listRecentChanges |
Recent changes across all projects with user and timestamp filtering |
getProjectChanges |
Recent changes for a specific project |
getComponentChanges |
Recent changes for a specific component |
getChangesByUser |
Recent changes by a specific user |
π‘ Usage Examples
Project Operations
// List all projects
await list_projects();
// Get specific project details
await get_project({ slug: "my-project" });
// Create a new project
await create_project({
name: "New Project",
slug: "new-project",
web: "https://example.com"
});
Translation Operations
// List translations for a component
await list_translations({
project_slug: "my-project",
component_slug: "frontend"
});
// Get specific translation
await get_translation({
project_slug: "my-project",
component_slug: "frontend",
language_code: "fr"
});
// Update translations
await update_translation({
project_slug: "my-project",
component_slug: "frontend",
language_code: "fr",
translations: {
"welcome": "Bienvenue",
"goodbye": "Au revoir"
}
});
π Documentation
| Document | Description |
|---|---|
| π Documentation Hub | Complete documentation overview and quick start |
| π Installation & Setup | Installation, configuration, and Claude Desktop setup |
| π API Reference | Complete API documentation with examples |
| π οΈ Development Guide | Contributing, development setup, and testing |
| ποΈ Architecture | Codebase structure, patterns, and design decisions |
| π¦ Release Process | Release management and publishing workflow |
| π Changesets Guide | Version management with changesets |
ποΈ Architecture
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β MCP Client βββββΆβ Weblate MCP βββββΆβ Weblate API β
β (IDE/Editor) β β Server β β (REST API) β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
βΌ
ββββββββββββββββββββ
β MCP Tools β
β β’ Projects β
β β’ Components β
β β’ Translations β
β β’ Languages β
ββββββββββββββββββββ
Technology Stack:
- NestJS: Modern Node.js framework with dependency injection
- TypeScript: Full type safety and IntelliSense support
- Weblate REST API: Comprehensive API wrapper with interfaces
- MCP Protocol: Standard Model Context Protocol implementation
- Axios: HTTP client for API communication
π§ͺ Development
Development Setup
# Start development server with hot reload
pnpm run dev
# Run tests
pnpm test
# Run end-to-end tests
pnpm run test:e2e
# Generate test coverage
pnpm run test:cov
# Build for production
pnpm build
Adding New Tools
- Create tool file in
src/tools/ - Implement MCP tool interface
- Add to service providers
- Write tests
- Update documentation
See Development Guide for detailed instructions.
π― Use Cases
Translation Management
- Project oversight: Monitor translation progress across projects
- Content updates: Update translations programmatically
- Quality assurance: Review and approve translations
- Team coordination: Manage translation workflows
Development Integration
- CI/CD pipelines: Automate translation updates in deployment
- Content management: Sync translations with content systems
- Localization testing: Validate translations in different contexts
- Documentation: Generate translation reports and statistics
AI-Assisted Workflows
- Natural language queries: Ask about translation status in plain English
- Contextual operations: AI understands your translation needs
- Batch operations: Perform bulk updates with AI assistance
- Smart suggestions: Get AI-powered translation recommendations
π Security & Production
- API Token Security: Store tokens securely, use environment variables
- Rate Limiting: Built-in request throttling and retry logic
- Error Handling: Comprehensive error responses with debugging info
- Input Validation: All inputs validated with Zod schemas
- HTTPS Support: Secure communication with Weblate instances
π€ Contributing
We welcome contributions! Please see our Contributing Guidelines:
- Fork the repository
- Create a feature branch from main
- Implement changes with tests
- Update documentation
- Submit a pull request
Code Style
- Use TypeScript for type safety
- Follow NestJS conventions
- Add comprehensive tests
- Update documentation
π License
MIT License - see LICENSE file for details.
π Acknowledgments
- Weblate: For providing an excellent translation management platform
- Model Context Protocol: For the standardized protocol specification
- NestJS: For the robust application framework
- Contributors: Everyone who helps improve this project
Built with β€οΈ for the translation community
Need help? Check our documentation or create an issue!
Star History
Repository Owner
Organization
Repository Details
Programming Languages
Tags
Join Our Newsletter
Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.
Related MCPs
Discover similar Model Context Protocol servers
Lara Translate MCP Server
Context-aware translation server implementing the Model Context Protocol.
Lara Translate MCP Server enables AI applications to seamlessly access professional translation services via the standardized Model Context Protocol. It supports features such as language detection, context-aware translations, and translation memory integration. The server acts as a secure bridge between AI models and Lara Translate, managing credentials and facilitating structured translation requests and responses.
- β 76
- MCP
- translated/lara-mcp
Kanboard MCP Server
MCP server for seamless AI integration with Kanboard project management.
Kanboard MCP Server is a Go-based server implementing the Model Context Protocol (MCP) for integrating AI assistants with the Kanboard project management system. It enables users to manage projects, tasks, users, and workflows in Kanboard directly via natural language commands through compatible AI tools. With built-in support for secure authentication and high performance, it facilitates streamlined project operations between Kanboard and AI-powered clients like Cursor or Claude Desktop. The server is configurable and designed for compatibility with MCP standards.
- β 15
- MCP
- bivex/kanboard-mcp
Teamwork MCP Server
Seamless Teamwork.com integration for Large Language Models via the Model Context Protocol
Teamwork MCP Server is an implementation of the Model Context Protocol (MCP) that enables Large Language Models to interact securely and programmatically with Teamwork.com. It offers standardized interfaces, including HTTP and STDIO, allowing AI agents to perform various project management operations. The server supports multiple authentication methods, an extensible toolset architecture, and is designed for production deployments. It provides read-only capability for safe integrations and robust observability features.
- β 11
- MCP
- Teamwork/mcp
Model Context Protocol Server for Home Assistant
Seamlessly connect Home Assistant to LLMs for natural language smart home control via MCP.
Enables integration between a local Home Assistant instance and language models using the Model Context Protocol (MCP). Facilitates natural language monitoring and control of smart home devices, with robust API support for state management, automation, real-time updates, and system administration. Features secure, token-based access, and supports mobile and HTTP clients. Designed to bridge Home Assistant environments with modern AI-driven automation.
- β 468
- MCP
- tevonsb/homeassistant-mcp
Plane MCP Server
Enables LLMs to manage Plane.so projects and issues via the Model Context Protocol.
Plane MCP Server provides a standardized interface to connect large language models with Plane.so project management APIs. It enables LLMs to interact directly with project and issue data, supporting tasks such as listing projects, retrieving detailed information, creating and updating issues, while prioritizing user control and security. Installation is streamlined through tools like Smithery, and configuration supports multiple clients including Claude for Desktop.
- β 32
- MCP
- kelvin6365/plane-mcp-server
Notion MCP Server
Enable LLMs to interact with Notion using the Model Context Protocol.
Notion MCP Server allows large language models to interface with Notion workspaces through a Model Context Protocol server, supporting both data retrieval and editing capabilities. It includes experimental Markdown conversion to optimize token usage for more efficient communication with LLMs. The server can be configured with environment variables and controlled for specific tool access. Integration with applications like Claude Desktop is supported for seamless automation.
- β 834
- MCP
- suekou/mcp-notion-server
Didn't find tool you were looking for?