mediamcp

v0.3.0
io.github.legolev/mediamcp Checked 4 days ago Published 3 months ago

Generate and edit images and video via OpenRouter or any OpenAI-compatible API.

Values you need

VariableWhat it is
OPENROUTER_API_KEYrequired secret OpenRouter API key (https://openrouter.ai/keys)
MEDIAMCP_OUTPUT_DIRoptional Directory for generated files (default: ~/Pictures/mediamcp)
MEDIAMCP_MODELoptional Default image model slug (default: google/gemini-2.5-flash-image)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mediamcp -e 'OPENROUTER_API_KEY=<OPENROUTER_API_KEY>' -- npx -y mediamcp@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mediamcp": {
      "args": [
        "-y",
        "mediamcp@0.3.0"
      ],
      "command": "npx",
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mediamcp": {
      "args": [
        "-y",
        "mediamcp@0.3.0"
      ],
      "command": "npx",
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OPENROUTER_API_KEY",
      "id": "openrouter-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mediamcp": {
      "args": [
        "-y",
        "mediamcp@0.3.0"
      ],
      "command": "npx",
      "env": {
        "OPENROUTER_API_KEY": "${input:openrouter-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mediamcp]
command = "npx"
args = ["-y", "mediamcp@0.3.0"]
env = { "OPENROUTER_API_KEY" = "<OPENROUTER_API_KEY>" }

For AI agents

  1. Ask the user for: OPENROUTER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: generate_image, edit_image, generate_video, check_video_status, list_models, check_config.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json