FoxyLab

Developers / MCP

Let your agent make videos and banners

FoxyLab runs a remote MCP server. Connect your agent, and it can make a video or a banner set from an ask or a site, follow each stage, give notes and take the files.

Serverhttps://api.foxylab.ai/mcp/
  1. 1

    Your agent

    Claude Code, Claude Desktop, Cursor or your own

  2. 2

    api.foxylab.ai

    Streamable HTTP, an API key in a header

  3. 3

    The studio

    The seven stages, then your files

Transport
Streamable HTTP
Sign-in
An API key in the Authorization header
Tools
6 tools
Usage
The same usage limit as the studio. See Pricing

Authorization

Make a key on the API keys page. Your agent sends it in every request as Authorization: Bearer <key>. It is the same key as for the API, with the same videos, banners and usage limit as your team in the studio.

Claude Code

Run the command in a terminal. Put your key in place of <key>. Then ask Claude Code for a video, and it uses the FoxyLab tools.

Terminal
claude mcp add --transport http foxylab https://api.foxylab.ai/mcp/ --header "Authorization: Bearer <key>"

Claude Desktop

Claude Desktop connects to the server through mcp-remote, which needs Node.js on your computer.

  1. 1Open Settings, then Developer, then Edit Config.
  2. 2Add the foxylab server to claude_desktop_config.json. Put your key in place of <key>.
  3. 3Quit Claude Desktop and open it again.
claude_desktop_config.json
{
  "mcpServers": {
    "foxylab": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.foxylab.ai/mcp/",
        "--header",
        "Authorization:${FOXYLAB_AUTH}"
      ],
      "env": { "FOXYLAB_AUTH": "Bearer <key>" }
    }
  }
}

Cursor

Add the server to ~/.cursor/mcp.json for all projects, or to .cursor/mcp.json for one project. Put your key in place of <key>.

