Documentation

What is MCP

MCP (Model Context Protocol) is an open standard that lets AI assistants call external tools in a structured way. When you connect Gunni via MCP, your AI client (Claude Desktop, Cursor, Claude Code) gains the ability to generate images, video, audio, and more directly in conversation. No copy-pasting URLs or switching windows.

Gunni exposes its full toolset through an MCP server hosted at https://api.gunni.ai/mcp. Any MCP-compatible client can connect using HTTP transport with your API key for authentication.

Claude Desktop Setup

Claude Desktop supports adding MCP servers directly from the UI. No config files needed.

1

Open Claude Desktop settings and go to the MCP section.

2

Click Add MCP Server. Name it Gunni.

3

Enter the server URL:

https://api.gunni.ai/mcp
4

Claude will open an authorization page. Sign in with your Gunni account to grant access.

5

After authorizing, you'll be redirected back to Claude Desktop. Gunni tools will appear in the tool picker (the hammer icon).

Cursor Setup

Add the same configuration to your Cursor MCP settings. Open Cursor settings, navigate to the MCP section, and add the Gunni server:

{
  "mcpServers": {
    "gunni": {
      "type": "http",
      "url": "https://api.gunni.ai/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Claude Code Setup

Run this command in your terminal to add Gunni as an MCP server:

claude mcp add --transport http gunni https://api.gunni.ai/mcp

Claude Code will handle authentication via OAuth. You can also add it manually by creating a .mcp.json file in your project root:

{
  "mcpServers": {
    "gunni": {
      "type": "http",
      "url": "https://api.gunni.ai/mcp"
    }
  }
}

OpenClaw Setup

Gunni is available as an AgentSkill on ClawHub, the OpenClaw skill registry.

clawhub install gunni

Set your GUNNI_API_KEY in your OpenClaw environment config or .env file:

GUNNI_API_KEY=your_key_here

After installation, the agent can call Gunni skills through natural conversation. No additional per-call setup required.

Generation Tools

These tools create media and consume credits.

image

Generate, edit, upscale, describe, or remove the background from an image. Auto-routes based on the combination of parameters provided.

NameTypeDefaultDescription
promptstringText prompt for generation or editing. Optional if using upscale, remove_bg, or describe.
imagestring | string[]Input image URL(s). Triggers edit, describe, upscale, or remove_bg mode.
modelstringOverride the default model for this operation.
outputstringOutput file path (CLI) or filename hint (MCP).
widthnumberOutput width in pixels.
heightnumberOutput height in pixels.
seednumberSeed for reproducible results.
upscalebooleanUpscale the input image.
remove_bgbooleanRemove the background from the input image.
scalenumber2Upscale factor. Accepts 2 or 4.
variantsnumber1Number of variants to generate.
stylestringApply a saved visual style by name.
presetstringApply a saved production preset by name.

video

Generate video from a still image or text prompt.

NameTypeDefaultDescription
imagestringInput image URL for image-to-video mode.
promptstringText prompt describing the desired motion or scene.
modelstringOverride the default video model.
outputstringOutput file path or filename hint.
durationnumberVideo duration in seconds (typically 5 or 10).
stylestringApply a saved visual style by name.
presetstringApply a saved production preset by name.

audio

Convert text to natural-sounding speech.

NameTypeDefaultDescription
textstringThe text to synthesize into speech.
modelstringminimax-speechTTS model to use.
outputstringOutput file path or filename hint.
voicestringVoice ID or name (model-dependent).

lipsync

Lip synchronization: sync audio to a video, or animate an image to speak.

NameTypeDefaultDescription
videostringInput video URL for lip sync mode.
imagestringInput image URL for avatar mode.
audiostringAudio URL to sync.
modelstringModel to use (kling-lipsync, kling-avatar, sync-lipsync).
outputstringOutput file path or filename hint.

Knowledge Tools

These tools are free and do not consume credits.

learn

Access the creative knowledge base. Returns guides on prompting, brand design, video production, and more.

NameTypeDefaultDescription
topicstringTopic to learn about (e.g. prompting, brand, video).

models

List available models and their capabilities.

NameTypeDefaultDescription
categorystringFilter by model category (image, video, audio, etc.).
updatesbooleanShow recent model updates and additions.

history

Search your past generations.

NameTypeDefaultDescription
querystringSearch query to filter results.
limitnumber20Maximum number of results to return.

visual_research

Search for reference images and visual inspiration.

NameTypeDefaultDescription
querystringSearch query for visual research.
numnumber6Number of results to return (max 20).

Asset Management Tools

These tools manage your saved assets: reference images, styles, presets, templates, and pipelines. All are free and do not consume credits.

refs

Look up reference images stored in your collections.

NameTypeDefaultDescription
namestringName of a specific reference to retrieve.
collectionstringFilter by collection name.
list_collectionsbooleanList all collections.

ref_save

Save a reference image by URL.

NameTypeDefaultDescription
urlstringURL of the image to save.
namestringName for the reference.
descriptionstringOptional description.
collectionstringCollection to save into.

upload_ref

Upload a local reference image (triggers a signed URL upload flow).

NameTypeDefaultDescription
namestringName for the reference.
descriptionstringOptional description.
collectionstringCollection to save into.

styles

List or retrieve visual styles.

NameTypeDefaultDescription
namestringName of a specific style to retrieve.

style_create

Create a new visual style.

NameTypeDefaultDescription
namestringUnique style identifier.
display_namestringHuman-readable display name.
descriptionstringDescription of the visual direction.
directionstringDetailed creative direction text.
negativestringNegative prompt (things to avoid).
model_prefstringPreferred model for this style.
ref_idsstring[]Reference image IDs to attach.

style_delete

Delete a visual style.

NameTypeDefaultDescription
namestringName of the style to delete.

presets

List or retrieve production presets.

NameTypeDefaultDescription
namestringName of a specific preset.
platformstringFilter by platform (instagram, tiktok, web, etc.).

preset_create

Create a production preset.

NameTypeDefaultDescription
namestringUnique preset identifier.
display_namestringHuman-readable display name.
platformstringTarget platform.
aspect_ratiostringOutput aspect ratio (e.g. 1:1, 16:9, 9:16).
framing_rulesstringFraming and composition rules.
prompt_suffixstringText appended to every prompt.
prompt_avoidstringText to avoid in generations.
voice_refstringVoice reference for audio.
character_refstringCharacter reference image.
style_refstringStyle reference.
model_prefstringPreferred model.
publishedbooleanWhether the preset is publicly visible.

preset_delete

Delete a production preset.

NameTypeDefaultDescription
namestringName of the preset to delete.

templates

List or retrieve prompt templates.

NameTypeDefaultDescription
namestringName of a specific template.
categorystringFilter by category.
toolstringFilter by tool (image, video, audio).

template_save

Create or update a prompt template.

NameTypeDefaultDescription
namestringUnique template identifier.
display_namestringHuman-readable display name.
categorystringTemplate category.
promptstringThe prompt template text (supports variables).
toolstringTarget tool (image, video, audio).
modelstringRecommended model.
variablesstringComma-separated list of template variables.
notesstringUsage notes.
publishedbooleanWhether the template is publicly visible.

template_delete

Delete a prompt template.

NameTypeDefaultDescription
namestringName of the template to delete.

pipelines

List or retrieve multi-step workflows.

NameTypeDefaultDescription
namestringName of a specific pipeline.

pipeline_save

Create or update a multi-step pipeline.

NameTypeDefaultDescription
namestringUnique pipeline identifier.
display_namestringHuman-readable display name.
descriptionstringPipeline description.
presetstringDefault preset to apply.
intakeJSONInput schema definition.
stepsJSONArray of pipeline step definitions.
publishedbooleanWhether the pipeline is publicly visible.

pipeline_delete

Delete a pipeline.

NameTypeDefaultDescription
namestringName of the pipeline to delete.

Image Tool Routing

The image tool automatically selects the right operation based on the combination of parameters you provide. No need to call separate tools for generate, edit, describe, upscale, or background removal.

InputOperationDefault Model
prompt onlyGenerate a new imagenano-banana
image + promptEdit the image using the promptnano-banana-edit
image onlyDescribe the imageflorence-2
image + upscale: trueUpscale the imagetopaz-upscale
image + remove_bg: trueRemove backgroundbria-bg-remove