multimodal-mcp
Integrates with ByteDance Ark/Volcengine APIs for image generation, speech recognition and synthesis, and video generation, including Ark speech resource selection.
Integrates with Google's Gemini API for image generation/editing, speech recognition, text-to-speech and voice design, video generation, and multimodal omni agents.
Integrates with OpenAI-compatible APIs for image generation and editing, audio transcription, speech synthesis, video generation, and omni agents that can analyze media.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
multimodal-mcp
One MCP server for media generation and media understanding across OpenAI, Gemini, MiniMax, Volcengine Ark, DeepSeek, self-hosted vLLM and vLLM-Omni deployments, multi-provider gateways and more. It covers reference-guided and masked image generation and editing (image), text, frame and multimodal-reference video generation (video), speech synthesis, zero-shot voice cloning, voice design and timed speech (tts), timed and speaker-labeled speech recognition (asr), text and layout recognition in documents and images (ocr), background multimodal sub-agents (omni) and structured decisions (decision).
Capability-gated tools and model selection: Declare providers, models and capabilities in TOML; the server registers only tools backed by a configured model, scopes each tool's
modelenum to capable models, and validates call-specific requirements (references, masks, first and last frames, reference video and audio, voice samples, timestamps, speakers, hotwords) before sending a request.Model-specific prompt and API guides:
get_model_guidepairs endpoint and model parameter rules with per-family official vendor prompt guides fetched from upstream on demand and indexed to the exact sections for the task; with the companion multimodal skill, agents check guides before drafting prompts, inspect generated images, video frames, transcripts and OCR pages afterward, and make at most one targeted repair call.Background omni sub-agents: Built on Pydantic AI, omni agents give text-only coding harnesses asynchronous background inspection of images, audio and video with native image and audio inputs,
ffmpeg/ffprobe, and transcription tools.
Installation
The server requires Python 3.12 or later and runs over stdio:
uvx multimodal-mcpor install it with pip install multimodal-mcp and run multimodal-mcp. For the development version, run uvx --from git+https://github.com/Vigilans/multimodal-mcp multimodal-mcp.
Register it with your MCP client as a stdio server named multimodal, for example:
{
"mcpServers": {
"multimodal": {
"command": "uvx",
"args": ["multimodal-mcp", "--config", "/home/me/.agents/mcp/multimodal/config.toml"]
}
}
}Install the companion multimodal skill (-g installs it globally):
npx skills add Vigilans/multimodal-mcp -s multimodalClaude Code, Codex, OpenCode and Pi can install the server and the skill together as the multimodal plugin from this repository:
claude plugin marketplace add Vigilans/multimodal-mcp
claude plugin install multimodal@multimodal-mcp
codex plugin marketplace add Vigilans/multimodal-mcp
codex plugin add multimodal@multimodal-mcp
opencode plugin add multimodal@git+https://github.com/Vigilans/multimodal-mcp.git # OpenCode 2.x
opencode plugin -g multimodal@git+https://github.com/Vigilans/multimodal-mcp.git # OpenCode 1.x
pi install git:github.com/Vigilans/multimodal-mcpEach plugin runs the server with uvx from the installed plugin's own copy, and finds the config as described under Configuration; Codex passes MULTIMODAL_MCP_CONFIG through to the server, and OpenCode and Pi pass their whole environment.
Without the skill installed, the server's built-in MCP instructions still direct clients to call list_models and get_model_guide before writing prompts.
On Windows, omni agents run their commands in Git Bash, so they require Git for Windows with git on PATH.
Related MCP server: ai-media-mcp
Configuration
The config file is read from --config <path>, then MULTIMODAL_MCP_CONFIG, then ~/.agents/mcp/multimodal/config.toml.
[providers.openai]
endpoint = "openai" # default for models without endpoint
env_key = "OPENAI_API_KEY" # or: api_key = "..."; base_url omitted: the official API
[providers.gateway] # a gateway serving several endpoints
env_key = "GATEWAY_API_KEY"
[providers.gateway.endpoints] # each endpoint's base_url; models name their endpoint
openai = "https://gateway.example.com/openai/v1"
ark = "https://gateway.example.com/ark/api/v3"
minimax = "https://gateway.example.com/minimax"
[providers.gemini]
endpoint = "gemini"
env_key = "GEMINI_API_KEY"
[[models.image]] # models.<image|video|tts|asr|ocr|omni|decision>
provider = "openai"
model = "gpt-image-2.6-flare"
description = "Fast image generation and editing"
capabilities = ["generate", "edit", "reference", "mask"]
[[models.image]] # capabilities from the API notes
provider = "gateway"
endpoint = "ark"
model = "doubao-seedream-5.0-pro"
description = "High-resolution generation from text and reference images"
[[models.video]] # an open-weight model the gateway serves with vLLM-Omni
provider = "gateway"
endpoint = "openai"
model = "MiniMaxAI/MiniMax-H3"
description = "Video with synchronized audio; text, first/last frame, or reference driven"
[[models.tts]]
provider = "gateway"
endpoint = "ark"
model = "doubao-seed-tts-2.0"
[[models.asr]]
provider = "gateway"
endpoint = "minimax"
model = "asr-1.0"
[[models.omni]] # omni models use the endpoint's chat completions
provider = "gemini"
model = "gemini-3.8-flash"
[defaults] # optional, per category
image = "gpt-image-2.6-flare"A model without capabilities takes the list from api-notes.toml for its endpoint and model ID, and the config fails to load when the API notes have none; the server treats unlisted capabilities as unsupported. A model without description likewise takes any default description in api-notes.toml for its model ID (used to distinguish variants within a family), while an explicit description always wins. Capabilities in the config must match what the endpoint implements for that model, since the server sends every call the listed capabilities allow. Tools, list_models and defaults name a model by its model value, or by <provider>/<model> when several entries in the same category share that value, such as gateway/gpt-image-2.6-flare beside openai/gpt-image-2.6-flare.
Capabilities
Category | Capability | Meaning |
|
| Create an image from a prompt; modify given images |
| Generate a new image following a reference's subject or style | |
| Edit only a masked region | |
|
| Text-only generation |
| First frame, or first and last frames | |
| Reference images, videos or audio | |
|
| Speak with a preset or registered voice ID |
| Imitate a voice sample sent with the request | |
| Return segment and word timing of the generated speech | |
| Create a reusable voice ID from a description | |
|
| Plain transcription |
| Timestamp granularity | |
| Speaker labels | |
| A dedicated hotword field: vLLM | |
|
| The text of each page |
| Labeled text blocks with their positions | |
|
| The media the model reads |
|
| Media and PDF files the model reads |
Model guides and prompt workflow
Multimodal models differ across vendors in accepted parameters, reference-media labels and prompt structure. get_model_guide fetches each family's official vendor prompting guides from upstream on first use into ~/.cache/multimodal-mcp/references/<family>/ so guidance stays complete and current, uses prompt-guides.toml to point the agent at only the task-relevant sections without flooding context with full manuals, and includes endpoint parameter rules from api-notes.toml. Cached files are reused across lang (en or zh); update=true re-downloads them in lang and keeps the existing copy if a download fails.
The companion multimodal skill turns this into a five-step loop (Prepare -> Write -> Run -> Check and fix -> Deliver): settle the model and read the named sections, write a model-specific prompt while keeping settings in tool parameters, run the call, inspect the output (images, sampled video frames, transcripts or truncated OCR pages) with at most one targeted retry, and deliver the result.
Tools and results
Tool | Registered when |
| always |
| always |
| an |
| an |
| a |
| a |
| a |
| an |
| an |
| an |
| an |
| an |
| a |
Model selection and options
Each tool's model parameter is an enum of the models that can perform it. Call arguments add capability requirements:
Category | Call argument | Required capability |
|
|
|
|
| |
| neither frames nor references |
|
|
| |
|
| |
|
|
|
|
| |
|
| |
|
|
|
|
| |
|
|
A named model that lacks a requirement is rejected before any request. Without model, the server uses the only capable model, else the category default if capable, else asks for a choice. Results report the model used.
generate_image, edit_image, generate_video, generate_speech, transcribe_audio, transcribe_audio_with_timestamps, recognize_text, recognize_text_with_layout, decide and decide_batch take options, merged into the endpoint's request body, for fields beyond the common parameters; the API notes list the useful ones.
Output files and schemas
Results are written to ~/.cache/multimodal-mcp/<YYYY-MM-DD>/<category>/ unless an absolute output_path is given, and tools return the file path:
Images:
generate_imageandedit_imagesave the generated images and returnpaths.Videos:
generate_videosubmits a job without waiting;get_video_jobsaves the MP4 when the job completes, to its ownoutput_pathwhen given.Speech:
generate_speechsaves the audio file and returnspath, plustimestamps_pathwhentimestamps=truereturns timings;voice_designsaves a preview clip and returnsvoice_idandpreview_path.Transcripts and timings:
transcribe_audiosaves the provider's JSON response and returnstextandpath.transcribe_audio_with_timestampsandgenerate_speech(timestamps=true)write{text, duration?, segments: [{start, end, text, speaker?}], words: [{start, end, word, speaker?}]}with times in seconds, where either list may be empty;transcribe_audio_with_timestampsalso saves the provider's response beside the result.OCR:
recognize_textwrites the pages to Markdown, each opened by<!-- page N -->;recognize_text_with_layoutwrites{page_count, pages: [{page, complete, blocks: [{label, box, text}]}]}, whereboxis[x1, y1, x2, y2]scaled to0-1000of the page's width and height. Both save the provider's response beside the result and returnincomplete_pages, the pages whose text was cut short.
Background omni agents
Omni agents run in the background on Pydantic AI (pydantic-ai and pydantic-ai-harness):
Lifecycle:
start_omni_agentstarts a run and returns anagent_idat once;wait_omni_agentswaits until any listed agent's run ends or the timeout passes;get_omni_agentreturns its status, answer or error, and a page of the tool calls it made.Steering and cancellation:
continue_omni_agentadds a message to the active run, or starts a new run on the conversation after the previous one ended;stop_omni_agentcancels the current run while keeping the conversation so far.Runtime and limits: Agents read files (receiving
wavandmp3files as native audio when the model hasaudio), calllist_models,get_model_guideand the transcription tools, and run shell commands such asffmpegandffprobe, taken fromPATHor, whenPATHlacks either, downloaded once withstatic-ffmpeg. Agents live in server memory and are lost when the server restarts, and a provider request already in flight may complete and be billed after cancellation.
Structured decisions
Decision models make structured judgments in a single forward pass, complementing background omni agents:
System 2 (
omni): A multi-turn reasoning loop with shell and media tools for open-ended inspection.System 1 (
decision): A single forward pass that evaluates independentnoul,choiceandscorequestions with calibrated probabilities.
Subjects are passed as state (text or JSON), local files (UTF-8 text, media or PDF), or both, and tools return structured answers directly without writing files. decide evaluates one subject; decide_batch runs the same questions across independent records in input order, isolating record-level errors and placing shared state or leading files first for prefix caching.
Endpoints
An endpoint is an API protocol the server speaks, such as OpenAI's or Ark's. Each endpoint sends requests to a base_url, the API root that the paths in the table below are appended to. Without one, it uses the default API root in the table.
A provider's endpoint applies to all its models, and a model can name a different one with its own endpoint, so one gateway can serve several endpoints under one base_url. A gateway whose endpoints sit under different API roots sets endpoints instead of endpoint and base_url: each key is an endpoint, each value is that endpoint's base_url, and every model on the gateway names its endpoint.
A base_url without a path gets the path of the endpoint's default base_url, so https://gateway.example.com becomes .../v1 for openai, .../v1beta for gemini and .../api/v3 for ark. The vllm/openai, systemone and vllm/systemone endpoints also use .../v1, and ark/systemone uses .../api/v1. A base_url with a path is used as given.
Endpoint | Default | Image | Video | TTS | ASR | OCR | Decision |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| |
|
|
|
|
|
| ||
|
|
|
|
|
|
| |
|
|
|
|
| |||
|
|
|
|
|
|
| |
|
|
| |||||
|
|
| |||||
|
|
|
Omni models use OpenAI-compatible chat completions on every endpoint except systemone, vllm/systemone and ark/systemone: at the API root on openai, vllm/openai and ark, at /openai below it on gemini, and at /v1 on deepseek and minimax. Their default capabilities come from the vllm/openai API notes for models listed there, otherwise from the openai ones. ark and deepseek ASR decode audio with ffmpeg from PATH, downloaded once with static-ffmpeg when PATH lacks it, the same copy omni agents use.
Volcengine Ark: An
arkbase_urlreplaces both default roots (media and speech), so a provider with separate image/video and speech roots needs one provider entry per root. Decisions post to theark/systemoneroute beside thebase_url, with a trailing/api/v3replaced by/api/v1. Include any plan prefix, such as.../api/plan/v3for Agent Plan images and video and.../api/v3/planfor Agent Plan speech. Ark speech models select their service withX-Api-Resource-Id:doubao-seed-tts-2.0anddoubao-seed-asr-2.0map toseed-tts-2.0andvolc.seedasr.sauc.duration; any other model name is sent as the resource ID.DeepSeek: DeepSeek's speech and OCR requests name no model; configure them as
deepseek-tts,deepseek-asranddeepseek-ocr, which take their capabilities from the API notes.Video media inputs:
minimaxandarkvideo inputs pass URLs,data:URIs and asset URIs such asasset://IDthrough unchanged and inline local files as base64. Ark accepts reference videos only as public URLs orasset://IDs.vLLM and System One: On shared gateways,
openaiuses native Decisions forgpt-*exceptgpt-oss*,systemoneuses TypeSafe forjev-*and theark/systemoneformat fordoubao-*, and other decision models use the corresponding vLLM format.
Development
uv sync --locked
uvx ruff check src/multimodal_mcp tests
uv run pytest
uv buildCI runs the tests on Linux and Windows. Changes to how omni agents run shell commands should also pass uv run pytest tests/test_workspace.py on Windows.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate and edit images, video, voice, lip-sync and 3D models from your AI agent.
Video, image and audio generation on top AI models for agents, with an AI director built in.
Generate and edit images, video, voiceovers, music and sound effects from chat.
Turn any LLM multimodal; generate images, voices, videos, 3D models, music, and more.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceA creative agent that plans and executes across image, video, and audio. Uses 30+ tools, orchestrates 20+ AI models, and does agentic timeline editing.MIT- AlicenseAqualityCmaintenanceEnables image and video generation across GPT-Image, Gemini, Grok, and Jimeng with file-based outputs, multi-reference support, and model capability lookup.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to generate cinematic video and image assets and perform autonomous timeline assembly, multi-track audio editing, chroma-key compositing, and local draft manipulation from conversational prompts.3MIT
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to generate images and videos, synthesize speech, clone and design voices, and dynamically configure API interactions.431 npmMIT