~/.cursor/mcp.json
{
  "mcpServers": {
    "foxylab": {
      "url": "https://api.foxylab.ai/mcp/",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}

Other clients

Any client that speaks Streamable HTTP can connect. Most clients read a config like this one. The key names can be different in your client, so check its docs.

URL
https://api.foxylab.ai/mcp/
Transport
Streamable HTTP
Header
Authorization: Bearer <key>
mcp.json
{
  "mcpServers": {
    "foxylab": {
      "type": "http",
      "url": "https://api.foxylab.ai/mcp/",
      "headers": { "Authorization": "Bearer <key>" }
    }
  }
}

Tools

The server has 6 tools. Each tool needs one scope. The agent sees the same names and inputs as here.

create_film

scope films:write

Starts a new film from a one-line ask, a site or both: a video, or a banner set when `type` is `banners`.

Input

promptstring
The ask in plain words, for example a one-line brief. Send prompt, url or both.
urlstring
A site for the studio to read. It takes the product, the colours, the fonts and the tone from it.
typestring
What to make: video, the default, or banners: still pictures of one idea in several sizes, with no voice and no music.
formatsstring[]
The sizes to make. A video: 9:16, 4:5, 1:1, 16:9; the default is 9:16. Banners: 1x1, 4x5, 9x16, 1.91x1, 300x250, 728x90 and more, or your own WxH in pixels; the default is the first four.
languagesstring[]
Up to 5 languages at once, for example ["English", "Ukrainian"]. Each language is a film of its own with its own id; the first is the main one. The default is ["English"].
voicestring
A voice name such as sulafat, a few words such as warm, slow, or none for music only. Without it, the studio picks a voice for the brand.
voice_modestring
Where the voice speaks. auto, the default: the studio decides whether a narrator helps this film, and where. parts: it stops where the picture and the music say more. full: every shot is spoken. none: no narrator.
musicstring
auto, the default: the studio decides whether the film needs a music bed. On Pro and Max it is written for the film; on Starter and Free it is picked from free libraries. on: always a bed. off: no music. A CC BY track comes with a credit line for the post; renders return it.
music_levelstring
How far the music sits under the voice: low, normal (the default) or high. The voice always stays at least 15 dB above it.

Returns The film id, the status and the stage it is in.

get_film

scope films:read

Gets the film, its current version and the status of each stage.

Input

idstringrequired
The film, for example film_8Kq2xV.

Returns The title, the status, the seven stages and the time left.

add_note

scope films:write

Gives the film a note in plain words and makes a new version.

Input

idstringrequired
The film, for example film_8Kq2xV.
textstringrequired
The note in plain words, as you write it in the studio chat.
refsobject[]
Points the note at a part of the film: { "shot": "s3" }, { "time": 14.7 } in seconds, or { "format": "16:9" }.

Returns The new version number and the stages that run again.

list_films

scope films:read

Lists the films of your team, the newest first.

Input

statusstring
Only films with this status: working, ready or failed.
limitinteger
How many films to return, from 1 to 100. The default is 20.

Returns The id, the title, the status and the version of each film.

get_renders

scope films:read

Gets the files of a film for each format and file type.

Input

idstringrequired
The film, for example film_8Kq2xV.
versioninteger
A version of the film. The default is the current version.
formatstring
Only this size, for example 16:9 or 300x250.
typestring
Only this file type: mp4, mov, webm or gif for a video; png, jpg or zip for banners.

Returns Links to download, good for 24 hours.

restore_version

scope films:write

Brings back an earlier version as the current one, at once and with nothing spent.

Input

idstringrequired
The film, for example film_8Kq2xV.
versionintegerrequired
The version to bring back. It becomes the current version again, and the next note starts from it. Every other version stays.

Returns The version that is current now.

Agent example

One run, from the first ask to the files. The agent makes the film, waits for it, takes a note from you and brings back the files of the new version.

  1. You

    Make a launch ad for Mossly from example.com. Vertical and wide, with a warm voice.

  2. Agent

    I will start the film from your site.

  3. callscreate_film

    {
      "url": "https://example.com",
      "formats": ["9:16", "16:9"],
      "voice": "warm"
    }

    film_8Kq2xV · working · brief

  4. callsget_film

    {
      "id": "film_8Kq2xV"
    }

    ready · The Diva · 19 s · version 1

  5. Agent

    The film is ready. “The Diva”, 19 seconds: a peace lily faints on stage until Mossly reads her in one photo. Do you want a change?

  6. You

    Shot 3 is too fast. Slow the voice there and keep the offer on screen longer.

  7. callsadd_note

    {
      "id": "film_8Kq2xV",
      "text": "Slow the voice in shot 3. Keep the offer on screen 1 s longer.",
      "refs": [
        { "shot": "s3" },
        { "time": 14.7 }
      ]
    }

    version 2 · working · voice, shots, review, render

  8. callsget_film

    {
      "id": "film_8Kq2xV"
    }

    ready · version 2

  9. callsget_renders

    {
      "id": "film_8Kq2xV",
      "version": 2
    }

    9:16 mp4 · 16:9 mp4 · links for 24 h

  10. Agent

    Version 2 is ready. Here are the 9:16 and the 16:9 files. Version 1 is kept if you want it back.

Security

An agent with a key can make videos and banners and spend your usage limit. Give it only what it needs.

Scopes

films:read
Read films, stages, versions and renders.
films:write
Make films, give notes and restore versions. Uses the usage limit.
  • One key for each agent

    Make a key for each agent or system and give it a name. Then you can stop one without the others.

  • Revoke at once

    Revoke a key on the API keys page. The next call with it gets 401.

  • Keep keys secret

    Keep keys in a secret manager or an environment variable. Do not put a key in a repository, a prompt or a shared config.

  • One usage limit

    Tool calls draw on the usage limit of your plan, the same as the studio and the API.

NextCall the API from your codeThe same videos and banners over plain HTTP, with webhooks for every stage.