Leonardo MCP Server

Leonardo MCP Server

A Model Context Protocol server that enables AI assistants to generate images using Leonardo AI, supporting both HTTP and stdio communication modes.

Category
Visit Server

README

Leonardo MCP Server

A Model Context Protocol (MCP) server for Leonardo AI, supporting both HTTP and stdio modes.

Features

  • Create image generation jobs with Leonardo AI
  • See available models
  • Check the status of image generation jobs
  • Get all the user's image generation jobs
  • Supports both HTTP and stdio transports

Installation

JSON Config

Support for Claude Desktop, Cursor and other MCP clients that use JSON config files.

[!IMPORTANT]
You will need to generate a Leonardo API key and set it in the environment variable LEONARDO_API_KEY before running the server.

{
  "mcpServers": {
    "leonardo-mcp-server": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/ish-joshi/leonardo-mcp-server",
        "leonardo-mcp-server",
        "stdio"
      ],
      "env": {
        "LEONARDO_API_KEY": "YOUR_LEONARDO_API_KEY"
      }
    }
  }
}

Demo

IMAGE ALT TEXT HERE

Running Modes

This server supports two modes:

  • HTTP mode (default):
    • Suitable for remote clients (e.g., ChatGPT Playground, browser-based tools).
    • The server runs an HTTP endpoint. You must expose it to the internet if your client is remote.
  • Stdio mode:
    • Suitable for local clients that communicate over standard input/output (stdio).
    • No network port is opened.

HTTP Mode (for remote clients)

Start the server in HTTP mode (default):

uvx --from git+https://github.com/ish-joshi/leonardo-mcp-server leonardo-mcp-server

If your client is remote (e.g., ChatGPT Playground), you must expose your local server to the internet. You can use ngrok or a similar tunneling tool:

ngrok http 8080

Copy the public URL from ngrok and use it as the endpoint in your client.

Stdio Mode (for local clients)

Start the server in stdio mode:

uvx --from git+https://github.com/ish-joshi/leonardo-mcp-server leonardo-mcp-server stdio

Environment Variables

  • LEONARDO_API_KEY (required): Your Leonardo AI API key.

Development

  • Edit main.py to add or modify MCP tools.
  • Run using python main.py and test with a compatible MCP client. I prefer to use 5ire MCP client for testing.
  • See python-sdk documentation for more info.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured