Dokumentation

AI Video Maker MCP server

Quote, generate, track and cancel videos from Claude, ChatGPT, Cursor, Codex and other MCP clients.

Server URL

https://aivideomaker.ai/api/mcp

The server uses the MCP Streamable HTTP transport and supports the 2026-07-28 protocol revision and earlier 2025 revisions. It works on your signed-in AI Video Maker account and spends the same API credits as the REST API. One credit is USD $0.01.

How sign-in works

When you add the server, your MCP client opens an AI Video Maker page in your browser. Sign in, check the app name and the address you will return to, and approve. The client never sees your password or an API key.

  • Each approved app gets its own API key, named after the app (for example MCP: Claude), in API key settings. Set a daily credit limit or a requests-per-minute limit there, or delete the key to disconnect the app at once.
  • Signing in again from the same app installation reuses its key, so its limits stay in place. A different app, or a reinstalled one, gets a new key.
  • If this is the first API key on your account, it comes with 50 introductory credits once.
  • Connecting spends no credits. Only generate_video does.

Claude

  1. In Claude, open Customize → Connectors, select + Add, then Add custom connector.
  2. Enter AI Video Maker as the name and https://aivideomaker.ai/api/mcp as the URL, then continue.
  3. Keep Use Claude's published identity (or Register automatically) as the OAuth client, choose Sign in now, and approve on the AI Video Maker page.
  4. In a chat, enable the connector from the + menu under Connectors.

On Team and Enterprise plans an Owner adds the connector under Organization settings → Connectors, and members then select Connect.

Claude Code

claude mcp add --transport http ai-video-maker https://aivideomaker.ai/api/mcp

Then run /mcp inside Claude Code and follow the browser sign-in. Add --scope user to make the server available in every project.

Cursor

Add the server to ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "ai-video-maker": {
      "url": "https://aivideomaker.ai/api/mcp"
    }
  }
}

Cursor starts the browser sign-in when it first connects.

ChatGPT

  1. Open ChatGPT plugins, select +, then Add custom MCP server.
  2. Enter a name, and https://aivideomaker.ai/api/mcp as the server URL.
  3. Choose OAuth authentication, confirm, and approve on the AI Video Maker page.

Whether you can add a custom MCP server depends on your ChatGPT plan and workspace settings.

Codex

Add the server to ~/.codex/config.toml:

[mcp_servers.ai-video-maker]
url = "https://aivideomaker.ai/api/mcp"

Then sign in:

codex mcp login ai-video-maker

Using an API key instead of sign-in

Clients that cannot run a browser sign-in can send an existing API key as a bearer token. Keep the key in an environment variable or a secret store, never in chat.

claude mcp add --transport http ai-video-maker https://aivideomaker.ai/api/mcp \
  --header "Authorization: Bearer $AIVIDEO_API_KEY"

For Cursor, add "headers": { "Authorization": "Bearer ${env:AIVIDEO_API_KEY}" } next to url.

Tools

  • get_account: balance, this connection's limits and supported models. Free.
  • list_models: models with durations, resolutions, aspect ratios and price per second. Free.
  • quote_video: exact price of a request, current balance and whether it is affordable. Free.
  • generate_video: starts a video and returns its task id at once. Charges the quoted price.
  • get_video_task: status, charge, refund and, when complete, the video URL. Free.
  • list_video_tasks: recent tasks created through this connection. Free.
  • cancel_video_task: cancels a task that is still SUBMITTED and refunds it in full.

Models are minimax (MiniMax H3), seedance20 (Seedance 2.0), wan30 (Wan 3.0) and happyhorse (HappyHorse 1.1). Request fields are the same as the REST API; see the MiniMax H3 contract.

Spending safely

  • quote_video is free and returns the exact charge, so the price can be shown before anything is spent.
  • generate_video requires maxCredits, the most you approved for that video. If the price is higher, nothing is charged and the call returns BUDGET_EXCEEDED.
  • generate_video also requires an idempotencyKey (8–128 letters, digits, ., _, : or -). Retrying with the same key and the same request returns the original task instead of charging again.
  • Generation is asynchronous. generate_video returns SUBMITTED; follow the task with get_video_task. Output files are kept for 24 hours, so save the video promptly.
  • When the balance is too low, quote_video and generate_video return topUpUrl, the page for adding API credits. Nothing is charged.

Errors

Tool failures return errorCode with a readable message:

  • INSUFFICIENT_CREDITS: the balance cannot cover the video. Includes topUpUrl.
  • BUDGET_EXCEEDED: the price is above maxCredits, or the key's daily limit is reached.
  • RATE_LIMITED: the key's generation requests-per-minute limit is reached.
  • IDEMPOTENCY_CONFLICT: the idempotency key was already used for a different request.
  • CONTENT_REJECTED: the prompt or media was rejected by content checks.
  • INVALID_PAYLOAD: a field is missing or has an unsupported value.
  • TASK_NOT_FOUND: no task with this id belongs to this connection.
  • TASK_NOT_CANCELLABLE: the task is no longer SUBMITTED.
  • SERVICE_UNAVAILABLE: a temporary server problem; nothing was charged by that call. Retry shortly.

Tasks are visible only to the connection that created them. A task created with the REST API or another app's connection is not visible here.

Disconnecting

Delete or disable the app's key in API key settings. The app loses access immediately, including any refresh of its sign-in.

Resetting the key does not disconnect the app. The app signs in with its own tokens and never sees the key's secret, so a reset only replaces a secret it does not use.

For client developers

  • OAuth 2.1 authorization code flow with PKCE (S256). Discovery: https://aivideomaker.ai/.well-known/oauth-protected-resource/api/mcp and https://aivideomaker.ai/.well-known/oauth-authorization-server.
  • Client registration by Client ID Metadata Document or dynamic client registration. Redirect URIs must be HTTPS, loopback HTTP, or a private-use scheme.
  • Send resource=https://aivideomaker.ai/api/mcp. Access tokens last one hour; refresh tokens rotate and last 30 days.
  • The single scope is api.