KosmoKrator

productivity

DeepL MCP Integration for LangChain

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

7 functions 5 read 2 write API key auth

Connect DeepL 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.

DeepL MCP Config for LangChain

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only DeepL 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.

DeepL Tools Visible to LangChain

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

MCP toolSource functionTypeDescription
integration__deepl__deepl_translate_text deepl.deepl_translate_text Write Translate text using DeepL. Supports automatic source language detection or explicit source language specification. Returns translated text with detected source language.
integration__deepl__deepl_list_languages deepl.deepl_list_languages Read List languages supported by DeepL. Returns language codes and names. Filter by type to get only source or target languages.
integration__deepl__deepl_get_usage deepl.deepl_get_usage Read Get current DeepL API usage. Returns the number of characters translated and the character limit for the current billing period.
integration__deepl__deepl_list_glossaries deepl.deepl_list_glossaries Read List all glossaries in your DeepL account. Returns glossary IDs, names, language pairs, and entry counts.
integration__deepl__deepl_get_glossary deepl.deepl_get_glossary Read Get details of a specific DeepL glossary by ID. Returns glossary name, source/target languages, entry count, and creation timestamp.
integration__deepl__deepl_create_glossary deepl.deepl_create_glossary Write Create a new DeepL glossary. Glossaries define custom translations for specific terms. Entries are tab-separated pairs (source\ttarget), one per line.
integration__deepl__deepl_get_current_user deepl.deepl_get_current_user Read Get current DeepL account information. Returns usage statistics and account details.

Related DeepL Pages