npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

lokalise-mcp-server

v1.0.3

Published

A Model Context Protocol (MCP) server for managing Lokalise translation keys with TypeScript support

Readme

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

MCP Flow

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"
      }
    }
  }
}
  1. 🔄 Reload Window. It will automatically use the npm package.

Option 2: Docker (Alternative)

No need to run Docker or Podman manually!

  1. 🐳 Make sure Docker or Podman is installed and running.

  2. 🛠️ 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 podman instead of docker if you prefer.
    • Cursor will automatically pull and run the image as needed.
  3. 🔄 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)

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.

Cursor MCP Lokalise Flow


📁 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 JavaScript
  • npm run dev - Run the MCP server in development mode with tsx
  • npm run server - Run the HTTP server in development mode with tsx
  • npm run add-key - Run the CLI tool in development mode with tsx
  • npm start - Run the compiled MCP server from dist/

Requirements


License

MIT