mediagen — Claude Code MCP server for image and video generation
Create images and video from agent requests, edit existing images, and save the results to files. Useful when a project needs generated media without leaving the coding workflow.
claude mcp add mediagen -- npx -y mediagenWhat mediagen does
mediagen routes requests to Google Gemini, OpenAI, or Kie AI. The agent can select a provider or follow your choices for the model, aspect ratio, size, and output filename. It can also edit an existing image and add an AI-generated label to the result.
You need Node.js 20.11 or later and an API key for at least one provider. Run npx -y mediagen init to configure a key, then add the MCP server to Claude Code. Avoid passing a key as a command-line argument: the project warns that arguments can remain in shell history and the process list.
What it helps with
- generate a hero image from a text brief
- create video with an available provider
- edit an image already in the project
- save generated media under a chosen filename
- label an image as AI-generated
Example prompts for the agent
- Create a wide, moody industrial hero image for the landing page.
- Generate a video from this description and save it in the project folder.
- Edit
hero.pngand add a visible AI-generated label.
How to install mediagen
Platform CLI
claude mcp add mediagen -- npx -y mediagenPlatform CLI
codex mcp add mediagen -- npx -y mediagenConfig file
{
"mcpServers": {
"mediagen": {
"command": "npx",
"args": [
"-y",
"mediagen"
]
}
}
}Config file
{
"servers": {
"mediagen": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mediagen"
]
}
}
}Platform CLI
gemini mcp add mediagen npx -y mediagenStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about mediagen
How do I install mediagen in Claude Code?
Run claude mcp add mediagen -- npx -y mediagen. Then configure a provider key with npx -y mediagen init.
What does mediagen do?
It creates images and video from agent requests using Gemini, OpenAI, or Kie AI. It can also edit existing images and label generated output.
What does mediagen need to run?
Use Node.js 20.11 or later and provide an API key for at least one supported provider: Gemini, OpenAI, or Kie AI.