other
Cloudinary MCP Integration for LangChain
Connect Cloudinary to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Cloudinary 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.
Cloudinary MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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
Expose only Cloudinary instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Cloudinary Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Cloudinary integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
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. |