Maginary MCP logo

Maginary MCP

Generate and refine images or videos through Maginary’s async API using a Midjourney-style prompt flag DSL.

Install Maginary MCP

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "maginary-mcp": {
      "command": "uvx",
      "args": [
        "--upgrade",
        "maginary-mcp"
      ]
    }
  }
}

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

Claude Code command
claude mcp add --transport stdio maginary-mcp -- uvx --upgrade maginary-mcp

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

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx --upgrade maginary-mcp

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

maginary-mcp connects MCP clients to Maginary’s image and video generation API through a shared prompt DSL. It provides parameter discovery, asynchronous generation with polling, image uploads, post-generation actions, and account, key, credit, and checkout tools. Use it when an agent needs to create or edit visual assets, produce image-to-video outputs, or select supported flags without guessing. Local stdio and hosted Streamable HTTP deployment are supported, with API keys, OAuth, or x402 payment options.

Use cases

  • Generate images from natural-language prompts
  • Create image-to-image edits from uploaded references
  • Convert completed images into short videos
  • Refine outputs with upscale, variation, pan, or zoom actions
  • Manage Maginary credits and API keys from an agent

Key features

  • Midjourney-style prompt flag catalog
  • Asynchronous image and video generation
  • Image upload and image-to-image support
  • Post-generation editing actions
  • Account, API key, and billing tools
  • x402 pay-per-use support

Tools16

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

Verified live~5.8k 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.

14/14 checks healthy over the last 68d

What it can do

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

Runs commands · 3Can delete or modify data · 3Handles credentials · 9Makes network requests · 13Read-only tools · 10
Network at startup2 connections
Files written at startup10

Observed 2026-11-01 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 · maginary-mcp (PyPI)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
Last commit20d agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.
Tools exposed16Callable tools this server registers over MCP.

How Maginary MCP works

What maginary-mcp does

maginary-mcp exposes Maginary’s image and video generation service through the Model Context Protocol. Prompts use a Midjourney-style flag syntax, while the server provides catalog tools that let an agent inspect supported parameters, aliases, descriptions, values, and examples before constructing a request.

Generation is asynchronous. An agent starts work with generate, receives a generation UUID, and can retrieve the record with get_generation or wait for a terminal state with wait_for_generation. Completed outputs can be refined through actions such as upscaling, variation, panning, zooming, rerolling, and image-to-video conversion.

The server also includes onboarding and account-management operations. Agents can create an email-based account, create a wallet account, check verification and balances, manage API keys, inspect products, and create Stripe checkout sessions.

How it works

The generate tool sends the user’s prompt to Maginary’s generation API without adding unrequested flags. Supported options include image count, aspect ratio, output format, resolution, model selection, video duration, video frame rate, and video output. The parameter catalog separates live, partial, and reserved flags; unknown flags are rejected.

Image-to-image requests place one or more public image URLs in the prompt before the editing instructions. Multiple URLs enable multi-input compositing. A local image can first be sent through upload_image, which returns a public CDN URL. Style references use --sref and affect the visual style rather than supplying the image content as the generation input.

Video can be requested by including an image URL with --mp4 and compatible video flags, or by applying img2vid_basic to a completed image. Generation failures can appear inside a successful tool response as processing_state: "failed", so clients should inspect the returned state rather than relying only on MCP tool errors.

Setup and configuration

For a local stdio connection, install Python 3.10 or newer and run the package with uvx --upgrade maginary-mcp, or install it with pip. A Claude Desktop configuration can launch it with the maginary-mcp command. MAGINARY_API_KEY may be set to skip interactive signup; catalog tools work without a key.

The default backend is Maginary’s API endpoint. MAGINARY_BASE_URL can point to a staging or self-hosted backend, and MAGINARY_MCP_LOG_LEVEL controls Python logging sent to stderr. The server can also be used without local installation through Streamable HTTP at https://mcp.maginary.ai/mcp, using OAuth where supported or an API key in the connection headers.

Local upload_image is available only over stdio. Hosted connections should use an image URL that is already publicly accessible. x402-capable clients can respond to payment challenges from generate and retry with the signed payment metadata; wallet authentication uses EIP-191 signatures and short-lived timestamps.

Tools and capabilities

  • Discover and search the Maginary prompt-DSL parameter catalog.
  • Start, retrieve, and wait for asynchronous image or video generations.
  • Upload JPEG, PNG, WebP, or HEIC images for image-to-image and style-reference workflows.
  • Apply available per-image or global follow-up actions to completed generations.
  • Create accounts, verify status, manage API keys, and activate a key locally.
  • Inspect products, purchase options, remaining credits, and upload allowances.
  • Create Stripe checkout sessions or handle x402 pay-per-use challenges.

Limitations and notes

upload_image requires a local stdio connection. Hosted deployments cannot persist an API key through configure_api_key; the key must be supplied per request or in the client’s connection configuration. A generation may continue running after wait_for_generation returns a timeout, so clients should poll again with the UUID.

Standard generation is the default. The --flagship option costs substantially more and should only be added when explicitly requested. Some parameters are only partially honored, while reserved parameters are rejected by the parser. Checkout URLs must be presented intact, including their fragment portion.

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 Maginary MCP

maginary-mcp is an MCP server that connects AI clients to Maginary’s image and video generation API. Its main tools catalog prompt parameters, start generations, poll results, upload reference images, run follow-up actions, manage accounts and API keys, and check products, credits, and checkout options.

Install it with `uvx --upgrade maginary-mcp` or `pip install maginary-mcp`, then configure your MCP client to launch the package over stdio. Python 3.10 or newer is required. A hosted Streamable HTTP endpoint is also available at `https://mcp.maginary.ai/mcp`.

Yes, maginary-mcp works with Cursor through its MCP configuration. Connect Cursor to the local stdio server or to the hosted Streamable HTTP endpoint, then provide an API key or use the available authentication flow.

Call `generate` with the user’s prompt, then use `wait_for_generation` or `get_generation` with the returned UUID. Add flags only when requested, and inspect the final `processing_state` because server-side failures can be returned inside a successful tool call.

Yes, it can create video from an image URL by using `generate` with `--mp4` and video flags, or by applying `img2vid_basic` through `execute_action` to a completed generation. The resulting child generation must be polled before retrieving its output.

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 PreviewMaginary MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/maginary-mcp?style=directory)](https://allmcps.com/mcp/maginary-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/maginary-mcp"><img src="https://allmcps.com/api/badge/maginary-mcp?style=directory" alt="Maginary MCP on AllMCPs" /></a>