lokalise-mcp

AbdallahAHO/lokalise-mcp

3.2

If you are the rightful owner of lokalise-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Lokalise MCP Server is an unofficial integration that connects AI assistants to Lokalise, enabling seamless translation management through natural conversation.

Tools
  1. lokalise_list_projects

    List all projects with statistics

  2. lokalise_get_project

    Get detailed project information

  3. lokalise_create_project

    Create a new project

  4. lokalise_update_project

    Update project settings

  5. lokalise_delete_project

    Delete a project

Lokalise MCP Server

⚠️ Disclaimer: This is an unofficial, personal project and is not affiliated with, endorsed by, or associated with Lokalise Inc. It uses the publicly available Lokalise Node.js SDK to provide MCP integration. All code and implementation are my own work.

Lokalise MCP

Bring the power of Lokalise to your AI assistant

NPM Version License: MIT TypeScript Node.js

What is this?

The Lokalise MCP Server connects AI assistants like Claude to Lokalise, the leading translation management platform. Through natural conversation, you can manage translation projects, update content, and automate localization workflowsβ€”no coding required.

🎯 Perfect for:

  • Product Managers - Monitor translation progress and identify bottlenecks
  • Developers - Automate key management and bulk updates
  • Localization Teams - Manage translations and collaborate efficiently
  • Content Teams - Keep translations synchronized across projects

✨ Features

πŸ“Š Project Management

  • List and analyze all your projects with completion stats
  • Create new projects with base languages
  • Monitor translation health across teams

πŸ”€ Translation Keys

  • Browse and search translation keys
  • Bulk create/update/delete operations
  • Filter by platform (iOS, Android, Web)

🌍 Languages & Translations

  • Add new target languages instantly
  • Update translations across multiple languages
  • Track translation progress and review status

πŸ‘₯ Team Collaboration

  • Manage team members and permissions
  • Create and assign translation tasks
  • Add comments for translator context

πŸ“ Content Management

  • Maintain glossaries for consistency
  • Handle plural forms and variants
  • Export/import translation files

πŸ”’ Enterprise Ready

  • Secure API token handling
  • Rate limiting and error recovery
  • Support for custom API endpoints

πŸš€ Quick Start

Prerequisites

  • Node.js 18 or higher
  • A Lokalise account with API access
  • Your Lokalise API token (Get it here)

Installation

# Install globally
npm install -g lokalise-mcp

# Or clone for development
git clone https://github.com/AbdallahAHO/lokalise-mcp.git
cd lokalise-mcp
npm install

Configuration

  1. Copy the example environment file:

    cp .env.example .env
    
  2. Add your Lokalise API token:

    # .env
    LOKALISE_API_KEY=your_token_here
    

Running the Server

# HTTP mode (recommended)
npm run mcp:http

# STDIO mode (for Claude Desktop)
npm run mcp:stdio

# CLI mode (direct commands)
npm run cli -- list-projects

πŸ€– Using with Claude

Claude Desktop Setup

  1. Open Claude Desktop settings
  2. Go to "Developer" β†’ "Model Context Protocol"
  3. Add the Lokalise MCP server:
    {
      "lokalise": {
        "command": "npx",
        "args": ["lokalise-mcp"],
        "env": {
          "LOKALISE_API_KEY": "your_token_here"
        }
      }
    }
    

Example Conversations

Project Overview:

"Show me all my Lokalise projects and their translation progress"

Content Management:

"Create a new key 'welcome_message' with English text 'Welcome to our app!' and add Spanish and French translations"

Bulk Operations:

"Find all keys containing 'button' and update their descriptions to include platform information"

Team Collaboration:

"Create a task for translating the new onboarding flow into German and assign it to the German team"

πŸ“š Available Tools

The server provides 39 MCP tools covering all major Lokalise operations:

Click to see all available tools

Projects (6 tools)

  • lokalise_list_projects - List all projects with statistics
  • lokalise_get_project - Get detailed project information
  • lokalise_create_project - Create a new project
  • lokalise_update_project - Update project settings
  • lokalise_delete_project - Delete a project
  • lokalise_empty_project - Remove all keys from a project

Keys (7 tools)

  • lokalise_list_keys - List translation keys with filtering
  • lokalise_get_key - Get detailed key information
  • lokalise_create_keys - Create multiple keys at once
  • lokalise_update_key - Update a single key
  • lokalise_bulk_update_keys - Update multiple keys
  • lokalise_delete_key - Delete a single key
  • lokalise_bulk_delete_keys - Delete multiple keys

Languages (6 tools)

  • lokalise_list_system_languages - List all available languages
  • lokalise_list_project_languages - List project languages
  • lokalise_add_project_languages - Add languages to project
  • lokalise_get_language - Get language details
  • lokalise_update_language - Update language settings
  • lokalise_remove_language - Remove a language

Translations (4 tools)

  • lokalise_list_translations - List translations with filtering
  • lokalise_get_translation - Get translation details
  • lokalise_update_translation - Update a translation
  • lokalise_bulk_update_translations - Update multiple translations

Additional Collections

  • Tasks (5 tools) - Manage translation tasks
  • Comments (5 tools) - Handle key comments
  • Contributors (6 tools) - Manage team members
  • Glossary (5 tools) - Maintain terminology

πŸ› οΈ Advanced Configuration

Environment Variables

VariableDescriptionDefault
LOKALISE_API_KEYYour Lokalise API token (required)-
LOKALISE_API_HOSTNAMECustom API endpointhttps://api.lokalise.com/api2/
TRANSPORT_MODEServer mode: http or stdiohttp
PORTHTTP server port3000
DEBUGEnable debug loggingfalse

Custom API Endpoints

For enterprise or staging environments:

LOKALISE_API_HOSTNAME=https://api.enterprise.lokalise.com/api2/

🀝 Contributing

We welcome contributions! See our for details on:

  • Setting up the development environment
  • Architecture and code organization
  • Automated CI/CD checks on all PRs
  • Release process and workflow
  • Creating new tools and domains
  • Submitting pull requests

πŸ“– Documentation

πŸ› Troubleshooting

Common Issues

"Authentication failed"

  • Verify your API token is correct
  • Check token permissions in Lokalise settings

"Rate limit exceeded"

  • The server includes automatic rate limiting
  • For high-volume operations, consider batching

"Connection refused"

  • Ensure the server is running (npm run mcp:http)
  • Check firewall settings for port 3000

Debug Mode

Enable detailed logging:

DEBUG=true npm run mcp:http

πŸ“„ License

MIT License - see for details.

πŸ™ Acknowledgments