# Direct Hailuo AI video shots from Claude, ChatGPT or Cursor

> The minimax-h4.net MCP server lets your assistant render a shot (subject, camera move, light and sound, or your own frames), check on the take and hand you the MP4, all with your minimax-h4.net credits and the same rules as the website.

Server URL (Streamable HTTP): `https://minimax-h4.net/mcp`

## Add it to your client

### Claude

Claude (web or desktop): Settings → Connectors → Add custom connector. Call it minimax-h4.net, paste the server URL, press Connect, then approve.

```
https://minimax-h4.net/mcp
```

### Claude Code

Run this in a terminal, then type /mcp inside Claude Code and pick the server to sign in.

```
claude mcp add --transport http minimax-h4-net https://minimax-h4.net/mcp
```

### ChatGPT

In ChatGPT open Settings → Apps & Connectors → Advanced and turn on developer mode, then Create a connector with this URL and OAuth authentication.

```
https://minimax-h4.net/mcp
```

### Codex

Add the block to ~/.codex/config.toml, then run codex mcp login minimax-h4-net to sign in.

```
[mcp_servers.minimax-h4-net]
url = "https://minimax-h4.net/mcp"
```

### Cursor

Add the server to ~/.cursor/mcp.json (or Settings → MCP → Add new server). Cursor shows a Login button for it.

```
{
  "mcpServers": {
    "minimax-h4-net": {
      "url": "https://minimax-h4.net/mcp"
    }
  }
}
```

### VS Code

Save as .vscode/mcp.json in your workspace (or run MCP: Add Server). VS Code asks you to sign in on the first tool call.

```
{
  "servers": {
    "minimax-h4-net": {
      "type": "http",
      "url": "https://minimax-h4.net/mcp"
    }
  }
}
```

### Windsurf

Add it to ~/.codeium/windsurf/mcp_config.json and refresh the MCP panel in Cascade.

```
{
  "mcpServers": {
    "minimax-h4-net": {
      "serverUrl": "https://minimax-h4.net/mcp"
    }
  }
}
```

A minimax-h4.net tab opens in your browser. Sign in, or make a free account, then choose Allow access. The assistant never sees your password, and there is no API key to copy.

## How sign-in works

1. First request: the server answers 401 with a pointer to our OAuth metadata.
2. The client registers (via a Client ID Metadata Document or dynamic registration) and starts a PKCE sign-in.
3. On the minimax-h4.net consent screen you sign in and allow just that client.
4. It receives a token scoped to https://minimax-h4.net/mcp; the token refreshes by itself and you can revoke it whenever you want.

## Scripts and headless agents

API keys aren't offered: each client connects through OAuth. Claude, ChatGPT, Cursor, VS Code, Codex and Windsurf all support it.

## Tools your assistant can call

- `list_options`: Models, resolutions, lengths, camera presets and credit prices.
- `make_video`: A shot from text, frames or references, with a camera preset and sound on MiniMax H3. From 169 credits a take.
- `get_task`: Status and link for one take.
- `list_tasks`: Your latest takes, filterable by status.
- `get_credits`: Remaining balance and plan.

A render takes its credits at the start and returns them if it fails. Prompts pass a safety check before any credits move.

## Troubleshooting

- Stuck on 'needs authentication': remove the server and add it again so the client restarts OAuth.
- 'Not enough credits': check get_credits, then top up on the pricing page. Nothing was charged.
- Take still 'processing': most take a few minutes. Ask the assistant to call get_task again later.
- 401 with a key starting sk_: this site has no API keys. Remove the header and sign in with OAuth.

## Questions and fixes

### Does the MCP server cost extra?

No. Connecting is free; you only spend the credits each take costs, exactly as in the studio.

### What can my assistant make?

Video shots: from text alone on MiniMax H3 (with a camera preset, ambience, an effect and a spoken line), or from a start and end frame or reference images you attach. It quotes the credits first and checks on the take until the MP4 is ready.

### What if a take fails, or I don't have enough credits?

Credits leave your balance when the render begins and return on their own if it fails. Short on credits? The tool tells you and charges nothing.

### Can my assistant use any image?

Only images you own or have permission to use, never children, and no images of real people who have not agreed. Celebrities and public figures are refused, and a person in an image always stays the same person.

### My client keeps asking me to sign in. What do I do?

Delete the server in your client, add it back, and sign in again.

### Where do finished takes go, and how long do they take?

Most takes finish in a few minutes. Finished takes land privately in your Creations, and the assistant receives a direct MP4 link.


---

Source: https://minimax-h4.net/mcp-server · Site index for AI agents: https://minimax-h4.net/llms.txt · Full content: https://minimax-h4.net/llms-full.txt
