Modelflare logo

Modelflare

Local stdio MCP server for generating images and videos through Modelflare with one Smart API Key.

Install Modelflare

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "modelflare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelflare/mcp-server"
      ],
      "env": {
        "MODELFLARE_API_KEY": "YOUR_VALUE_HERE",
        "MODELFLARE_BASE_URL": "YOUR_VALUE_HERE",
        "MODELFLARE_OUTPUT_DIR": "YOUR_VALUE_HERE",
        "MODELFLARE_LOCALE": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MODELFLARE_API_KEY=YOUR_VALUE_HERE --env MODELFLARE_BASE_URL=YOUR_VALUE_HERE --env MODELFLARE_OUTPUT_DIR=YOUR_VALUE_HERE --env MODELFLARE_LOCALE=YOUR_VALUE_HERE --transport stdio modelflare -- npx -y @modelflare/mcp-server

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 5 tools correctly ().

Overview

Modelflare is a local stdio MCP server that exposes Modelflare’s image and video generation APIs to MCP clients. It discovers models available to a Smart API Key, generates or edits images, and manages asynchronous video tasks through creation, status, and download tools. Results are saved locally because provider URLs expire. Reach for it when an agent needs access to multiple account-available image and video models through one credential.

Use cases

  • Generate images from agent prompts
  • Edit existing images through an MCP client
  • Create and monitor asynchronous video tasks
  • Discover models available to a Modelflare account

Key features

  • Account-specific image and video model discovery
  • Image generation and editing
  • Asynchronous video creation and status tracking
  • Local saving of generated media
  • Configurable API endpoint and output directory

Tools5

What Modelflare lets your agent do. Expand a tool for its parameters.

Verified live~599 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 5 tools this server returned when we ran it; 5 declare their own safety hints.

Makes changes · 2Handles credentials · 1Makes network requests · 5Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age50 days
Maintainers1

Observed 2026-12-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 3d ago via OSV.dev · @modelflare/mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads363Package downloads in the last 30 days.
Last commit11d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Modelflare works

What Modelflare does

Modelflare provides image and video generation tools over the Model Context Protocol. It uses one Modelflare Smart API Key to route requests to the image and video models available to the associated account. The server runs locally as a stdio process and can be added to MCP clients such as Claude Desktop, Cursor, and Gemini CLI.

The server supports both new image generation and image editing. Video creation is asynchronous: an agent starts a task, checks its progress, and downloads the completed result. Output files are written to a local directory rather than leaving the result at a temporary provider URL.

How it works

Install and launch the package with npx -y @modelflare/mcp-server. The MCP client starts the process and passes configuration through environment variables. MODELFLARE_API_KEY must contain a Modelflare Smart API Key.

Model discovery is account-specific. The list_models tool returns callable image and video models, along with documentation links describing each model’s request fields. Passing kind: "text" lists text models. Image-specific fields belong in parameters, while video-specific fields belong in request; these values are forwarded unchanged.

Image requests are handled through the Images API for non-Gemini image models. Gemini image models use generateContent. Video requests return a task ID first, after which status can be queried and the finished file can be downloaded.

Setup and configuration

Add the server to an MCP client using a command of npx, with -y and @modelflare/mcp-server as its arguments. Set the following environment variables as needed:

  • MODELFLARE_API_KEY: Required Smart API Key.
  • MODELFLARE_BASE_URL: Uses the global endpoint by default; china selects the China endpoint, and a custom URL is also accepted.
  • MODELFLARE_OUTPUT_DIR: Local destination for generated images and videos. The default is ./modelflare-output.
  • MODELFLARE_LOCALE: Error-message language, either en or zh.

Claude Desktop users can instead open the .mcpb bundle from the project’s releases. The bundle prompts for the API key, base URL, and output folder. A Smithery-specific bundle includes tool input schemas in its manifest.

Tools and capabilities

  • list_models identifies image and video models callable with the configured key and links to their exact request fields. It can also list text models.
  • generate_image creates an image or edits one when edit: true is used, then saves the result.
  • create_video starts a video-generation task and returns its task ID.
  • get_video_status reports the status and progress of a video task.
  • download_video saves a completed video and can wait up to 300 seconds before returning.

Usage is charged to the Modelflare balance according to actual usage. The available model list can change as models become available to the account, without requiring changes to the MCP client configuration.

Limitations and notes

A regular API key is limited to models in its own group; the Smart API Key is intended for access to all models available to the account. Authentication failures produce a 401 response, unavailable models can produce model_not_found, and insufficient balance can produce insufficient_user_quota.

Video generation requires separate steps for creation, status checking, and downloading. Generated results are saved promptly because returned URLs expire. The server is distributed under the MIT license.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Modelflare

Modelflare is an MCP server that connects MCP clients to Modelflare’s image and video models through one Smart API Key. Its main tools list available models, generate or edit images, start video tasks, check video progress, and download completed videos to a local output directory.

Install it by configuring your MCP client to run `npx -y @modelflare/mcp-server`. Set `MODELFLARE_API_KEY` to a Modelflare Smart API Key in the server environment. Claude Desktop can also use the `.mcpb` bundle from the project releases.

Modelflare requires a Modelflare Smart API Key. Create one from the Modelflare console under API Keys, then provide it as `MODELFLARE_API_KEY`; the key determines which image and video models the server can call.

Modelflare saves generated media in `./modelflare-output` by default. Set `MODELFLARE_OUTPUT_DIR` to choose another directory. Saving results locally is important because provider result URLs expire.

Yes, Modelflare works with Cursor as a local stdio MCP server. Add its `npx` launch command and the `MODELFLARE_API_KEY` environment variable to Cursor’s MCP configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewModelflare AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/modelflare?style=directory)](https://allmcps.com/mcp/modelflare)
HTML Embed
<a href="https://allmcps.com/mcp/modelflare"><img src="https://allmcps.com/api/badge/modelflare?style=directory" alt="Modelflare on AllMCPs" /></a>