KosmoKrator

productivity

Cloudways MCP Integration for LangChain

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

7 functions 7 read 0 write Bearer token auth

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

Cloudways MCP Config for LangChain

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Cloudways Tools Visible to LangChain

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

MCP toolSource functionTypeDescription
integration__cloudways__cloudways_list_servers cloudways.cloudways_list_servers Read List all servers in the Cloudways account.
integration__cloudways__cloudways_get_server cloudways.cloudways_get_server Read Get details for a specific Cloudways server.
integration__cloudways__cloudways_list_apps cloudways.cloudways_list_apps Read List all applications across all servers in the Cloudways account.
integration__cloudways__cloudways_get_app cloudways.cloudways_get_app Read Get details for a specific Cloudways application.
integration__cloudways__cloudways_list_domains cloudways.cloudways_list_domains Read List domains for a specific Cloudways application.
integration__cloudways__cloudways_list_projects cloudways.cloudways_list_projects Read List all projects in the Cloudways account.
integration__cloudways__cloudways_get_current_user cloudways.cloudways_get_current_user Read Get the current authenticated Cloudways account information.

Related Cloudways Pages