
Mediamcp
io.github.legolevPublished by GitHub account legolevv0.3.0Updated Oct 24, 2026
Generate and edit images and video via OpenRouter or any OpenAI-compatible API.
Overview
A local MCP server that lets an AI assistant generate and edit images and create videos through OpenRouter or any OpenAI-compatible media API.
- What you can do
- Generate images from text prompts, with up to four variations, aspect ratio and model overrides, saved to disk with a preview and file path returned. Edit existing images from file paths or URLs, including combining several sources into one composition. Create videos from text or from a first frame, last frame or reference images, and resume waiting on a video task by its polling URL or id. List available image and video models with their prices. Run a configuration check covering the API key, endpoint, defaults and output directory writability.
- When to use it
- Useful when you want an assistant to produce or modify visual assets in a chat or coding client: hero images, background removal, logo edits, short clips or animating a still image. It fits workflows where generated files should land in a local folder and be referenced by path.
- Requirements
- Runs locally via npx, so Node.js 20 or newer is needed. Requires an OpenRouter API key in OPENROUTER_API_KEY, or MEDIAMCP_API_KEY plus MEDIAMCP_BASE_URL for another OpenAI-compatible endpoint. Optional variables set the default image and video models, output directory, timeout, preview size and schema dialect. Network access to the chosen API is required.
Installation
In SourceWeft
- Open Mediamcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Научите любого ИИ-агента создавать изображения и видео
mediamcp — это MCP-сервер, который соединяет вашего ИИ-ассистента — Claude Code, Claude Desktop,
Cursor, Windsurf, VS Code или любой другой клиент с поддержкой MCP — с облачными медиамоделями
(Gemini Flash Image, GPT-5 Image, Seedream, Veo, Sora, …) через OpenRouter или любой OpenAI-совместимый API.
[npm version] [CI] [node >= 20] [license: MIT]
English | Русский
⭐ Баннер выше сгенерирован самим mediamcp — один вызов generate_image.
Сгенерированные файлы всегда сохраняются на диск (по умолчанию в ~/Pictures/mediamcp), а каждый ответ содержит абсолютный путь к файлу и небольшое встроенное превью — агент сразу видит, что у него получилось.
ИИ-агентам: инструкция по установке, оптимизированная специально для вас, лежит в llms-install.md.
Вам понадобится API-ключ OpenRouter — получить его можно на https://openrouter.ai/keys.
Быстрая установка
Claude Code
Claude Desktop
Добавьте в claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json) и перезапустите Claude Desktop:
Cursor
Или добавьте в ~/.cursor/mcp.json:
Windsurf
Добавьте в ~/.codeium/windsurf/mcp_config.json:
VS Code (GitHub Copilot)
Или добавьте в .vscode/mcp.json (ключ запрашивается отдельно и не попадает в файл):
Что сможет делать ваш агент
После установки просто скажите агенту что-нибудь вроде «сгенерируй hero-изображение для моего лендинга, 16:9», «убери фон с logo.png», «сделай 8-секундное видео с океанскими волнами на закате» или «оживи logo.png в 4-секундное видео» (image-to-video). Агент сам выберет подходящий инструмент:
Конфигурация
Всё настраивается через переменные окружения в блоке env конфигурации вашего MCP-клиента:
Использование другого провайдера
Укажите в MEDIAMCP_BASE_URL любой OpenAI-совместимый эндпоинт и задайте соответствующий ключ:
mediamcp сам определяет, какой формат API поддерживает эндпоинт: выделенный эндпоинт /images (OpenRouter), /images/generations (классический OpenAI) или chat/completions с поддержкой изображений — первый сработавший вариант запоминается.
Диагностика проблем
- Попросите агента запустить инструмент
check_config— он сообщит, что именно настроено неверно и как это исправить. - Ту же диагностику можно запустить из терминала:
npx -y mediamcp --check(используются переменные окружения вашей оболочки). - Типичные проблемы:
- «No API key configured» — добавьте
OPENROUTER_API_KEYв блокenvзаписи сервера в конфигурации MCP-клиента (а не только в профиль оболочки) и перезапустите клиент. - «Out of credits (HTTP 402)» — пополните баланс на https://openrouter.ai/credits.
- «Not found (HTTP 404) … for model» — неверный слаг модели; запустите
list_models. - В клиенте ничего не происходит — убедитесь, что установлен Node.js ≥ 20 (
node --version). - «Tool '…' has an invalid outputSchema … unsupported dialect» — клиент проверяет схемы только по JSON Schema 2020-12. mediamcp публикует 2020-12 по умолчанию, так что ошибка означает старую версию: обновитесь и убедитесь, что
check_configпоказываетtool schema dialect: 2020-12.
- «No API key configured» — добавьте
Разработка
Лицензия
mcp-name: io.github.legolev/mediamcp
Source: README.md at commit ff7058e
Tools
0Version history
1- v0.3.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts