# legolev/mediamcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/legolev/mediamcp  
**GitHub Stars:** 4  
**npm Downloads (last month):** 304  
**Views:** 15  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/legolev-mediamcp

## Description
Image generation and editing plus video generation (Veo, Sora, Seedance) via OpenRouter or any OpenAI-compatible API. Saves files to disk with token-cheap inline previews, resumable video jobs, live model listing, and a config-diagnostics tool. npx -y mediamcp.

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — Generate one or more images from a text prompt using a cloud AI model. Every image is saved to disk and its absolute path is returned, along with a small inline preview. Use edit_image instead when starting from an existing image.
- **edit_image** — Edit or transform existing image(s) with a text instruction — restyle, add or remove elements, change background, or combine several images into one scene. The result is saved to disk and its absolute path is returned, along with a small inline preview.
- **generate_video** — Generate a video from a text prompt, and optionally from an input image (image-to-video). Async job: starts generation, then waits and polls. Video generation typically takes 1-5 minutes. The finished file is saved to disk and its absolute path is returned. If waiting times out, a polling_url is returned — pass it to check_video_status later instead of starting a new (billed) job. For image-to-video, pass first_frame_image so the clip animates from that exact picture (e.g. a still produced by generate_image). Image inputs require an image-to-video-capable model such as 'bytedance/seedance-2.0', 'bytedance/seedance-2.0-fast', or 'google/veo-3.1'.
- **check_video_status** — Check a previously started video generation job (from generate_video's polling_url or video id). If the job has completed, downloads the video, saves it to disk, and returns the absolute path.
- **list_models** — List image- and video-capable model slugs available on the configured endpoint, with pricing where known. Use this to pick a `model` value for generate_image, edit_image, or generate_video.
- **check_config** — Diagnose the mediamcp server setup: endpoint, API key presence and validity, default models, and output directory writability. Run this first when any other mediamcp tool fails.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mediamcp": {
    "command": "npx",
    "args": ["-y","mediamcp"],
    "env": {
      "OPENROUTER_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `OPENROUTER_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What legolev/mediamcp MCP server does

The legolev/mediamcp MCP server exposes cloud image and video generation to MCP-compatible AI clients. It can create one or more images from a prompt, transform existing images, generate videos from text or an image, and inspect the available image- and video-capable models. Supported providers include OpenRouter and other endpoints that follow an OpenAI-compatible API pattern.

Every generated image or video is written to the configured local output directory. Responses include the absolute path to the saved file; image responses can also include a compact inline preview. This lets an agent reference the resulting file while keeping preview data relatively small.

## How it works

The server communicates with the configured API endpoint and selects an image request format supported by that endpoint. It can work with a dedicated `/images` endpoint, the classic `/images/generations` route, or image-capable `chat/completions`, depending on what the endpoint supports.

Video generation is asynchronous. `generate_video` starts a job and waits while polling it, normally for one to five minutes. If the wait expires, the response includes a polling URL instead of requiring a new billed request. `check_video_status` can later resume the job and download the completed video. Image-to-video requests use `first_frame_image` and require a compatible model, such as a Seedance or Veo model listed in the supplied configuration.

## Setup and configuration

Install the legolev/mediamcp MCP server with `npx -y mediamcp` and provide an API key through the MCP client's environment configuration. `OPENROUTER_API_KEY` is used for the default OpenRouter endpoint. For another OpenAI-compatible service, set `MEDIAMCP_BASE_URL` and use `MEDIAMCP_API_KEY`; that variable takes precedence when both key variables are present.

Optional settings select default image and video models, change the output directory, set the per-request timeout, and control preview generation and preview dimensions. The default output location is `~/Pictures/mediamcp`, with a fallback under the home directory when `~/Pictures` is unavailable. Node.js 20 or newer is required.

## Tools and capabilities

- `generate_image`: Creates up to four image variations from a text prompt, with model and aspect-ratio options.
- `edit_image`: Modifies one or more local files or image URLs, including data URLs, and can combine multiple sources.
- `generate_video`: Creates text-to-video or image-to-video jobs, with optional first and last frames or reference images.
- `check_video_status`: Polls a prior video job and saves the finished result.
- `list_models`: Reports image- and video-capable model slugs and known pricing.
- `check_config`: Checks the endpoint, key status, default models, and output-directory write access.

## Limitations and notes

Media generation depends on the configured provider, model availability, account credits, and valid model slugs. Video requests may take one to five minutes, and a timed-out wait must be continued with the returned polling URL rather than restarted. Image-to-video requires a model that supports that mode. When troubleshooting the legolev/mediamcp MCP server, run `check_config` first or execute `npx -y mediamcp --check` with the relevant environment variables.

The project is released under the MIT license.

_Full upstream README: https://allmcps.com/mcp/legolev-mediamcp/readme_

