Labnana MCP
Generate and edit images through Labnana, with eight models and inline previews
Labnana MCP is an MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 2.2.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add labnana-mcp --env LABNANA_API_KEY='<LABNANA_API_KEY>' -- npx -y @exoticknight/labnana-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"labnana-mcp": {
"command": "npx",
"args": [
"-y",
"@exoticknight/labnana-mcp"
],
"env": {
"LABNANA_API_KEY": "<LABNANA_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"labnana-mcp": {
"command": "npx",
"args": [
"-y",
"@exoticknight/labnana-mcp"
],
"env": {
"LABNANA_API_KEY": "<LABNANA_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"labnana-mcp": {
"command": "npx",
"args": [
"-y",
"@exoticknight/labnana-mcp"
],
"env": {
"LABNANA_API_KEY": "<LABNANA_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"labnana-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@exoticknight/labnana-mcp"
],
"env": {
"LABNANA_API_KEY": "<LABNANA_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add labnana-mcp --env LABNANA_API_KEY='<LABNANA_API_KEY>' -- npx -y @exoticknight/labnana-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.labnana-mcp]
command = "npx"
args = ["-y", "@exoticknight/labnana-mcp"]
env = { LABNANA_API_KEY = "<LABNANA_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"labnana-mcp": {
"command": "npx",
"args": [
"-y",
"@exoticknight/labnana-mcp"
],
"env": {
"LABNANA_API_KEY": "<LABNANA_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }Or run: gemini mcp add -s user -e LABNANA_API_KEY='<LABNANA_API_KEY>' labnana-mcp npx -- -y @exoticknight/labnana-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "labnana-mcp": { "command": "npx", "args": [ "-y", "@exoticknight/labnana-mcp" ], "env": { "LABNANA_API_KEY": "<LABNANA_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
LABNANA_API_KEYLabnana API key.RequiredLABNANA_OUTPUT_DIRDefault directory for saved images.
About Labnana MCP
Labnana is an image generation API, and this local server wraps it for Claude, Claude Code and other MCP clients. One generate_image tool handles text-to-image, image-to-image and editing, saves the full original to disk and returns a bounded preview with structured metadata, including size, hash and file path. 4K requests are polled internally, and a task lookup tool recovers results after a timeout.
The README maps eight models to the model parameter: Nano Banana Pro and Nano Banana 2 from Google, GPT-Image-2 and two 2.5 variants from OpenAI, two Wan2.7 models from Alibaba and Seedream 5.0 Pro from ByteDance. Resolutions run from 1K to 4K depending on the model, and some models accept reference images, with Wan2.7 Image Pro limited to 2K when references are used.
It needs a LABNANA_API_KEY and Node.js 20.9 or later. An estimate tool shows the credits a generation would cost, and a subscription tool reports balances and free usage. Version 2.x also publishes an MCP Apps preview for hosts that can render it.
Tools this server provides (5)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 3 of 5 tools read data; 2 names don't say.
From the server's own tool labels and tool names; not verified by us.
- generate_image
- Text-to-image, image-to-image and editing, saving the original and returning a preview.
- estimate_credits
- Estimate the credits required for a generation without generating an image.
- get_subscriptionName suggests: reads
- Get subscription status, credit balances and free usage information.
- list_generation_tasksName suggests: reads
- List generation task history with pagination and status filtering.
- get_generation_taskName suggests: reads
- Get task details and public image URLs.
What it does
- Multi-model generation
- Choose among eight models from Google, OpenAI, Alibaba and ByteDance.
- Editing with references
- Edit images or guide generation with reference images.
- Credit estimates
- Estimate the credits a generation will use before running it.
- Saved originals
- Full-size originals are saved locally with a bounded preview returned.
- Task history
- List past generation tasks and recover results after timeouts.
- Inline previews
- An MCP Apps view renders previews in capable hosts.
Good for
- Generate a poster or illustration from a prompt
- Change the background of an existing image
- Check credit cost before a 4K generation
- Review earlier generation tasks and download links
Pricing
Pricing unknown
Credit-based; prices not listed here
Labnana MCP FAQ
What do I need to run Labnana MCP?
Node.js 20.9 or later and a Labnana API key in LABNANA_API_KEY.
Where are images saved?
In LABNANA_OUTPUT_DIR if set, otherwise a labnana-images folder under the working directory.
Can I see the cost first?
Yes, the estimate_credits tool reports the credits needed without generating an image.
Which resolutions are supported?
1K, 2K and 4K depending on the model, with some models limited to 2K.
How do I add Labnana MCP to Claude Code?
Run this command in your terminal: claude mcp add labnana-mcp --env LABNANA_API_KEY='<LABNANA_API_KEY>' -- npx -y @exoticknight/labnana-mcp
What are the best alternatives to Labnana MCP?
The closest alternatives to Labnana MCP are HyperFrames by HeyGen, headroom, omniget, ffmpeg-skill and next-ai-draw-io.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.



