Your First AI Image from Cursor: MCP on Kubeez in Minutes
    TutorialsApril 6, 20263 min read

    Your First AI Image from Cursor: MCP on Kubeez in Minutes

    Connect Kubeez as an MCP server in Cursor, authorize once, and call image tools from the chat—no copy-paste between browser and IDE.

    Your First AI Image from Cursor: MCP on Kubeez in Minutes

    Model Context Protocol (MCP) is an open standard for connecting LLM hosts to tools, prompts, and resources. Creative teams use it so Cursor (and similar clients) can call generation APIs the same way the Kubeez dashboard does—without pasting prompts into a browser for every variant. The authoritative overview lives in the Model Context Protocol specification; Kubeez implements an MCP server that exposes media and related tools against your account.

    This walkthrough assumes you want one reliable path: connect Cursor → authorize Kubeez → ask for an image with a structured brief → poll until URLs land on the CDN.

    Editorial illustration: dark IDE window connected by glowing lines to a cloud tools panel and image preview — MCP and creative workflow

    #What you need before you start

    • A Kubeez account with credits for image models (Nano Banana 2 is the default “best value” image tier on the platform—see the in-app model list for current pricing).
    • Cursor (or another MCP-compatible host) with MCP support enabled.
    • Patience for async jobs: MCP tools start generations; you poll status until completed, same as REST.

    #How Kubeez MCP fits the stack

    • Server URL: https://mcp.kubeez.com/mcp (use the exact URL from MCP settings if the product updates it).
    • Auth: OAuth (browser sign-in, recommended for interactive clients) or a personal access token where the host only accepts a static secret—rotate tokens if anything leaks.
    • Tools: Typical flows call get_modelsgenerate_mediaget_generation_status in a loop—mirroring what our REST API does for servers, but conversational for the assistant.

    Docs: MCP overview and Quick start. For REST vs MCP tradeoffs, see Automate AI media: REST API vs MCP.

    Abstract architecture: conversational client on left, MCP server box, Kubeez backend, image URL output on right — no brand logos

    #Step-by-step in Cursor

    1. Add Kubeez as an MCP server using the connection details from MCP settings.
    2. Reload the MCP connection until tools list (e.g. get_models, generate_media, get_generation_status).
    3. In chat, give a structured brief—not just “a nice image”:
    Model: image model id from get_models (e.g. nano-banana-2).
    Prompt: product hero, soft daylight, minimal desk, single object center frame, no readable text.
    Aspect ratio: use the tool’s aspect_ratio parameter (e.g. 16:9 for landscape hero).
    
    1. Let the assistant start generate_media, then poll get_generation_status until outputs include HTTPS URLs on Kubeez CDN.
    2. Download or paste URLs into your design system; do not commit API tokens to git.

    Concept: split view of chat instructions beside stylized image preview panel — IDE-first generation loop

    #Security and hygiene

    • Treat OAuth and PATs like production secrets—revoke from MCP settings if exposed.
    • Truncate prompts to each model’s max chars (get_models returns limits).
    • Prefer Nano Banana 2 for general images; reserve Pro 4K tiers for print-critical or typography-heavy work—see Nano Banana 2 vs Pro 4K.

    #Where to go next


    Summary: MCP lets Cursor orchestrate Kubeez generations with tool calls instead of manual clicks. Connect via https://mcp.kubeez.com/mcp, authenticate with OAuth or a PAT, then run generate_media + get_generation_status until CDN URLs are ready.

    Next steps