Remote MCP server for Leonardo.ai image generation platform, powered by Vercel
This Leonardo AI MCP server demonstrates good definition quality with consistent tool naming, comprehensive descriptions, and well-structured schemas using Zod validation. All 14 tools follow clear verb_noun naming conventions (get_, list_, create_, delete_, download_) and each has a substantive description (ranging 95-400+ characters). Most parameters include type definitions and descriptions. However, there are notable gaps: (1) output schemas are not explicitly documented for any tool, responses are inferred from implementation rather than declared in the tool definition, (2) several tools lack parameter descriptions (e.g., generate_image's optional parameters have descriptions but lack enum constraints for preset_style despite listing valid values), (3) no explicit error handling guidance is provided to help LLMs understand recovery paths, and (4) some parameter relationships are undocumented (e.g., motion_strength range 0.0-1.0 is described but not enforced in schema). The server correctly uses header-based secret injection for the Leonardo API key, avoiding credential exposure in tool parameters. Tool composition is clean with single responsibilities and good chaining via return of generation_id and motion_generation_id for downstream calls. Per-tool analysis shows consistent quality: naming is excellent across all tools, descriptions range from good to excellent (95-200+ chars), and schemas are present but incomplete (Zod validators visible but not all parameter constraints are formalized as enums).
Generate a motion/video version of an image using Leonardo's Motion module. Specify a prompt, model, optional keyframe image, and motion parameters. Polls for completion and returns the video MP4 URL.
Create a variation, outpaint, inpaint, or unzoom of an existing generated image. Supports transformation types including OUTPAINT, INPAINT, UPSCALE, and UNZOOM.
Delete a generation by ID. This permanently removes the generation and its associated images from Leonardo.ai.
Download all images from a generation and return them as base64-encoded data. Includes metadata about each image.
Download a generated image from a URL and return it as base64-encoded data. Useful for saving or further processing generated images.
Download a motion/video file from a URL and return it as base64-encoded data. Useful for saving generated videos.
Output schemas are not documented. Tool descriptions explain results in natural language ('Returns generation status and image URLs') but formal response schemas are missing. LLMs must infer output structure from descriptions rather than having explicit typed definitions.
preset_style parameter lists valid values in description ('CINEMATIC, CREATIVE, VIBRANT...') but these are not formalized as an enum constraint in the Zod schema. LLMs may hallucinate invalid style values. Should use z.enum() instead of z.string().optional().
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 66 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 43 | - | v1 |
Generate images using Leonardo AI. Provide a prompt and optional parameters like model ID, dimensions, number of images, and style presets. The tool will start the generation and poll for results (up to 30 seconds). Returns the generation status and image URLs when complete.
Get the status and details of a generation by ID. Shows whether generation is pending/complete/failed, the prompt, model used, dimensions, and generated image URLs.
Get the status and details of a motion generation by ID. Shows whether generation is pending/complete/failed and the output video MP4 URL when ready.
Get the current authenticated Leonardo AI user's information including username, subscription tokens, and API quota.
List your custom/trained Leonardo AI models. Returns model IDs, names, and descriptions. Use get_user_info first to get your user ID.
List generations for a specific user. Returns generation IDs, statuses, prompts, and timestamps. Useful for reviewing past generations.
List all available Leonardo AI platform models. Returns model IDs, names, and descriptions. Use the model ID when generating images.
Upscale a generated image to higher resolution. Specify the upscale multiplier (e.g., 2x, 4x) to increase image dimensions.
No explicit error handling guidance. Tool implementations return errors as text ('{"type": "text", "text": `Error: ...`}') but do not categorize them (retryable vs. user-fixable vs. fatal) or provide recovery suggestions. For example, 'Invalid prompt' should suggest checking length/content constraints; API rate limit should suggest retry with backoff.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). While risk classifications are provided in the prompt metadata (READ_ONLY, WRITE, DESTRUCTIVE), these are not exposed in the MCP tool definitions. Clients cannot determine which tools are safe to call multiple times (idempotent) or which modify state without parsing descriptions.
Undocumented parameter relationships. generate_image has conditional parameter behavior (e.g., preset_style applies only when alchemy/photo_real are false, or width/height must be compatible aspect ratios) but these constraints are not stated in parameter descriptions.
create_variation transform_type parameter is documented as optional but is functionally required to determine the transformation behavior. Leaving it unspecified could result in undefined API behavior. Should be required or have a documented default.