Leonardo AI MCP Server

Leonardo AI MCP Server

leonardo-ai-mcp-server•bynikolausm

An MCP server that provides access to Leonardo AI's image generation API, letting clients generate images, check credits, and list available models.

License: MIT•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Generates images from prompts using a selection of AI models and supports multiple art styles.
  • •Supports batch generation of one to four images at once and saving images locally or returning URLs.
  • •Lets users check remaining credits and list available models.
  • •Offers a free credits system of 150 credits daily, resetting at midnight UTC.

BEST FOR

  • •Creating children's book illustrations with a specific model, negative prompt, and dimensions.
  • •Producing educational posters or infographics through multi-image generation.
  • •Generating anime or cartoon style images with tailored models and negative prompts.

ABOUT LEONARDO-AI-MCP-SERVER

Leonardo AI MCP Server is cataloged as an MCP server attributed to nikolausm. An MCP server that provides access to Leonardo AI's image generation API, letting clients generate images, check credits, and list available models. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Leonardo AI MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

Upstream README

View this exact version on GitHub

README.md · a562530fb9ef · Fetched 2026-11-13 11:51:49 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Leonardo AI MCP Server

An MCP (Model Context Protocol) server that provides access to Leonardo AI's image generation API with 150 free daily credits.

Features

  • Generate high-quality images using various AI models
  • 150 free credits daily (refreshes at midnight)
  • Support for multiple art styles and models
  • Batch generation (1-4 images at once)
  • Save images locally or get URLs
  • Check remaining credits

Available Models

  • Leonardo Diffusion XL: High-quality general purpose model
  • Leonardo Vision XL: Photorealistic and artistic styles
  • Leonardo Anime XL: Anime and manga style images
  • DreamShaper v7: Fantasy and dreamlike images
  • Realistic Vision v5: Highly realistic photographs

Installation

  1. Clone this repository:
git clone https://github.com/nikolausm/leonardo-ai-mcp-server.git
cd leonardo-ai-mcp-server
  1. Install dependencies:
npm install
  1. Get your Leonardo AI API key:

  2. Set up environment variable:

export LEONARDO_API_KEY="your_api_key_here"

Configuration in Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "leonardo-ai": {
      "command": "node",
      "args": ["/path/to/leonardo-ai-mcp-server/index.js"],
      "env": {
        "LEONARDO_API_KEY": "your_api_key_here"
      }
    }
  }
}

Usage

Generate an Image

// Basic usage
generate_image({
  prompt: "a majestic castle on a hilltop at sunset"
})

// Advanced usage
generate_image({
  prompt: "cute cartoon guinea pig with big eyes",
  model: "leonardo-anime-xl",
  negative_prompt: "realistic, scary, dark",
  num_images: 2,
  width: 768,
  height: 768,
  guidance_scale: 10,
  save_path: "/tmp/guinea_pig.png"
})

Check Remaining Credits

check_credits()

List Available Models

list_models()

Free Credits System

  • 150 credits daily (resets at midnight UTC)
  • Each image costs approximately 2 credits
  • That's about 75 images per day for free!
  • No credit card required

Tips for Better Results

  1. Use specific models:

    • leonardo-anime-xl for anime/cartoon style
    • realistic-vision-v5 for photorealistic images
    • dreamshaper-v7 for fantasy art
  2. Optimize dimensions:

    • Use multiples of 8 (512, 768, 1024)
    • Square images often work best
  3. Negative prompts are powerful:

    • Use them to avoid unwanted elements
    • Example: "blurry, low quality, distorted"

Examples

Children's Book Illustration

generate_image({
  prompt: "friendly guinea pig reading a book, children's illustration, soft pastel colors",
  model: "leonardo-diffusion-xl",
  negative_prompt: "realistic, dark, scary",
  width: 768,
  height: 768
})

Educational Poster

generate_image({
  prompt: "educational poster showing guinea pig care, clean design, infographic style",
  model: "leonardo-vision-xl",
  num_images: 3,
  guidance_scale: 12
})

Error Handling

The server handles common errors:

  • Invalid API key
  • Insufficient credits
  • Generation failures
  • Timeout issues

License

MIT

Author

Michael Nikolaus

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Leonardo AI MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/leonardo-ai-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design