Lokalise MCP Tool
Add translation keys to Lokalise projects. Requires a Lokalise API key.
Lokalise MCP Tool
A Minimal Command-line Program (MCP) server for adding translation keys to your Lokalise projects, designed for integration with Cursor or standalone use.
๐ฆ Installation
# For MCP usage (global installation)
npm install -g lokalise-mcp-server
# For library usage (project dependency)
npm install lokalise-mcp-server
NPM Package: https://www.npmjs.com/package/lokalise-mcp-server
๐ผ๏ธ MCP Flow Diagram

This diagram illustrates the Model Context Protocol (MCP) flow between Cursor, your MCP server, and Lokalise.
โก๏ธ Usage (Quick Start with Cursor MCP)
Option 1: NPM Package (Recommended)
๐ ๏ธ Add this to your mcp.json (or configure via Cursor UI):
{
"mcpServers": {
"lokalise": {
"command": "npx",
"args": ["-y", "lokalise-mcp-server"],
"env": {
"LOKALISE_API_KEY": "your_actual_api_key"
}
}
}
}
- ๐ Reload Window. It will automatically use the npm package.
Option 2: Docker (Alternative)
No need to run Docker or Podman manually!
-
๐ณ Make sure Docker or Podman is installed and running.
-
๐ ๏ธ Add this to your
mcp.json(or configure via Cursor UI):{ "mcpServers": { "lokalise": { "command": "docker", // podman "args": [ "run", "--rm", "-i", "-e", "LOKALISE_API_KEY", "rafee03/mcp-lokalise:latest" ], "env": { "LOKALISE_API_KEY": "your_actual_api_key" } } } }- You can use
podmaninstead ofdockerif you prefer. - Cursor will automatically pull and run the image as needed.
- You can use
-
๐ Restart Cursor. It will handle everything for you.
๐ How to Use in Cursor
This tool takes these inputs:
- projectName (required): The name of your Lokalise project (e.g.,
SpaceX). - keys (required): An array of objects, each with:
- keyName (required): The translation key (e.g.,
hello) - defaultValue (optional): The default translation value (e.g.,
Hello) - platforms (optional): The platforms this key applies to (e.g.,
web,ios)
- keyName (required): The translation key (e.g.,
Example:
I want to add two keys, one is hello and another one is bye. their default values are Hello and Goodbye. both are in web platform. the project is spaceX
Cursor will automatically convert this to the correct input for the MCP tool.

๐ Project Files
TypeScript Source Files (src/):
- src/mcp-server.ts: The main MCP server entry point for Cursor integration.
- src/mcp.ts: Shared logic for interacting with the Lokalise API (used by the server).
- src/server.ts: (Optional) HTTP server version (not required for Cursor).
- src/add-key.ts: (Optional) CLI tool for adding a key interactively (not required for Cursor).
Compiled JavaScript Files (dist/):
- dist/mcp-server.js: Compiled MCP server.
- dist/mcp.js: Compiled API logic.
- dist/server.js: Compiled HTTP server.
- dist/add-key.js: Compiled CLI tool.
Other Files:
- tsconfig.json: TypeScript configuration.
- Dockerfile: For building the Docker image of the MCP server.
- package.json: Project dependencies and scripts.
- README.md: This documentation file.
๐ ๏ธ Setup (For Local Development or Customization)
1. ๐ฅ Clone the Repository
git clone https://github.com/mdrafee03/mcp-lokalise.git
cd mcp-lokalise
2. ๐ฆ Install Dependencies
npm install
3. ๐จ Build the Project
npm run build
4. ๐ Set Your Lokalise API Key
In your MCP config (recommended for Cursor)
{
"mcpServers": {
"lokalise": {
"command": "node",
"args": ["{directory-of-the-project}/dist/mcp-server.js"],
"env": {
"LOKALISE_API_KEY": "your_actual_api_key"
}
}
}
}
Available Scripts
npm run build- Compile TypeScript to JavaScriptnpm run dev- Run the MCP server in development mode with tsxnpm run server- Run the HTTP server in development mode with tsxnpm run add-key- Run the CLI tool in development mode with tsxnpm start- Run the compiled MCP server from dist/
Requirements
- Node.js 22+ recommended
- TypeScript 5.8+
- MCP protocol via @modelcontextprotocol/sdk
License
MIT
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
fal.ai Recraft v3
Advanced text-to-image generation using the fal.ai Recraft v3 API.
GroundDocs
A version-aware documentation assistant that connects LLMs to trusted, real-time docs to reduce hallucinations and provide accurate, version-specific responses.
Recraft AI
Generate and edit raster/vector images, vectorize, remove/replace backgrounds, and upscale using the Recraft AI API.
Alchemy MCP Server
Interact with Alchemy's blockchain APIs to query data without writing code.
Multiverse MCP Server
A middleware server for running multiple, isolated instances of MCP servers with unique namespaces and configurations.
stdout-mcp-server
Captures and manages stdout logs from multiple processes via a named pipe system for real-time debugging and analysis.
Blend MCP
An AI gateway for the Blend Protocol on Stellar, enabling DeFi actions like lending, borrowing, and pool creation through AI assistants or apps.
Last9
Seamlessly bring real-time production contextโlogs, metrics, and tracesโinto your local environment to auto-fix code faster.
Remote MCP Server (Authless)
A remote MCP server deployable on Cloudflare Workers, without authentication.
SDK MCP Server
An MCP server providing searchable access to multiple AI/ML SDK documentation and source code.