KosmoKrator

productivity

Lokalise MCP Integration for LangChain

Connect Lokalise to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 6 read 1 write API token auth

Connect Lokalise to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Lokalise MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-lokalise": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=lokalise",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=lokalise --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Lokalise instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Lokalise Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Lokalise integration catalog.

MCP toolSource functionTypeDescription
integration__lokalise__lokalise_list_projects lokalise.lokalise_list_projects Read List Lokalise projects. Returns project IDs, names, languages, and other metadata. Supports pagination.
integration__lokalise__lokalise_get_project lokalise.lokalise_get_project Read Get details of a specific Lokalise project. Returns project name, description, languages, statistics, and settings.
integration__lokalise__lokalise_list_keys lokalise.lokalise_list_keys Read List translation keys in a Lokalise project. Returns key IDs, names, platforms, and other metadata. Supports pagination.
integration__lokalise__lokalise_get_key lokalise.lokalise_get_key Read Get details of a specific translation key in a Lokalise project. Returns key name, platforms, translations, and other metadata.
integration__lokalise__lokalise_create_key lokalise.lokalise_create_key Write Create a new translation key in a Lokalise project. The key name and optional translations for each language can be provided.
integration__lokalise__lokalise_list_translations lokalise.lokalise_list_translations Read List translations in a Lokalise project. Returns translation values, language codes, and key references. Supports pagination.
integration__lokalise__lokalise_get_current_user lokalise.lokalise_get_current_user Read Get the currently authenticated Lokalise user. Returns user email, name, and account details.

Related Lokalise Pages