Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here
hailuo-mcp logo

hailuo-mcp

runapi-ai/hailuo-mcp
0 starsv0.1.0STDIORegistry activeApache-2.0Updated 2026-06-24Community

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

claude mcp add hailuo -- npx -y @runapi.ai/hailuo-mcp

Summary

RunAPI MCP server for the Hailuo model line. Create tasks, poll their status, and check pricing through a single RunAPI API key.

Connect from your MCP client

One-click install

Add this server to your editor with a single click. Fill in any required credentials afterward.

Claude Code

Run this once and Claude Code registers the server for you:

claude mcp add hailuo -- npx -y @runapi.ai/hailuo-mcp

Claude Desktop

Add this to claude_desktop_config.json under Settings → Developer → Edit Config:

{
  "mcpServers": {
    "hailuo": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/hailuo-mcp"
      ],
      "env": {
        "RUNAPI_API_KEY": "<RUNAPI_API_KEY>"
      }
    }
  }
}

Cursor

Add this to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "hailuo": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/hailuo-mcp"
      ],
      "env": {
        "RUNAPI_API_KEY": "<RUNAPI_API_KEY>"
      }
    }
  }
}

Cline and other MCP clients

Most MCP clients accept the standard mcpServers JSON block:

{
  "mcpServers": {
    "hailuo": {
      "command": "npx",
      "args": [
        "-y",
        "@runapi.ai/hailuo-mcp"
      ],
      "env": {
        "RUNAPI_API_KEY": "<RUNAPI_API_KEY>"
      }
    }
  }
}

Codex CLI

Register the server with OpenAI's Codex CLI — run this once, or add the equivalent block to ~/.codex/config.toml:

codex mcp add hailuo --env RUNAPI_API_KEY=<RUNAPI_API_KEY> -- npx -y @runapi.ai/hailuo-mcp

# or add to ~/.codex/config.toml:
[mcp_servers.hailuo]
command = "npx"
args = ["-y", "@runapi.ai/hailuo-mcp"]
[mcp_servers.hailuo.env]
RUNAPI_API_KEY = "<RUNAPI_API_KEY>"

OpenClaw

OpenClaw reads MCP servers from the mcp.servers section of ~/.openclaw/openclaw.json (managed via `openclaw mcp add` or the mcporter skill):

{
  "mcp": {
    "servers": {
      "hailuo": {
        "command": "npx",
        "args": [
          "-y",
          "@runapi.ai/hailuo-mcp"
        ],
        "env": {
          "RUNAPI_API_KEY": "<RUNAPI_API_KEY>"
        }
      }
    }
  }
}

Replace the <PLACEHOLDER> values with your own credentials — see the configuration table below.

Configuration

hailuo-mcp reads the following environment variable:

VariableRequired
RUNAPI_API_KEYRequired

README.md

<h1 align="center">RunAPI Hailuo MCP Server</h1>

<p align="center"> <strong>Hailuo API access for AI agents: run video generation operations, poll asynchronous results, and check pricing through one focused MCP server.</strong> </p>

<p align="center"> <sub>Works with Claude Code, Codex, Cursor, Windsurf, VS Code, Roo Code, and any MCP-compatible host.</sub> </p>

<p align="center"> <a href="https://www.npmjs.com/package/@runapi.ai/hailuo-mcp"><img src="https://img.shields.io/npm/v/%40runapi.ai/hailuo-mcp?style=flat-square&color=blue" alt="npm version"></a> <a href="https://github.com/runapi-ai/hailuo-mcp"><img src="https://img.shields.io/badge/GitHub-runapi--ai%2Fhailuo--mcp-24292f?style=flat-square" alt="GitHub repository"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square" alt="Apache-2.0 license"></a> <img src="https://img.shields.io/badge/Type-MCP_Server-blue?style=flat-square" alt="MCP Server"> <img src="https://img.shields.io/badge/Models-6-16a34a?style=flat-square" alt="6 models"> </p>

