KosmoKrator

design

Canva MCP Integration for Vercel AI SDK

Connect Canva to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 5 read 2 write Bearer token auth

Connect Canva to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Canva MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

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

Canva Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Canva integration catalog.

MCP toolSource functionTypeDescription
integration__canva__canva_list_designs canva.canva_list_designs Read List designs the user has access to in Canva. Supports filtering by search query and design type. Returns design titles and IDs that can be used with canva_get_design.
integration__canva__canva_get_design canva.canva_get_design Read Get details of a specific Canva design by its ID, including title, type, dimensions, and URLs.
integration__canva__canva_create_design canva.canva_create_design Write Create a new design in Canva. Specify a title and optionally a type (e.g., "presentation", "poster") and dimensions (width/height in pixels).
integration__canva__canva_list_folders canva.canva_list_folders Read List folders the user has access to in Canva. Returns folder names and IDs that can be used with canva_get_folder.
integration__canva__canva_get_folder canva.canva_get_folder Read Get details of a specific Canva folder by its ID, including name and contained items.
integration__canva__canva_upload_asset canva.canva_upload_asset Write Upload an asset to Canva from a URL. The file is imported into the user's Canva account and can optionally be placed in a specific folder.
integration__canva__canva_get_current_user canva.canva_get_current_user Read Get the authenticated Canva user's profile information, including display name and user ID.

Related Canva Pages