Labsco
mdrafee03 logo

Lokalise MCP Tool

โ˜… 4

from mdrafee03

Add translation keys to Lokalise projects. Requires a Lokalise API key.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

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.

๐Ÿ–ผ๏ธ MCP Flow Diagram

MCP Flow

This diagram illustrates the Model Context Protocol (MCP) flow between Cursor, your MCP server, and Lokalise.

๐Ÿ“ 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.

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