ElevenLabs Image Generation MCP Server
Allows generating images from text prompts using ElevenLabs' image generation capabilities, with support for various models and authentication management.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ElevenLabs Image Generation MCP Server Generate an image of a futuristic city skyline at sunset"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ElevenLabs Image Generation MCP Server
An MCP (Model Context Protocol) server that generates images using ElevenLabs' Image & Video feature via Playwright browser automation.
Features
generate_image - Generate images from text prompts using ElevenLabs
list_models - List available image generation models
get_session_status - Check authentication status
Related MCP server: local-browser-mcp-server
Available Models
Model ID | Name | Description |
| GPT Image 1.5 (default) | OpenAI - precise, high-quality generation |
| GPT Image 1 | OpenAI - text-based creation and editing |
| Flux 1 Kontext Pro | Professional style control via reference images |
| Seedream 4 | Multi-shot sequences with stable physics |
| Nano Banana (Google) | High-speed iterations |
| Wan 2.5 | Strong prompt fidelity |
Installation
# Clone the repository
git clone git@github.com:ddunford/elevenlabMCP.git
cd elevenlabMCP
# Install dependencies
npm install
# Build
npm run build
# Install Playwright browser
npx playwright install chromiumQuick Setup (One-Liner)
Add to Claude Code globally:
claude mcp add elevenlabs-image -s user -- node /path/to/elevenlabMCP/dist/index.jsOr manually add to ~/.claude.json:
{
"mcpServers": {
"elevenlabs-image": {
"type": "stdio",
"command": "node",
"args": ["/path/to/elevenlabMCP/dist/index.js"],
"env": {}
}
}
}Usage
In Claude Code
After adding the MCP server, restart Claude Code. The tools will be available as:
mcp__elevenlabs-image__generate_imagemcp__elevenlabs-image__list_modelsmcp__elevenlabs-image__get_session_status
generate_image
Generate an image from a text prompt.
Parameters:
Parameter | Required | Description |
| Yes | Text description of the image to generate |
| No | Model ID (default: |
| No | Directory to save image (default: |
| No | e.g., "1:1", "16:9", "9:16" |
| No | What to avoid in the image |
| No | ElevenLabs account email (for first-time auth) |
| No | ElevenLabs account password (for first-time auth) |
Example:
Generate an image of a cyberpunk city at night with neon lightslist_models
Returns all available image generation models with their capabilities.
get_session_status
Check if currently logged in to ElevenLabs.
Authentication
On first use, provide your ElevenLabs credentials via the email and password parameters. The session is persisted in .auth/ so subsequent calls don't require credentials.
How It Works
Uses Playwright to automate the ElevenLabs web interface (no API available for image generation)
Maintains a persistent browser session for authentication
Navigates to the Image & Video page
Enters prompts and generates images
Downloads generated images from the History page
Project Structure
elevenlabMCP/
├── src/
│ ├── index.ts # Entry point
│ ├── server.ts # MCP server setup
│ ├── tools/ # MCP tool implementations
│ ├── browser/ # Playwright automation
│ ├── auth/ # Authentication handling
│ └── config/ # Configuration
├── dist/ # Compiled JavaScript
├── assets/ # Generated images output
└── .auth/ # Session storage (gitignored)Environment Variables (Optional)
Create a .env file:
ELEVENLABS_EMAIL=your@email.com
ELEVENLABS_PASSWORD=yourpassword
HEADLESS=true # Set to false for debuggingNotes
Image generation typically takes 30-60 seconds
Generated images are saved as WebP files
The browser runs headless by default; set
HEADLESS=falseto see the browser
License
MIT
Available Tools
3 toolsgenerate_imageA
Generate an image using ElevenLabs Image & Video feature. Returns the path to the downloaded image file.
Inputs: prompt (required), email, model, password, +3 more.
get_session_statusA
Check if currently logged in to ElevenLabs and get session information
Inputs: no named parameters.
list_modelsA
List all available image generation models on ElevenLabs
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct purpose: generating images, checking session status, and listing models. No overlap or ambiguity.
All tool names follow a consistent verb_noun pattern using snake_case: generate_image, get_session_status, list_models.
Three tools is appropriate for a focused image generation server, covering essential actions without being too sparse or bloated.
The set covers the core image generation workflow (list models, check session, generate) but lacks tools for managing or retrieving past generations, leaving minor gaps.
Maintenance
Related MCP Connectors
Manage ElevenLabs voice agents and generate speech, music, sound effects, images, and video.
Create images and videos from prompts, with options for image mixing, reference images, and start/…
Generate images, videos, voiceovers, and captions from a chat prompt.
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Related MCP Servers
- AlicenseAqualityDmaintenanceControls Google Flow for image and video generation from an AI agent. Enables generating images with models like Imagen 4, creating videos, managing characters and scenes via browser automation.17131 npm123MIT
- AlicenseAqualityDmaintenanceEnables browser automation (navigation, screenshots, clicking, typing) and AI image generation using Puppeteer and Google Gemini.111MIT
- AlicenseNot gradedqualityCmaintenanceEnables generating images and videos on Google Flow through browser automation using your Google AI Pro subscription, with image generation free and video consuming Flow credits.131 npm1MIT
- AlicenseAqualityCmaintenanceGenerates images via any OpenAI-compatible API, auto-detecting image models and saving results to disk with optional inline previews.6MIT