Skip to main content
ClaudeWave

AI image and video generation skill for Claude Code and other coding agents — Gemini, OpenAI and Kie AI behind one CLI and MCP server, with EU AI Act content marking.

MCP ServersRegistry oficial1 estrellas0 forksTypeScriptMITActualizado today
ClaudeWave Trust Score
95/100
Verified
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Topics declared
  • Documented (README)
Last scanned: 8/23/2026
Install in Claude Code / Claude Desktop
Method: NPX · mediagen
Claude Code CLI
claude mcp add mediagen -- npx -y mediagen
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mediagen": {
      "command": "npx",
      "args": ["-y", "mediagen"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Casos de uso

Resumen de MCP Servers

# mediagen — an image and video generation skill for coding agents

[![npm](https://img.shields.io/npm/v/mediagen)](https://www.npmjs.com/package/mediagen)
[![CI](https://github.com/Cripacx/mediagen/actions/workflows/ci.yml/badge.svg)](https://github.com/Cripacx/mediagen/actions/workflows/ci.yml)
[![node](https://img.shields.io/node/v/mediagen)](https://nodejs.org)

Give your agent image and video generation across **Google Gemini**, **OpenAI**
and **Kie AI** — one skill, one install, no API to learn.

Say roughly what you want and let it decide the rest:

```
You:   Make a hero image for the landing page, wide, something moody and industrial.

Agent: npx -y mediagen image "A disused loading dock at dusk, wet concrete…"
         --aspect-ratio 21:9 --json
       → ./output/image-20260823T094107Z.png
```

It wrote the prompt out in full, knew 21:9 rules OpenAI out, and read the path
back from `--json`.

Or be exact, and it stops deciding:

```
You:   Same thing with gemini-3-pro-image, 21:9, 4K, marked as AI-generated,
       saved as hero.png.

Agent: npx -y mediagen image "A disused loading dock at dusk, wet concrete…"
         --model gemini-3-pro-image --aspect-ratio 21:9 --size 4K
         --output-name hero.png --json
       → ./output/hero.jpg

       [looks at the image]

       npx -y mediagen mark ./output/hero.jpg --visible-label
         --label-position top-right --json
       → ./output/hero.labelled.jpg
```

It marked in a second pass, after seeing where the subject ended up — and put
the label on the flat roofline rather than over the loading bay.

Anything the CLI takes can be asked for in words — provider, model, aspect
ratio, size, output name and directory, quality preset, video duration, an
input image to edit, and whether to mark the result. Name any of them and the
agent uses it as given; leave it out and it chooses, or falls back to what you
configured.

## Install

```bash
npx -y skills add Cripacx/mediagen --skill mediagen
```

That is the whole installation. **Nothing else to set up** — the skill runs the
CLI through `npx`, which fetches it on first use and caches it afterwards.

Then give it a key:

```bash
npx -y mediagen init
```

An interactive wizard: pick providers, enter each key without it being echoed,
verify each against the live API, choose a model per provider, and set a
default. One key is enough to start.

Now just ask your agent for an image.

## What your agent can do with it

- **Generate images and video** from a description, or edit media you already
  have
- **Choose the right provider** for the task — the skill knows Gemini handles
  21:9 and video, that OpenAI cannot do 16:9 at all, and that Kie aggregates
  around thirty third-party models
- **Take your instructions literally when you give them.** Name a model, a
  ratio, a size or a filename and it is used as stated. `mediagen models` is
  there when you want to see what is available before choosing
- **Write the prompt properly.** The skill carries prompt-writing guidance, so
  "a hero image, moody and industrial" becomes a full description of subject,
  composition, light, camera and materials before anything is sent
- **Mark AI-generated output** when it matters — the skill suggests it for
  anything photorealistic or destined for publication
- **Recover from failures on its own**, because every error carries a
  machine-readable code and a next action

And what it will not do: **ask you to paste an API key into the chat.** On a
configuration error the skill tells you to run `mediagen init` in your own
terminal.

## Prerequisites

- At least one API key:
  - Google Gemini ([get one here](https://aistudio.google.com/apikey)) — images
    **and** video, widest range of shapes
  - OpenAI ([get one here](https://platform.openai.com/api-keys)) — images
  - Kie AI ([get one here](https://kie.ai/api-key)) — ~30 third-party models
- Node.js 20.11 or later

## Configuration

`mediagen init` covers first-time setup. To change something later:

```bash
npx -y mediagen config edit
```

A menu of every setting with its current value and where that value came from —
provider, model, key, output directory, quality preset, and what `mediagen
mark` does by default. Each change is written as you make it.

For CI and scripts, where there is no terminal, `config set` takes the same
settings as arguments:

```bash
echo "$GEMINI_API_KEY" | npx -y mediagen config set gemini --stdin
npx -y mediagen config set gemini-model gemini-3-pro-image
```

### Which provider gets used

Set the order you prefer, most preferred first:

```bash
npx -y mediagen config set provider-priority gemini,kie,openai
```

It is a preference, not a whitelist. A request with no `--provider` goes to the
first provider in the order that has a key **and** can do the job — so a
missing OpenAI key never stops something Gemini can do, and asking for video
skips straight past the providers that do not make any. Naming `--provider`
overrides all of it.

`mediagen models` shows the resulting order, which providers are usable, and
what a request would get:

```
1. Google Gemini (gemini)  [preferred, key from config file]
  Would use: gemini-3.1-flash-image  (provider default)
2. Kie AI (kie)  [key from config file]
3. OpenAI (openai)  [preferred, no key]
  No key configured, so requests to it fail. Fix: mediagen config set openai

A request with no --provider uses gemini/gemini-3.1-flash-image.
```

With `--json` it adds `wouldUse`, `usableProviders` and `providerPriority`.
That is what the skill has an agent read before generating, so it never picks
a model from a provider you have no key for.

To check what is configured and whether the keys still work:

```bash
npx -y mediagen doctor
```

`doctor` reports, per provider, whether a key is configured, which layer it came
from, and whether the provider accepts it — keeping _not configured_,
_rejected_, _unreachable_ and _no cheap way to check_ distinct, because they
call for four different fixes.

> [!WARNING]
> There is deliberately no flag that takes an API key as an argument. Arguments
> land in shell history and in the process list, where they outlive the command
> that used them.

Settings resolve from the environment first, then `.env` in the working
directory, then the config file:

| Variable                                          | Purpose                        |
| ------------------------------------------------- | ------------------------------ |
| `GEMINI_API_KEY`, `OPENAI_API_KEY`, `KIE_API_KEY` | credentials; at least one      |
| `MEDIAGEN_PROVIDER_PRIORITY`                      | providers in preference order  |
| `GEMINI_MODEL`, `OPENAI_MODEL`, `KIE_MODEL`       | default model per provider     |
| `MEDIAGEN_OUTPUT_DIR`                             | where media is saved           |
| `MEDIAGEN_QUALITY`                                | `fast`, `balanced`, `quality`  |
| `MEDIAGEN_MARK`                                   | mark output by default         |
| `MEDIAGEN_VISIBLE_LABEL`                          | add a visible label by default |

> [!TIP]
> A stale environment variable shadowing the key you just configured is the most
> expensive failure this kind of tool has. `mediagen config list` marks every
> shadowed value, so you can see it rather than guess.

## Providers

| Provider          | Images                         | Video | Editing | Key verification                 |
| ----------------- | ------------------------------ | ----- | ------- | -------------------------------- |
| **Google Gemini** | Nano Banana family, up to 4K   | yes   | yes     | live probe                       |
| **OpenAI**        | gpt-image family, DALL·E       | —     | yes     | live probe                       |
| **Kie AI**        | ~30 models: Flux, Imagen, Grok | —     | most    | no cheap probe; reported as such |

> [!NOTE]
> OpenAI takes pixel dimensions rather than aspect ratios and genuinely cannot
> produce 16:9 — its widest image is 1536×1024, which is 3:2. Asking for 16:9 is
> refused by name rather than quietly served as something else. The skill knows
> this and routes wide shapes to Gemini.

A model absent from the listings is still sent to the provider, so a newly
released model works before mediagen knows about it. Kie's catalogue is
generated from Kie's own documentation rather than maintained by hand.

## Content marking

The EU AI Act splits disclosure into two duties, so `mediagen mark` has two
independent switches:

| Flag              | Duty                      | What it does                                       |
| ----------------- | ------------------------- | -------------------------------------------------- |
| machine-readable  | make it findable by tools | writes IPTC/XMP `DigitalSourceType`, on by default |
| `--visible-label` | disclose it to people     | composites the EU's official AI-content label      |

**Generating never marks.** Marking is always a second command, run on the
file afterwards:

```bash
npx -y mediagen image "a wide banner" --aspect-ratio 21:9 --size 2K --json
npx -y mediagen mark ./output/image-….jpg --visible-label --label-position top-left
```

That is not ceremony. A visible label has to go where the subject is not, and
only the finished image can say where that is. The machine-readable marker is
not free either: adding metadata to a JPEG or WebP means decoding and
re-encoding it, so marking costs a second lossy pass — worth paying
deliberately, not as a side effect of asking for an image. mediagen re-encodes
at high quality to keep that cost small, but it cannot make it zero.

To have `mediagen mark` draw the visible label without being asked each time:

```bash
npx -y mediagen config edit      # "AI marking by default"
```

A configured default is still overridable per run with `--no-mark` or
`--no-visible-label`.

The visible label is the European Commission's own icon, published with the
Code of Practice on Transparency of AI-generated Content and free 
agent-skillai-agentsclaudeclaude-codeclieu-ai-actgeminigenerative-aiimage-generationkie-aimcpmcp-servermodel-context-protocolnodejsopenaitext-to-imagetext-to-videotypescriptvideo-generation

Lo que la gente pregunta sobre mediagen

¿Qué es Cripacx/mediagen?

+

Cripacx/mediagen es mcp servers para el ecosistema de Claude AI. AI image and video generation skill for Claude Code and other coding agents — Gemini, OpenAI and Kie AI behind one CLI and MCP server, with EU AI Act content marking. Tiene 1 estrellas en GitHub y su última actualización registrada es del 2026-08-23.

¿Cómo se instala mediagen?

+

Puedes instalar mediagen clonando el repositorio (https://github.com/Cripacx/mediagen) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar Cripacx/mediagen?

+

Nuestro agente de seguridad ha analizado Cripacx/mediagen y le ha asignado un Trust Score de 95/100 (tier: Verified). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene Cripacx/mediagen?

+

Cripacx/mediagen es mantenido por Cripacx. La última actividad registrada en GitHub es del 2026-08-23, con 0 issues abiertos.

¿Hay alternativas a mediagen?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega mediagen en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: Cripacx/mediagen
[![Featured on ClaudeWave](https://claudewave.com/api/badge/cripacx-mediagen)](https://claudewave.com/repo/cripacx-mediagen)
<a href="https://claudewave.com/repo/cripacx-mediagen"><img src="https://claudewave.com/api/badge/cripacx-mediagen" alt="Featured on ClaudeWave: Cripacx/mediagen" width="320" height="64" /></a>

Más MCP Servers

Alternativas a mediagen