KosmoKrator

other

Cloudinary MCP Integration for LangGraph

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

6 functions 4 read 2 write Manual OAuth token auth

Connect Cloudinary to LangGraph

Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.

Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with --write=deny so LangGraph can inspect read-capable tools without receiving write access by default.

Cloudinary MCP Config for LangGraph

Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Cloudinary Tools Visible to LangGraph

LangGraph sees stable MCP tool names generated from the Cloudinary integration catalog.

MCP toolSource functionTypeDescription
integration__cloudinary__cloudinary_upload cloudinary.cloudinary_upload Write Upload an image to Cloudinary. Provide a file URL or base64 data URI, an optional public ID, and an optional folder path. Returns the uploaded asset details.
integration__cloudinary__cloudinary_list_resources cloudinary.cloudinary_list_resources Read List media resources in your Cloudinary cloud. Filter by resource type (image, video, raw) and prefix. Supports pagination with max_results and next_cursor.
integration__cloudinary__cloudinary_get_resource cloudinary.cloudinary_get_resource Read Get details of a specific Cloudinary resource by its type and public ID. Returns full asset metadata including dimensions, format, URL, tags, and derived resources.
integration__cloudinary__cloudinary_delete_resource cloudinary.cloudinary_delete_resource Write Delete a media resource from Cloudinary by its type and public ID. This permanently removes the asset and all its derived resources.
integration__cloudinary__cloudinary_list_folders cloudinary.cloudinary_list_folders Read List all folders in your Cloudinary cloud. Returns folder names and paths with pagination support.
integration__cloudinary__cloudinary_get_current_user cloudinary.cloudinary_get_current_user Read Get the currently authenticated Cloudinary user profile. Returns user name, email, and account details. Use this to verify that credentials are working.

Related Cloudinary Pages