mediamcp
v0.3.0Generate and edit images and video via OpenRouter or any OpenAI-compatible API.
Values you need
| Variable | What it is | |
|---|---|---|
OPENROUTER_API_KEY | required secret | OpenRouter API key (https://openrouter.ai/keys) |
MEDIAMCP_OUTPUT_DIR | optional | Directory for generated files (default: ~/Pictures/mediamcp) |
MEDIAMCP_MODEL | optional | 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.0Add 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
- Ask the user for: OPENROUTER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: generate_image, edit_image, generate_video, check_video_status, list_models, check_config.
- 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