Skip to content

Get started

MCP server

Let Claude, Cursor and other AI agents use Frameport: one URL and your API key.

Frameport runs a remote MCP server. An agent connected to it lists the models, prices a request, starts images, videos and clip edits, reads them back and checks the balance, with your API key: the same prices, limits and errors as the API.

POSThttps://frameport.ai/mcpStreamable HTTP, JSON-RPC 2.0. Each request carries Authorization: Bearer <key>; there is no session to open.

Claude Code

claude mcp add --transport http frameport https://frameport.ai/mcp \
  --header "Authorization: Bearer fp_live_..."

Claude Desktop

Claude Desktop starts its servers from a config file: open Settings › Developer › Edit Config, add the server below, then restart Claude. The mcp-remote bridge connects it to the remote server and sends your key.

claude_desktop_config.json
{
  "mcpServers": {
    "frameport": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://frameport.ai/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer fp_live_..."
      }
    }
  }
}

Cursor

In ~/.cursor/mcp.json, or .cursor/mcp.json in a project:

mcp.json
{
  "mcpServers": {
    "frameport": {
      "url": "https://frameport.ai/mcp",
      "headers": {
        "Authorization": "Bearer fp_live_..."
      }
    }
  }
}

Other clients

Any client that speaks Streamable HTTP and can send a header connects with the URL above and Authorization: Bearer <key>. The server keeps no session and opens no event stream: a GET answers 405. A missing or revoked key answers 401.

Tools

ToolWhat it doesLike
list_modelsThe image and video models on sale: id, type, mode (generate from a prompt, or edit a clip), USD prices and the options a request may use. Filter by type or mode, or read one model by id. Free.GET /v1/models
get_quoteThe price of a request before it runs, from the same fields as generate_image, generate_video or edit_video (no prompt needed; seconds for a clip editor), against the balance available. Free: nothing is held or started.POST /v1/generations/quote
generate_imageStarts 1 to 4 images from a prompt and returns the generation, queued, with the price held on the balance. Poll get_generation with its id until it succeeds or fails; a failed image costs nothing. Send an idempotency_key so a retry never runs it twice.POST /v1/images/generations
generate_videoStarts a clip from a prompt, a first frame (and a last), or reference pictures, and returns the generation, queued, with the price held. Clips take one to several minutes: poll get_generation every 10 seconds or so. A failed clip costs nothing. Send an idempotency_key so a retry never runs it twice.POST /v1/videos/generations
edit_videoChanges a clip you send (a public https URL, a video output file_… or an upload upl_…) with a clip editor: replaces its people with the faces sent, or upscales it. Holds the price of the longest clip, brought down to the clip's length once measured. Poll get_generation. Send an idempotency_key so a retry never runs it twice.POST /v1/videos/edits
get_generationOne generation by id, moved forward if it still runs: status, price held and charged, and a download link per finished output (valid about an hour). A finished image comes back as a picture too.GET /v1/generations/{id}
list_generationsThe workspace's generations and edits, newest first, 20 at a time (up to 100): filter by status, type or model, and pass next_cursor for the next page.GET /v1/generations
get_balanceThe workspace's balance in USD: available for new requests, held by running generations, and their total.GET /v1/balance

Spending

  • The tools that start work hold their price on the workspace's balance, like the API: a success is charged, a failure costs nothing.
  • Give each agent a key of its own: its generations show under the key's name in the dashboard, and you can revoke it alone.
  • max_cost_usd on a request caps its price, and get_quote prices it first (Quotes).
  • idempotency_key on a tool that starts work: an agent that retries the call gets the first generation back instead of paying twice (Idempotency).
A key spends money: put it in your client's config on your own machine, never in a shared repository.