Mediamcp logo

Mediamcp

by legolev

Generates and edits images, creates videos, and saves media files through OpenRouter or compatible APIs.

Install Mediamcp

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": {
    "legolev-mediamcp": {
      "command": "npx",
      "args": [
        "-y",
        "mediamcp"
      ],
      "env": {
        "OPENROUTER_API_KEY": "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 OPENROUTER_API_KEY=YOUR_VALUE_HERE --transport stdio legolev-mediamcp -- npx -y mediamcp

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

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

Overview

The legolev/mediamcp MCP server gives AI agents tools for generating and editing images and creating videos through OpenRouter or another OpenAI-compatible API. Results are saved to disk with absolute file paths and optional inline previews, while video jobs can be resumed after a timeout. Use it when an MCP client needs cloud media generation, image-to-video workflows, model discovery, or configuration diagnostics. It runs through npx and requires Node.js 20 or newer.

Use cases

  • Generate landing-page hero images
  • Edit or combine existing images
  • Create videos from prompts or still images
  • Resume asynchronous video jobs
  • Inspect available media models

Key features

  • Text-to-image generation
  • Image editing and composition
  • Text-to-video and image-to-video generation
  • Resumable video job polling
  • Local file output with inline previews
  • Model listing and configuration diagnostics

Tools6

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

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

31/31 checks healthy over the last 115d

What it can do

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

Can delete or modify data · 1Handles credentials · 1Makes network requests · 6Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age130 days
Maintainers1

Observed 2026-11-10 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 15d ago via OSV.dev · mediamcp (npm)

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
npm downloads304Package downloads in the last 30 days.
Last commit9d 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 exposed6Callable tools this server registers over MCP.
Directory activity15 viewsConfig copies, upvotes, and views on AllMCPs.

How Mediamcp works

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.

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 Mediamcp

legolev/mediamcp is an MCP server that connects AI clients to OpenRouter or OpenAI-compatible media APIs. Its main tools generate and edit images, generate and resume videos, list available models, and diagnose configuration. Outputs are saved locally, with absolute file paths and optional inline image previews.

Install it with npx -y mediamcp and add that command to your MCP client's server configuration. Provide OPENROUTER_API_KEY in the configuration environment, then restart the client. Node.js 20 or newer is required.

It supports OpenRouter by default and can use any OpenAI-compatible API by setting MEDIAMCP_BASE_URL and MEDIAMCP_API_KEY. The server detects supported image request formats at the configured endpoint.

Call check_video_status with the polling URL or video ID returned by generate_video. If the original wait timed out, use that polling URL instead of starting another generation request, then the tool downloads the completed video and returns its path.

Yes. Add it to Cursor's MCP configuration with the npx -y mediamcp command and OPENROUTER_API_KEY environment variable. The README also provides a Cursor installation link and a ~/.cursor/mcp.json example.

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