vLLM Image MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Request timeout in seconds (CLI argument: --timeout) | 300 |
| vllm-url | No | Base URL of the vLLM-Omni server (CLI argument: --vllm-url) | http://localhost:6655 |
| max-concurrent | No | Max concurrent generations for batch (CLI argument: --max-concurrent) | auto |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AI-powered image generation server using vLLM-Omni. Supports single and batch image generation with automatic parameter tuning based on the loaded model.
BEFORE YOUR FIRST GENERATION: Call get_model_info to learn the loaded model's name and its prompt_guidance. Different models require very different prompting strategies. The prompt_guidance field contains model-specific rules you MUST follow.
IMPORTANT RULES:
You must always provide output_dir when generating images. Choose a path appropriate for the user's project.
Write prompts as natural language prose, NEVER as comma-separated tags.
Always specify lighting in your prompts — it has the biggest impact on quality.
Do NOT use quality tags like '8k, masterpiece, best quality' — they are counterproductive.
Subject description should come first in the prompt (first 10-20 words matter most).
30-80 words is the ideal prompt length for most models.
Choose output format based on context: 'webp' for web projects (smallest files), 'jpg' for general use (good compression), 'png' for lossless quality (default).
FLUX Klein models support up to 4K resolution (3840x2160). Use '16:9_4k' or '9:16_4k' aspect ratios for maximum detail when the user needs high-resolution output.
BATCH WORKFLOW: batch_generate returns IMMEDIATELY with a batch_id. Images generate in the background. WAIT 50 SECONDS after calling batch_generate before the first check_batch_progress call. Then continue polling every 50 seconds until status is 'completed'. Do NOT call check_batch_progress immediately after batch_generate — the images need time to generate.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageA | Generate a single image from a text prompt. PROMPT WRITING RULES (call get_model_info first for model-specific guidance):
Args: prompt: Natural language description of the image. Describe the subject first, then environment, style, and lighting. Be specific and descriptive. output_dir: Directory to save the image. Provide a path appropriate for the user's project (e.g. "./assets/images", "./public/img", "./output"). negative_prompt: What to avoid (only works with Qwen-Image models, ignored by FLUX). For Qwen, good defaults: 'blurry, low quality, distorted, watermark, oversaturated'. width: Image width in pixels (must be multiple of 16). height: Image height in pixels (must be multiple of 16). aspect_ratio: Shortcut for resolution, e.g. "16:9", "1:1", "9:16", "16:9_2k", "16:9_4k" (overrides width/height). FLUX Klein supports up to 4K. num_inference_steps: Number of diffusion steps (fewer = faster, more = higher quality). guidance_scale: CFG scale. For Qwen-Image: raise to 7.0 for text-heavy images. seed: Random seed for reproducibility. filename: Output filename (auto-generated if omitted). format: Output image format. Options: "png" (lossless, default), "jpg" (lossy, quality=95, good for general use), "webp" (lossy, quality=90, smallest files, ideal for web projects). Choose based on context. |
| batch_generateA | Start a batch image generation (returns immediately, does NOT block). Returns a batch_id immediately. Images generate in the background. IMPORTANT WORKFLOW:
Do NOT call check_batch_progress immediately — always wait 50 seconds between calls. Each prompt should follow the same rules as generate_image: natural language prose, subject first, explicit lighting, 30-80 words each, no quality tags. Args: prompts: List of natural language text prompts (max 20). Each prompt should be descriptive prose, not comma-separated tags. output_dir: Directory to save all images. Provide a path appropriate for the user's project. width: Width for all images in pixels. height: Height for all images in pixels. aspect_ratio: Aspect ratio shortcut for all images. FLUX Klein supports up to 4K (e.g. "16:9_4k"). num_inference_steps: Steps for all images. guidance_scale: CFG scale for all images. seeds: List of seeds (must match prompts length if provided). max_concurrent: Override concurrent limit (auto-detected if omitted). format: Output image format for all images. Options: "png" (default), "jpg", "webp". Choose based on context. |
| get_model_infoA | Get information about the currently loaded model, its recommended parameters, and prompt writing guidance. IMPORTANT: Call this before your first image generation to get model-specific prompt_guidance. Different models (FLUX vs Qwen) require very different prompting strategies. Returns the model name, type, default parameters, supported aspect ratios, VRAM estimate, and detailed prompt_guidance with rules and examples. |
| gpu_statusA | Check GPU memory usage and availability for generation capacity planning. Returns estimated VRAM usage, free memory, and recommended max concurrent generations. |
| list_presetsA | List available resolution presets and aspect ratios for the current model. Returns all supported aspect ratios with their pixel dimensions, resolution constraints, and max megapixels. |
| server_healthA | Check if the vLLM-Omni server is running, ready, and responsive. Returns server status, loaded model, response latency, and version. |
| estimate_generationB | Estimate generation time and resource usage without actually generating. Args: num_images: Number of images to estimate for. width: Image width in pixels. height: Image height in pixels. num_inference_steps: Steps per image. |
| cancel_batchB | Cancel a running batch generation. Args: batch_id: The batch ID returned by batch_generate. |
| check_batch_progressA | Check progress of a batch generation. TIMING: Wait 50 seconds after batch_generate before calling this. If status is still "in_progress", wait another 50 seconds before calling again. While in progress: returns completion counts and per-image statuses. When finished: returns full results with all file paths, then cleans up the batch. Args: batch_id: The batch ID returned by batch_generate. |
| list_active_batchesA | List all currently running batch generations and their IDs. Use this to find batch IDs for progress monitoring with check_batch_progress. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Most tools have clearly distinct roles: single vs batch generation, and the batch lifecycle (start/progress/cancel/list) is well-separated. A few pairs overlap mildly — get_model_info vs list_presets both surface aspect ratios/parameters, and gpu_status vs server_health both report readiness — but descriptions and arg differences make the intended pick clear.
The dominant pattern is verb_noun (generate_image, get_model_info, list_presets, estimate_generation, cancel_batch, check_batch_progress, list_active_batches), but there are deviations: batch_generate reverses to noun_verb, and gpu_status/server_health are bare noun phrases with no verb. Still readable, but not a single predictable convention.
Ten tools is well within a comfortable range and each one earns its place: generation, batch lifecycle, introspection (model info, presets, GPU, health) and estimation all serve real pre/post-generation needs. Nothing looks redundant or like padding.
The surface covers the full basic lifecycle: inspect model/health/VRAM, estimate, generate single or batch, poll progress, cancel, and discover active batches. Gaps exist for image-to-image/editing/upscaling and for listing previously generated outputs, but core text-to-image workflows have no dead ends.