Leonardo AI MCP Server
@nikolausm
About Leonardo AI MCP Server
MCP server for Leonardo AI API - Free daily credits for AI image generation
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"leonardo-ai": {
"command": "node",
"args": [
"/path/to/leonardo-ai-mcp-server/index.js"
],
"env": {
"LEONARDO_API_KEY": ""
}
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
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.
Frequently asked questions
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.
Basic information
More Other MCP servers
Codelf
unbugA search tool helps dev to solve the naming things problem.

DeepMark
DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
Nginx UI
0xJackyYet another WebUI for Nginx
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Comments