HappyHorse MCP Integration Guide
HappyHorse MCP supports text-to-video, first-frame animation, multi-image reference generation, and source video editing. Models are organized by operation, so you can first query the model list and then choose a workflow.
¶ Connecting to the Hosted Service
Add a Streamable HTTP server in a client that supports remote MCP, using the address https://happyhorse.mcp.acedata.cloud/mcp. When using OAuth, choose to sign in to AI 聚合 and confirm authorization in your browser.
| Client | How to connect |
|---|---|
| Claude / Claude Desktop | Add a custom connector under “Customize → Connectors”, enter the hosted address, and sign in. |
| Claude Code | Run claude mcp add --transport http --scope user happyhorse https://happyhorse.mcp.acedata.cloud/mcp, open /mcp in the session, select the server, and complete authorization. |
| Cursor | Create a new HTTP server in MCP settings, enter the hosted address, and sign in when prompted during connection. |
| VS Code | Run MCP: Add Server from the command palette, select HTTP and enter the hosted address, then use MCP: List Servers to confirm the status. |
In Codex CLI, you can run the following commands, then enter /mcp in the session to view the server.
codex mcp add happyhorse --url https://happyhorse.mcp.acedata.cloud/mcp
codex mcp login happyhorse
To use fixed credentials, add the request header Authorization: Bearer <application API Key> in the client's private settings, and confirm that the application is authorized to call the selected API. You can create or copy a key in the console under “Applications → General Applications → Key Management”. Application Console
¶ Using an Application Key in Gemini CLI and OpenCode
First, save the application API Key as the client environment variable ACEDATACLOUD_API_TOKEN. The following commands use macOS or Linux shell quoting.
| Client | How to connect |
|---|---|
| Gemini CLI | Run gemini mcp add --scope user --transport http happyhorse https://happyhorse.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}', and check with gemini mcp list. |
| OpenCode 2.x | Run opencode mcp add happyhorse --global --url https://happyhorse.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_TOKEN}', then run opencode reload and opencode mcp list. |
For OpenCode 1.x, you can set type: "remote", the hosted URL, and oauth: false for this service in the mcp object of your personal opencode.json, and set the Authorization request header to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x Configuration
¶ Local stdio Integration
After installing uv, local clients can start the MCP process using standard input and output, and HappyHorse requests are sent to AI 聚合 by that process.
Claude Desktop users can open the local MCP configuration from developer settings, merge the server entry below, replace the placeholder with the application API Key itself in their personal configuration, and then restart the client. Clients that support private environment variables can also inject ACEDATACLOUD_API_TOKEN from a credential manager.
{
"mcpServers": {
"happyhorse": {
"command": "uvx",
"args": [
"mcp-happyhorse"
],
"env": {
"ACEDATACLOUD_API_TOKEN": "YOUR_API_KEY"
}
}
}
}
¶ Initial Verification
After connecting, say to the assistant: “Please only call happyhorse_list_models and list the models for text-to-video, first-frame animation, reference image generation, and video editing separately.”
¶ Tools and Usage Examples
| Operation | Tools and parameters |
|---|---|
| Text or first frame | happyhorse_generate_video creates from text, and happyhorse_generate_video_from_image uses image_url as the first frame. |
| Multi-image references | happyhorse_generate_video_from_references accepts 1 to 9 reference images in image_urls. |
| Edit an existing video | happyhorse_edit_video accepts the source video_url and modification instructions, with up to 5 optional reference images. |
| Query tasks | Use happyhorse_get_task to query a single task, or happyhorse_get_tasks_batch to query tasks in batches. |
If you want to bring a mountain landscape photo to life, you can ask the assistant to use happyhorse_generate_video_from_image, put the photo URL in image_url, and describe in prompt: “The camera slowly moves toward the mountain peak, and clouds move from left to right.” After receiving the task_id, wait about 15 seconds, then query it with happyhorse_get_task. Continue querying the original task according to the returned progress until you obtain the video link or a terminal error.
For parameter and result formats, please refer to the API documentation. Video Generation and Editing, Task Queries.

