Leonardo AI MCP Server
@nikolausm
MCP server for Leonardo AI API - Free daily credits for AI image generation
Overview
What is Leonardo AI MCP Server?
A Model Context Protocol server that provides access to Leonardo AI’s image generation API, offering 150 free image credits per day. It enables AI image generation directly from MCP-compatible clients like Claude Desktop.
How to use Leonardo AI MCP Server?
Clone the repository, install dependencies with npm install, set the LEONARDO_API_KEY environment variable, then add the server to your Claude Desktop configuration. Use tools like generate_image, check_credits, and list_models to create images, monitor credits, or browse available models.
Key features of Leonardo AI MCP Server
- Generate high-quality images using various AI models
- 150 free credits daily (resets at midnight UTC)
- Support for multiple art styles and models
- Batch generation (1–4 images at once)
- Save images locally or get URLs
- Check remaining credits
Use cases of Leonardo AI MCP Server
- Create children’s book illustrations with soft pastel colors
- Design educational posters with infographic-style layouts
- Generate anime or cartoon-style artwork
- Produce fantasy or dreamlike images using DreamShaper v7
- Rapidly prototype visual concepts for creative projects
FAQ from Leonardo AI MCP Server
How do I get an API key?
Sign up at https://leonardo.ai (free), go to API settings, generate an API key, and set it as the LEONARDO_API_KEY environment variable.
How many free credits do I get?
150 credits daily, resetting at midnight UTC. Each image costs about 2 credits, giving roughly 75 images per day for free.
Which models are available?
Leonardo Diffusion XL, Leonardo Vision XL, Leonardo Anime XL, DreamShaper v7, and Realistic Vision v5.
Can I generate multiple images at once?
Yes. Use the num_images parameter to request 1–4 images in a single call.
How do I check my remaining credits?
Call the check_credits function. It returns the current credit balance.

