Magi-2 MCP server

Magi-2 MCP Server for Claude, Cursor and More

Connect Magi-2 to your AI assistant with one MCP server. Ask in plain words, and the assistant quotes the price, starts a 1080p clip with sound and brings back the link, with Seedance, Kling, Wan and the image models on the same key.

  • 7tools for your AI assistant
  • 1080pMagi-2 video with native sound
  • 30 slongest Magi-2 clip
  • 1 keyfor both MCP and the REST API

What you can do with the Magi-2 MCP server

MCP, the Model Context Protocol, is the open standard that lets an AI assistant use outside tools. The Magi-2 MCP server turns video and image generation into a set of tools that Claude, Cursor, VS Code and other clients can call during a conversation.

You keep working in the chat. The assistant reads your idea, picks the settings, asks the server for a price and starts the generation when you agree.

Describe it, get a clip

Ask for a Magi-2 video in plain words. The assistant chooses the mode, the length and the ratio, starts the generation and returns the link when it is ready.

Compare before you spend

Ask what the same clip would cost on Magi-2, Seedance, Kling or Wan. Quotes are free and need no key, so the assistant can compare models for you first.

Images and video together

Make a still with an image model, then use it as the first frame or a reference for a Magi-2 clip, all in one conversation.

A step in your agent

The server speaks standard MCP, so agents and automation tools can call Magi-2 as one step, with a spending limit on every request.

Set up the Magi-2 MCP server in three steps

The server address is https://magi2ai.ai/mcp. Pick your tool, paste its setting, and replace mg2_YOUR_KEY with your own key.

  1. 1

    Create an API key

    Open your dashboard, choose the API tab and create a key. It starts with mg2_.

  2. 2

    Add the server

    Paste the setting for your tool below. The server address is https://magi2ai.ai/mcp and the key goes in the Authorization header.

  3. 3

    Ask for a video

    Describe the clip in the chat. The assistant quotes the price, starts the generation and brings back the link when it is ready.

Terminal
claude mcp add --transport http magi2 https://magi2ai.ai/mcp \
  --header "Authorization: Bearer mg2_YOUR_KEY"

Claude Desktop connects through the mcp-remote helper, which needs Node.js. The other tools connect to the address directly. Manus and Doubao add it from a settings screen instead of a file, and the OpenAI API tab is for calling GPT models from your own code.

It also works with Windsurf, Cline and any other client that can add a remote MCP server with a header for the key. The OpenAI Codex setup is shared by the Codex CLI, the Codex IDE extension and the ChatGPT desktop app.

The Magi-2 MCP tools

What your assistant can do

ToolWhat it does
list_modelsLists every video and image model with its limits and its price per second or per image. No key needed.
get_price_quoteReturns the exact price of a request before anything is started. Free, and no key needed.
get_balanceShows the prepaid API balance.
generate_videoStarts a video with Magi-2 or another model from a prompt, first and last frames or references. Charged to the balance.
generate_imageStarts an image with any image model, with optional reference images. Charged to the balance.
get_generationChecks a generation and, when asked to wait, holds until it is done and returns the link.
list_generationsLists the most recent generations with their status and links.

Try it in the chat

Make a 6-second Magi-2 video of a lighthouse at dusk with waves and gulls, in 16:9. Tell me the price first.

You stay in control of the spending

Generating spends real money from your balance, at the same price as a REST request. Each tool that spends says so to your assistant, and a request can carry a spending limit (max_price_usd). Listing models and quoting a price are free. Revoke the key in your dashboard to cut a tool off at any time.

https://magi2ai.ai/mcp

How the Magi-2 MCP server works

The server is a thin layer over the same Magi-2 API that apps use. Whatever a REST request can do, a tool can do, and the results show up in the API history of your dashboard.

Same key, same balance

The server uses your mg2_ API key and your prepaid API balance. There is no separate plan and no extra charge for using MCP.

Nothing to run yourself

The server is hosted for you and answers over Streamable HTTP. Tool results come back as text and as structured data, so any client can read them.

Safe by default

A failed generation goes back to your balance once. A repeated request can carry an idempotency key so it is never charged twice, and every request can set a maximum price.

Magi-2 MCP FAQ

What is the Magi-2 MCP server?

It is a hosted server at https://magi2ai.ai/mcp that lets an AI assistant use Magi-2. The assistant can list models, quote a price, start a video or an image, and fetch the finished file, all through the Model Context Protocol.

Can I use Magi-2 from Claude, Cursor or other AI tools?

Yes. The Magi-2 API includes an MCP server at https://magi2ai.ai/mcp. Add it to Claude Code, Claude Desktop, Cursor, VS Code, OpenAI Codex, the OpenAI API, Manus, Doubao or any MCP client with your API key, and the assistant can quote, generate and fetch videos and images for you.

Does it work with Claude.ai or ChatGPT in the browser?

Not yet. Those connectors ask for an OAuth sign-in, and this server uses an API key sent in a header. Use Claude Code, Claude Desktop, Cursor, VS Code, OpenAI Codex, the OpenAI API, Manus, Doubao, Windsurf, Cline or another client that lets you set a header.

Does the MCP server cost extra?

No. It uses the same API key, the same prepaid balance and the same price per second as the REST API. Listing models and quoting a price are free and need no key.

Do I need an API key to try it?

Listing models and asking for a price quote work without a key. Starting a generation, reading your balance and listing your generations need a key and some API balance.

Is it safe to let an AI assistant spend my balance?

You decide how much freedom to give it. Each tool that spends says so, a request can carry a maximum price, and most clients ask you to approve a tool call. You can also revoke the key at any time from your dashboard.

What happens if a generation fails?

The amount goes back to your API balance once, and the assistant sees the failed status when it checks the generation. A repeated request with the same idempotency key is never charged twice.

Give your AI assistant a video model

Create a key, add the Magi-2 MCP server to your tool, and ask for your first clip. Magi-2 makes 4 to 30 seconds of 1080p video with sound, and the same key runs Seedance, Kling, Wan and the image models.