SuperAPIAI Directory

mediamcp

github.com · AI images

Image generation and editing plus Veo, Sora and Seedance video generation via OpenRouter or OpenAI-compatible APIs, with resumable video jobs.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · API

About this tool

mediamcp is an MCP (Model Context Protocol) server used to let AI agents generate and edit images and generate videos. It connects MCP-capable AI clients (Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, or other MCP clients) to cloud media models, such as Gemini Flash Image, GPT-5 Image, Seedream, Veo, Sora, etc., via OpenRouter or any OpenAI-compatible API.

Purpose: to let AI assistants directly invoke image generation, image editing, and video generation capabilities. After installation, users can give instructions to the agent in natural language, such as "generate a 16:9 hero image for my landing page," "remove the background from logo.png," "generate an 8-second video of sunset waves," or "turn logo.png into a 4-second video" (image-to-video). The agent will choose the appropriate tool on its own.

Main capabilities:

  • Image generation and editing: create and edit images through tools such as generate_image. The repository banner itself was generated by mediamcp in a single generate_image call.
  • Video generation: supports video generation via OpenRouter or an OpenAI-compatible API, and supports resumable video jobs.
  • File saving and preview: generated files are always saved to disk, with the default directory being ~/Pictures/mediamcp; each response includes the absolute path of the file and a small embedded preview, so the agent can immediately see the result.
  • Multi-provider support: specify any OpenAI-compatible endpoint in MEDIAMCP_BASE_URL and set the corresponding key to switch providers. mediamcp automatically detects the API format supported by the endpoint: a dedicated /images endpoint (OpenRouter), /images/generations (classic OpenAI), or chat/completions with image support, and remembers the first successful approach.
  • Configuration diagnostics: the agent can be asked to run the check_config tool, which reports configuration errors and how to fix them; you can also run npx -y media in the terminalmcp --check (using the shell's environment variables).

Usage: An OpenRouter API key is required, available at https://openrouter.ai/keys . During installation, add the server configuration to the configuration file of the corresponding MCP client and restart the client:

  • Claude Desktop: on macOS, ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, %APPDATA%\Claude\claude_desktop_config.json.
  • Cursor: ~/.cursor/mcp.json.
  • Windsurf: ~/.codeium/windsurf/mcp_config.json.
  • VS Code (GitHub Copilot): .vscode/mcp.json (the key is requested separately and is not written to the file). All configuration is done through environment variables in the env block of the MCP client configuration. Installation instructions for AI agents are located in the repository's llms-install.md.

Use cases: workflows that need to directly generate/edit images and generate videos in an AI coding assistant or desktop assistant, such as generating illustrations for web pages, removing image backgrounds, making short videos, or image-to-video.

Limitations and common issues:

  • Requires Node.js ≥ 20 (check with node --version).
  • "No API key configured": you need to add OPENROUTER_API_KEY to the env block of the server entry in the MCP client configuration (configuring only the shell environment variable is not enough), then restart the client.
  • "Out of credits (HTTP 402)": you need to https://openrouter.ai/credits Recharge.
  • "Not found (HTTP 404) … for model": the model slug is wrong; run list_models to check.
  • Client does not respond: confirm that Node.js ≥ 20 is installed.
  • "Tool '…' has an invalid outputSchema … unsupported dialect": the client validates schemas only according to JSON Schema 2020-12; mediamcp publishes 2020-12 by default, so this error indicates the version is too old; update it and confirm that check_config shows tool schema dialect: 2020-12.
  • The repository also contains a Security policy and mcp-name: io.github.legolev/mediamcp.

Regarding charges, pricing, the specific model list, and the scope of platform support, the materials do not provide complete details, so they are not provided for now.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools