mcpField
M
Modelflare

Modelflare

Local
modelflare.devMedia & Design0Updated 1d ago

About Modelflare

Modelflare is an MCP server for generating and editing images and creating videos through models available to a Modelflare account. It serves users of MCP clients who want model discovery and generation tools configured with one Smart API Key.

Key features

  1. 01List models available to the API key
  2. 02Generate or edit images
  3. 03Start asynchronous video generation
  4. 04Check video task status and progress
  5. 05Download completed videos

Use cases

  1. 01Find image or video models available to an account
  2. 02Generate and save an image from an MCP client
  3. 03Submit a video task and check its progress
  4. 04Download a finished video

MCP support

Exposes image and video model discovery, generation, status, and download tools to MCP clients. Configure it with a Modelflare Smart API Key and an output directory.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"castaly-ai": {
"command": "npx",
"args": [
"-y",
"@modelflare/mcp-server"
],
"env": {
"MODELFLARE_API_KEY": "<MODELFLARE_API_KEY>",
"MODELFLARE_BASE_URL": "<MODELFLARE_BASE_URL>",
"MODELFLARE_OUTPUT_DIR": "<MODELFLARE_OUTPUT_DIR>"
}
}
}
}
Run commandnpx -y @modelflare/mcp-server
Environment variables to set
MODELFLARE_API_KEYSecretModelflare Smart API Key (create one at https://modelflare.dev/keys)
MODELFLARE_BASE_URLglobal (default), china, or a custom base URL
MODELFLARE_OUTPUT_DIRDirectory for generated images and videos (default ./modelflare-output)

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@modelflare/mcp-server0.1.2

Tools

5

Saved tool list · updated 6d ago

ParameterTypeRequiredDescription
kindenumNoOnly list models of this kind.image | video | text

Details

From the project README

Modelflare MCP Server

Image and video generation for any MCP client — Claude Desktop, Cursor, Gemini CLI and more — with one Modelflare Smart API Key for every image and video model available to your account.

用一个 Modelflare Smart API Key,在任意 MCP 客户端里调用你账号可用的全部图像和视频模型。

mcp-name: io.github.castaly-ai/mcp-server

Get a Smart API Key / 获取 Smart API Key

  1. Sign up / 注册: https://modelflare.dev/sign-up?utm_source=mcp-registry&utm_medium=plugin&utm_campaign=integrations

  2. Console → API Keys → Create Smart API Key, and pick a routing strategy (Balanced / Stability first / Low price first).

    控制台 API Keys →「Create Smart API Key」,选择路由策略(均衡 / 稳定优先 / 低价优先)。

Configure / 配置

Add the server to your MCP client:

{
  "mcpServers": {
    "modelflare": {
      "command": "npx",
      "args": ["-y", "@modelflare/mcp-server"],
      "env": {
        "MODELFLARE_API_KEY": "<your Smart API Key>"
      }
    }
  }
}
VariableValue
MODELFLARE_API_KEYyour Smart API Key (required)
MODELFLARE_BASE_URLglobal → https://modelflare.dev/v1 (default) · china → https://origin.modelflare.dev/v1 · or a custom URL
MODELFLARE_OUTPUT_DIRwhere images and videos are saved (default ./modelflare-output)
MODELFLARE_LOCALEen (default) or zh for error messages

Claude Desktop: download modelflare-mcp-<version>.mcpb from Releases and open it; Claude Desktop asks for the API key, base URL and output folder. modelflare-mcp-<version>-smithery.mcpb is the same bundle with each tool's inputSchema in the manifest, as Smithery requires. node build-mcpb.mjs rebuilds both.

Tools / 工具

ToolWhat it does
list_modelsImage and video models your key can call, each with the docs page holding its exact request fields. kind: "text" lists text models.
generate_imageGenerates an image, or edits one with edit: true, and saves it. Gemini image models use generateContent; the others use the Images API.
create_videoStarts an asynchronous video task and returns its task ID.
get_video_statusStatus and progress of a video task.
download_videoSaves a finished video; can wait up to 300 seconds first.

Model-specific fields go in parameters (images) or request (videos) and are sent unchanged. The model list comes from your key, so new models appear without editing the key. Generated results are saved right away because result URLs expire.

Calls are billed to your Modelflare balance by actual usage; see https://modelflare.dev/usage-logs.

Troubleshooting / 常见问题

  • 401: the key is missing or invalid. Create a Smart API Key at https://modelflare.dev/keys.
  • model_not_found: a regular key only calls the models of its own group. A Smart API Key calls every model available to your account. If you already use a Smart API Key, that model is not available to your account right now.
  • 403 insufficient_user_quota: top up at https://modelflare.dev/billing.

Links

Docs: https://docs.modelflare.dev/ · Pricing: https://modelflare.dev/pricing

License

MIT © Havenbyte LLC

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.