<p align="center"> <a href="#install">Install</a> | <a href="#tools">Tools</a> | <a href="#models">Models</a> | <a href="#agent-prompts">Agent Prompts</a> | <a href="#configuration">Configuration</a> | <a href="#links">Links</a> </p>

---

Why This Package?

@runapi.ai/hailuo-mcp is a focused Model Context Protocol server for the Hailuo model line on RunAPI. It gives MCP-compatible assistants direct access to 2 endpoints and 6 model variants without loading the full RunAPI catalog.

Use this per-model server when an agent should stay scoped to Hailuo. Use @runapi.ai/mcp when one assistant should discover every RunAPI model line.

---

Install

Add it to Claude Code:

claude mcp add hailuo -s user -- npx -y @runapi.ai/hailuo-mcp

Use project scope when the server should be shared with a repository:

claude mcp add hailuo -s project -- npx -y @runapi.ai/hailuo-mcp

Codex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts can use the same stdio command:

{
  "mcpServers": {
    "hailuo": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/hailuo-mcp"]
    }
  }
}

check_pricing works before sign-in. For task creation and status polling, ask your assistant to call the login tool. It opens a browser login and saves credentials to ~/.config/runapi/config.json, the same file used by runapi login. Headless and CI hosts can still set RUNAPI_API_KEY before starting the MCP host.

Ready-made examples are in examples/ for Claude, Cursor, Windsurf, VS Code, and Roo Code.

---

Tools

| Tool | Auth | Purpose | |---|---|---| | image_to_video | Yes | Create a Hailuo image to video task and optionally wait for a terminal status. Returns the task id, status, and output URLs. | | text_to_video | Yes | Create a Hailuo text to video task and optionally wait for a terminal status. Returns the task id, status, and output URLs. | | get_task | Yes | Fetch the current status and latest payload for an existing task. | | check_pricing | No | Look up current pricing for a Hailuo model and endpoint. |

---

Models

Hailuo covers 6 model variants across 2 endpoints. Each tool accepts the models listed for it:

| Tool | Models | |---|---| | image_to_video | hailuo-02-image-to-video-pro, hailuo-02-image-to-video-standard, hailuo-2.3-image-to-video-pro, hailuo-2.3-image-to-video-standard | | text_to_video | hailuo-02-text-to-video-pro, hailuo-02-text-to-video-standard |

Model availability can change between releases. Use check_pricing or the Hailuo model page for the current catalog view.

---

Agent Prompts

Ask your assistant in natural language; it can inspect pricing, create the task, and return the task id plus output URLs.

Create a task

Run a Hailuo image to video task with RunAPI.

The assistant can call check_pricing, then image_to_video, and return the task id, status, and output URLs.

Submit without waiting

Create the task but don't wait for it to finish.

The assistant calls the create tool with wait: false and returns the task id. Check on it later with get_task.

Check pricing before creating

Check current Hailuo pricing, then create the task if it matches my request.

The assistant calls check_pricing and can link to the Hailuo model page for the canonical catalog entry.

---

Configuration

The server resolves auth in this order:

  1. RUNAPI_API_KEY environment variable, useful for headless and CI hosts
  2. ~/.config/runapi/config.json, created by the MCP login tool or runapi login
  3. No key, which still allows check_pricing

The config file is normally managed by login. A pre-provisioned headless config can use:

{
  "apiKey": "your_runapi_key"
}

Do not commit real API keys.

---

Links

| Resource | URL | |---|---| | Hailuo model page | https://runapi.ai/models/hailuo | | npm package | @runapi.ai/hailuo-mcp | | GitHub repository | runapi-ai/hailuo-mcp | | RunAPI MCP overview | runapi.ai/mcp | | RunAPI docs | runapi.ai/docs |

---

License

Licensed under the Apache License, Version 2.0.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Productivity servers.