Weblate MCP Server
Provides seamless integration with Weblate translation management platform, enabling full API access to manage translation projects, components, translations, and languages. Allows creating and listing projects, handling translation components, updating and searching translations, and working with all supported languages in a Weblate instance.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Weblate MCP Server show me all untranslated strings in the frontend project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: tolgee-mcp
π― 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-mcpOption 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 startServer 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 |
| List all available Weblate projects with URLs and metadata |
π§ Component Management
Tool | Description |
| List components in a specific project with source language details |
βοΈ Translation Management
Tool | Description |
| Efficient search using Weblate's native filtering syntax |
| Search for translations containing specific text in a project |
| Get translation value for a specific key |
| Update or write translation values with approval support |
| Batch update multiple translations efficiently with error handling |
| 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 |
| List languages available in a specific project |
π Translation Statistics Dashboard
Tool | Description |
| Comprehensive project statistics with completion rates and string counts |
| Detailed statistics for a specific component |
| Complete dashboard overview with all component statistics |
| Statistics for specific translation (project/component/language) |
| Translation progress for all languages in a component with progress bars |
| Statistics for a language across all projects |
| User contribution statistics and activity metrics |
π Change Tracking & History
Tool | Description |
| Recent changes across all projects with user and timestamp filtering |
| Recent changes for a specific project |
| Recent changes for a specific component |
| 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 |
Complete documentation overview and quick start | |
Installation, configuration, and Claude Desktop setup | |
Complete API documentation with examples | |
Contributing, development setup, and testing | |
Codebase structure, patterns, and design decisions | |
Release management and publishing workflow | |
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 buildAdding 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!
Available Tools
20 toolsbulkWriteTranslationsB
Update multiple translations in batch for efficient bulk operations
Inputs: projectSlug (required), componentSlug (required), languageCode (required), translations (required).
findTranslationsForKeyC
Find all translations for a specific key across all components and languages in a project
Inputs: projectSlug (required), key (required).
getChangesByUserC
Get recent changes by a specific user
Inputs: user (required), limit.
getComponentChangesC
Get recent changes for a specific component
Inputs: projectSlug (required), componentSlug (required).
getComponentLanguageProgressC
Get translation progress for all languages in a component
Inputs: projectSlug (required), componentSlug (required).
getComponentStatisticsB
Get detailed statistics for a specific component
Inputs: projectSlug (required), componentSlug (required).
getLanguageStatisticsB
Get statistics for a specific language across all projects
Inputs: languageCode (required).
getProjectChangesC
Get recent changes for a specific project
Inputs: projectSlug (required).
getProjectDashboardC
Get a comprehensive dashboard overview for a project with all component statistics
Inputs: projectSlug (required).
getProjectStatisticsB
Get comprehensive statistics for a project including completion rates and string counts
Inputs: projectSlug (required).
getTranslationForKeyB
Get translation value for a specific key in a project
Inputs: projectSlug (required), componentSlug (required), languageCode (required), key (required).
getTranslationStatisticsB
Get statistics for a specific translation (project/component/language combination)
Inputs: projectSlug (required), componentSlug (required), languageCode (required).
getUserStatisticsC
Get contribution statistics for a specific user
Inputs: username (required).
listComponentsC
List components in a specific project
Inputs: projectSlug (required).
listLanguagesC
List languages available in a specific project
Inputs: projectSlug (required).
listProjectsB
List all available Weblate projects
Inputs: no named parameters.
listRecentChangesC
List recent changes across all projects in Weblate
Inputs: limit, user, timestampAfter, timestampBefore.
searchStringInProjectC
Search for translations containing specific text in a project
Inputs: projectSlug (required), value (required), searchIn.
searchUnitsWithFiltersB
Search translation units using Weblate's powerful filtering syntax. Supports filters like: state:<translated (untranslated), state:>=translated (translated), component:NAME, source:TEXT, target:TEXT, has:suggestion, etc.
Inputs: projectSlug (required), componentSlug (required), languageCode (required), searchQuery (required), +1 more.
writeTranslationC
Update or write a translation value for a specific key
Inputs: projectSlug (required), componentSlug (required), languageCode (required), key (required), +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 20 tools
Most tools have distinct purposes focused on different resources (projects, components, translations, users) and actions (get, list, search, write). However, some overlap exists between getTranslationForKey and findTranslationsForKey, and between various statistics tools, which could cause minor confusion. The descriptions help clarify the differences, but the boundaries aren't always perfectly clear.
Tool names follow a highly consistent verb_noun pattern throughout, with clear action prefixes (get, list, search, write, find, bulkWrite) followed by specific resource nouns. All names use camelCase consistently, making them predictable and readable. There are no deviations in naming conventions across the 20 tools.
With 20 tools, the count is borderline high for a translation management server, leaning toward feeling heavy. While Weblate is a complex platform, some tools like getChangesByUser, getComponentChanges, and getProjectChanges might be redundant with listRecentChanges, and multiple statistics tools could potentially be consolidated. The scope is broad but could be more streamlined.
The tool set provides comprehensive coverage for the Weblate translation management domain. It includes full CRUD operations (list, get, write, bulkWrite), detailed statistics across projects, components, languages, and users, search capabilities with advanced filters, change tracking, and dashboard views. There are no obvious gaps; agents can perform all core workflows without dead ends.
Maintenance
Related MCP Connectors
MCP server for Crowdin β projects, files, strings, translation progress, tasks, and members.
MCP server for Translation Services
Translate MCP β LibreTranslate-compatible machine translation.
Official MCP server for POEditor, the translation management system. Hosted, OAuth 2.1.
Related MCP Servers
- AlicenseCqualityDmaintenanceAn MCP server for processing XLIFF and TMX translation files, enabling parsing, validation, and manipulation of translation units in localization workflows.93MIT
- AlicenseBqualityDmaintenanceAn MCP server that wraps the Tolgee localization platform API, enabling LLMs to manage translation projects, keys, translations, languages, and related workflows.2721 PyPIMIT
- FlicenseBqualityDmaintenanceAn MCP server for managing Lokalise translations, enabling creation, retrieval, and deletion of translation keys.3-
- AlicenseNot gradedqualityCmaintenanceMCP server for translating JSON localization files via DeepL API or local LLMs, enabling agents to estimate, check, and run translations.1MIT