KosmoKrator

productivity

Kamatera MCP Integration for LangChain

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

7 functions 6 read 1 write Bearer token auth

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

Kamatera MCP Config for LangChain

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Kamatera Tools Visible to LangChain

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

MCP toolSource functionTypeDescription
integration__kamatera__kamatera_list_servers kamatera.kamatera_list_servers Read List all cloud servers in the Kamatera account. Returns IDs, names, status, and configuration details.
integration__kamatera__kamatera_get_server kamatera.kamatera_get_server Read Get details for a specific Kamatera cloud server by ID. Returns full server information including status, CPU, RAM, disk, and IP addresses.
integration__kamatera__kamatera_create_server kamatera.kamatera_create_server Write Create a new cloud server in Kamatera. Requires a name, datacenter, image, CPU count, RAM, and disk size.
integration__kamatera__kamatera_list_networks kamatera.kamatera_list_networks Read List all networks in the Kamatera account. Returns network IDs, names, datacenter, and CIDR details.
integration__kamatera__kamatera_list_images kamatera.kamatera_list_images Read List all available images for server creation in Kamatera. Returns image IDs, names, OS type, and sizes.
integration__kamatera__kamatera_list_datacenters kamatera.kamatera_list_datacenters Read List all available Kamatera datacenter locations. Returns datacenter IDs, names, city, and country.
integration__kamatera__kamatera_get_current_user kamatera.kamatera_get_current_user Read Get information about the current authenticated Kamatera account, including email, name, and account details.

Related Kamatera Pages