# Labnana MCP

> Labnana MCP is an MCP server for design and media. Generate and edit images through Labnana, with eight models and inline previews. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI
- **Repository:** https://github.com/exoticknight/labnana-mcp
- **MCP Registry name:** io.github.exoticknight/labnana-mcp
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add labnana-mcp --env LABNANA_API_KEY='<LABNANA_API_KEY>' -- npx -y @exoticknight/labnana-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "labnana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exoticknight/labnana-mcp"
      ],
      "env": {
        "LABNANA_API_KEY": "<LABNANA_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add labnana-mcp --env LABNANA_API_KEY='<LABNANA_API_KEY>' -- npx -y @exoticknight/labnana-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.labnana-mcp]
command = "npx"
args = ["-y", "@exoticknight/labnana-mcp"]
env = { LABNANA_API_KEY = "<LABNANA_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "labnana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exoticknight/labnana-mcp"
      ],
      "env": {
        "LABNANA_API_KEY": "<LABNANA_API_KEY>"
      }
    }
  }
}
```

## Tools

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_subscription` (name suggests: reads): Get subscription status, credit balances and free usage information.
- `list_generation_tasks` (name suggests: reads): List generation task history with pagination and status filtering.
- `get_generation_task` (name suggests: reads): Get task details and public image URLs.

## 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.

## Alternatives

- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [ffmpeg-skill](https://ai-powered.com/mcp/ffmpeg-skill): ffmpeg-skill is an open-source MCP server for design and media.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/labnana-mcp
