Skip to main content
Glama

Why This Package?

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

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


Related MCP server: GPT Image MCP Server

Install

Add it to Claude Code:

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

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

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

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

{
  "mcpServers": {
    "happyhorse": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/happyhorse-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

edit_video

Yes

Create a HappyHorse edit video task and optionally wait for a terminal status. Returns the task id, status, and output URLs.

image_to_video

Yes

Create a HappyHorse 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 HappyHorse 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 HappyHorse model and endpoint.


Models

HappyHorse covers 7 model variants across 3 endpoints. Each tool accepts the models listed for it:

Tool

Models

edit_video

happyhorse-edit-video

image_to_video

happyhorse-1.0-i2v, happyhorse-image-to-video

text_to_video

happyhorse-1.0-r2v, happyhorse-1.0-t2v, happyhorse-character, happyhorse-text-to-video

Model availability can change between releases. Use check_pricing or the HappyHorse 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 HappyHorse edit video task with RunAPI.

The assistant can call check_pricing, then edit_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 HappyHorse pricing, then create the task if it matches my request.

The assistant calls check_pricing and can link to the HappyHorse 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.


Resource

URL

HappyHorse model page

https://runapi.ai/models/happyhorse

npm package

@runapi.ai/happyhorse-mcp

GitHub repository

runapi-ai/happyhorse-mcp

RunAPI MCP overview

runapi.ai/mcp

RunAPI docs

runapi.ai/docs


License

Licensed under the Apache License, Version 2.0.

Available Tools

6 tools
check_pricingA

Look up RunAPI pricing for the happyhorse model line.

ParametersJSON Schema
NameRequiredDescriptionDefault
modelNoModel slug. Defaults to the line's primary model.
actionNoEndpoint name. Defaults to the endpoint that offers the model.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are present, so the description carries the full burden of behavioral disclosure. It does not explicitly state that the operation is read-only, nor does it mention response format or error behavior. While 'look up' suggests a safe read, the description lacks deeper context that could be expected from a tool with no annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that gets straight to the point. It is front-loaded with the verb and resource, and every word earns its place. No redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple pricing lookup with two optional parameters and no output schema, the description is largely sufficient. It could be improved by indicating the type of response (e.g., a list of prices), but it is not critical given the tool's simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both parameters (model and action) clearly described in the schema. The description adds no additional parameter information, so it meets the baseline for high schema coverage without extra value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('look up') and resource ('RunAPI pricing') with a clear scope ('happyhorse model line'). It unambiguously distinguishes this tool from sibling generation/editing tools like edit_video and image_to_video.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies usage for retrieving pricing information, providing enough context for when to use it. It does not explicitly state exclusions or mention alternatives, but the purpose is self-evident given the sibling tool set.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

edit_videoC

Create a HappyHorse task on RunAPI (edit video). Returns a task id, status, and output URLs.

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNo
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptNo
timeout_msNo
callback_urlNo
audio_settingNo
poll_interval_msNo
source_video_urlYes
output_resolutionNo
reference_image_urlsNo

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description is the sole source of behavioral information. It discloses that the tool returns a task id, status, and output URLs, but fails to mention async behavior, auth requirements, rate limits, or error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, concise and front-loaded with the primary action. However, it could be better structured by separating purpose and return information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (11 parameters, no output schema, no annotations), the description is severely incomplete. It lacks instructions on required inputs, authentication (likely needed given login sibling), and detailed return format.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low (18%), and the tool description adds nothing about parameters. It does not explain the meaning or usage of any of the 11 parameters, leaving the agent without necessary context.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool creates a HappyHorse task for editing video on RunAPI, using a specific verb (Create) and resource (HappyHorse task). It distinguishes from sibling tools like text_to_video by explicitly mentioning 'edit video'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives (e.g., text_to_video). There is no mention of prerequisites, when not to use it, or comparison with siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_taskB

Fetch the current status and latest result payload for a happyhorse task.

ParametersJSON Schema
NameRequiredDescriptionDefault
actionYesAsynchronous endpoint the task was created on.
task_idYesTask id returned when the task was created.

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description bears full burden. It indicates a read operation but does not disclose potential side effects, authentication requirements, or behavior for missing tasks. Minimal behavioral detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence with no extraneous information. Front-loads the key action and resource. Efficient and to the point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema provided, but description mentions 'status and latest result payload' without detailing their structure. Could be more complete for agent decision-making, but acceptable for a simple fetch tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already described. Description adds no additional semantic context beyond what schema provides. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the verb 'fetch' and the resource 'current status and latest result payload for a happyhorse task'. It distinguishes from sibling tools like edit_video and text_to_video which are about creating/editing tasks, not fetching status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs alternatives. Does not mention prerequisites, context, or when not to use it. Simply describes the function without usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

image_to_videoB

Create a HappyHorse task on RunAPI (image to video). Returns a task id, status, and output URLs.

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNo
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptNo
timeout_msNo
callback_urlNo
duration_secondsNo
poll_interval_msNo
output_resolutionNo
first_frame_image_urlYes

TDQS

B3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions return values but does not disclose async behavior, waiting/polling semantics (despite a 'wait' parameter and timeout options), potential side effects, or prerequisites. This leaves significant behavioral ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single concise sentence, front-loaded with the key action and result. It is efficient with words, though it sacrifices depth. This is not overly verbose, so it scores well on conciseness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, no output schema, and no annotations, this description is insufficient. It does not explain the task lifecycle, parameter usage, or how to configure the request. It provides only a minimal overview, which is inadequate for a tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% (2 of 10 parameters described), and the tool description adds no parameter information. It fails to compensate for the low schema coverage, leaving users without guidance on parameters like prompt, seed, duration_seconds, etc.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the action: 'Create a HappyHorse task on RunAPI (image to video).' It specifies the verb, resource, and scope, and differentiates from sibling text_to_video by emphasizing 'image to video.' It also notes the return value (task id, status, output URLs).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The context is implied through 'image to video,' suggesting when to use it, but there is no explicit guidance on alternatives or when not to use. It does not mention relative to text_to_video or other sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

loginA

Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.

ParametersJSON Schema
NameRequiredDescriptionDefault
forceNoRe-run browser login when the current credential comes from the local config file.

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description bears full responsibility. It discloses the browser-based flow and file saving, but does not mention potential side effects (e.g., overwriting existing config), required user interaction, or any retry/rate limit behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that conveys the key information without extraneous words. Every element contributes to understanding the tool's purpose and mechanism.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple authentication tool with one optional parameter and no output schema, the description is largely complete. It could mention the need for user interaction (browser popup) but otherwise covers the essential details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for the single parameter 'force', which is well-described in the schema. The tool description adds no further clarification about the parameter beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the action ('Authenticate RunAPI'), the method ('browser PKCE login flow'), and the outcome ('saving the API key to ~/.config/runapi/config.json'). It distinguishes itself from sibling tools which are unrelated video/pricing operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies login is for authentication but does not explicitly state when to use it (e.g., at session start) or when not to use it. The 'force' parameter hints at re-authentication scenarios, but no alternative tools or exclusions are mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

text_to_videoB

Create a HappyHorse task on RunAPI (text to video). Returns a task id, status, and output URLs.

ParametersJSON Schema
NameRequiredDescriptionDefault
seedNo
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
promptNo
timeout_msNo
aspect_ratioNo
callback_urlNo
duration_secondsNo
poll_interval_msNo
output_resolutionNo
reference_image_urlsNo

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description must disclose behavioral traits. It mentions 'Returns a task id, status, and output URLs,' which gives some clue about the asynchronous nature, but it doesn't explain side effects, required auth, costs, or how long the task takes. Thus, it's minimally informative.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The entire description is one 14-word sentence that front-loads the verb and resource. It's efficient and every word contributes to the core message.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (11 parameters, 0 required, no output schema, no annotations), this high-level description is insufficient. It doesn't explain the task lifecycle, how to specify inputs, what the output URLs represent, or how this relates to get_task. The agent would be left guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 11 parameters with only 18% description coverage, and the tool description does not explain any parameters. It doesn't clarify which model to choose, what prompt format is expected, or what the options mean. The description adds no meaning beyond the bare field names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Create' and identifies the resource as a 'HappyHorse task on RunAPI' with the scope 'text to video,' which clearly distinguishes it from siblings like image_to_video and edit_video. It also states the return type (task id, status, output URLs).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'text to video' clearly implies the tool is for generating video from text prompts, which provides clear context relative to image_to_video. However, it doesn't explicitly mention alternatives or exclusions, so it falls slightly short of full guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv0.1.8
    • Changedcheck_pricing1 field changed
      • changedInput schema / properties / model / enum
        Previous value: -[
        -  "happyhorse-edit-video",
        -  "happyhorse-image-to-video",
        -  "happyhorse-character",
        -  "happyhorse-text-to-video"
        -]New value: +[
        +  "happyhorse-edit-video",
        +  "happyhorse-1.0-i2v",
        +  "happyhorse-image-to-video",
        +  "happyhorse-1.0-r2v",
        +  "happyhorse-1.0-t2v",
        +  "happyhorse-character",
        +  "happyhorse-text-to-video"
        +]
    • Addedimage_to_video
    • Changedtext_to_video1 field changed
      • changedInput schema / properties / model / enum
        Previous value: -[
        -  "happyhorse-character",
        -  "happyhorse-text-to-video"
        -]New value: +[
        +  "happyhorse-1.0-r2v",
        +  "happyhorse-1.0-t2v",
        +  "happyhorse-character",
        +  "happyhorse-text-to-video"
        +]
  2. 4 tool updatesv0.1.7
    • Changededit_video8 fields changed
      • addedInput schema / properties / callback_url
        Added value: +{
        +  "type": "string"
        +}
      • addedInput schema / properties / prompt
        Added value: +{
        +  "type": "string"
        +}
      • addedInput schema / properties / reference_image_urls / items
        Added value: +{}
      • addedInput schema / properties / reference_image_urls / maxItems
        Added value: +5
      • addedInput schema / properties / reference_image_urls / type
        Added value: +"array"
      • addedInput schema / properties / seed
        Added value: +{
        +  "type": "number"
        +}
      • addedInput schema / properties / source_video_url / type
        Added value: +"string"
      • addedInput schema / required
        Added value: +[
        +  "source_video_url"
        +]
    • Changedget_task1 field changed
      • changedInput schema / properties / action / description
        Previous value: -"Endpoint the task was created on."New value: +"Asynchronous endpoint the task was created on."
    • Removedimage_to_video
    • Changedtext_to_video6 fields changed
      • addedInput schema / properties / callback_url
        Added value: +{
        +  "type": "string"
        +}
      • addedInput schema / properties / duration_seconds
        Added value: +{
        +  "type": "number"
        +}
      • addedInput schema / properties / prompt
        Added value: +{
        +  "type": "string"
        +}
      • addedInput schema / properties / reference_image_urls / items
        Added value: +{}
      • addedInput schema / properties / reference_image_urls / type
        Added value: +"array"
      • addedInput schema / properties / seed
        Added value: +{
        +  "type": "number"
        +}
  3. 1 tool updatev0.1.6
    • Addedlogin
  4. 5 tool updatesv0.1.0
    • First observedcheck_pricing
    • First observededit_video
    • First observedget_task
    • First observedimage_to_video
    • First observedtext_to_video

TDQS

A3.5/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: authentication, three video generation modes, task status retrieval, and pricing lookup. No two tools overlap in functionality.

Naming Consistency4/5

The naming pattern is mostly verb_noun (e.g., get_task, check_pricing) but the video generation tools break this with image_to_video and text_to_video, while edit_video fits the verb pattern. The mix is still readable and predictable in context.

Tool Count5/5

With 6 tools, the server is well-scoped for video generation and task management. Each tool covers a necessary part of the workflow without unnecessary bloat.

Completeness4/5

The surface covers login, task creation, status retrieval, and pricing. A task listing or cancellation tool would be a minor addition, but the primary use cases are fully supported.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/runapi-ai/happyhorse-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server