Labnana MCP logo

Labnana MCP

Generate, edit, preview, and track Labnana images through a local MCP server.

Install Labnana MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "labnana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@exoticknight/labnana-mcp"
      ],
      "env": {
        "LABNANA_API_KEY": "YOUR_VALUE_HERE",
        "LABNANA_OUTPUT_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env LABNANA_API_KEY=YOUR_VALUE_HERE --env LABNANA_OUTPUT_DIR=YOUR_VALUE_HERE --transport stdio labnana-mcp -- npx -y @exoticknight/labnana-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 5 tools correctly ().

Overview

Labnana MCP MCP server connects MCP clients to the Labnana OpenAPI for text-to-image generation, image-to-image workflows, and image editing. Its local stdio process saves full-resolution originals, returns bounded previews and structured metadata, and polls 4K jobs internally. Use it when an agent needs Labnana image generation alongside credit estimates, account status, or generation history. It supports model selection across Google, OpenAI, Alibaba, and ByteDance offerings listed by Labnana.

Use cases

  • Generate images from agent-written prompts
  • Edit images using reference files
  • Estimate generation costs before running jobs
  • Review subscription credits and free usage
  • Retrieve results from timed-out generation tasks

Key features

  • Text-to-image, image-to-image, and image editing
  • Local saving of full-resolution originals
  • Bounded MCP image previews with structured metadata
  • Credit estimation and subscription information
  • Paginated generation history and task lookup
  • Internal polling for 4K requests

Tools5

What Labnana MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 78d

What it can do

From the 5 tools this server returned when we ran it.

Handles credentials · 2Makes network requests · 1Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age87 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @exoticknight/labnana-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads338Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.

How Labnana MCP works

What Labnana MCP MCP server does

Labnana MCP exposes Labnana image-generation features as MCP tools for clients such as Claude Desktop, Claude Code, Cursor, and VS Code. The primary generate_image tool handles text prompts, reference-image workflows, and edits. It saves the original result locally and returns a client-friendly response containing an image preview, structured metadata, and JSON text.

The available model values cover several Labnana products: Google’s Nano Banana Pro and Nano Banana 2, OpenAI’s GPT-Image-2 and GPT-Image-2.5 variants, Alibaba’s Wan2.7 models, and ByteDance’s Seedream 5.0 Pro. Supported resolutions and model behavior vary, so callers should select the model and image settings appropriate to the task.

How it works

The package runs as a local Node.js MCP process and communicates with Labnana’s API using an API key. Install it with npx or build the repository and launch the generated dist/index.js file. MCP clients invoke the exposed tools and receive results through the standard server connection.

generate_image accepts a model, prompt, optional reference images, and image configuration such as resolution and aspect ratio. Use referenceImages for image-to-image generation or editing. Full originals are written to disk, while previews are bounded to a maximum 1600-pixel edge and target a 2 MiB size ceiling. The response also identifies the saved file and public image URL when available.

For 4K requests, the server handles polling internally. If a generation call times out, get_generation_task can retrieve task details and public image URLs using the task identifier.

Setup and configuration

Node.js 20.9 or newer is required. Create an API key in the Labnana API Keys console, then expose it to the MCP process through LABNANA_API_KEY.

A package-based configuration uses the following command:

Terminal
npx -y @exoticknight/labnana-mcp

For a source checkout, run npm install, then npm run build, and configure the client to start dist/index.js with Node.js. Claude Code can add the package with claude mcp add; other clients use their equivalent MCP server configuration.

LABNANA_OUTPUT_DIR changes the default image destination. Without it, images are placed in labnana-images/ below the working directory. The process also accepts --api-key, --base-url, and --output-dir command-line options, although environment variables avoid exposing credentials in the local process list. The default API endpoint is https://api.labnana.com.

Tools and capabilities

  • generate_image creates or edits images from prompts and optional reference images, with model, size, and aspect-ratio controls.
  • estimate_credits calculates the expected credit cost without starting a generation.
  • get_subscription reports subscription status, credit balances, and free-use information.
  • list_generation_tasks returns paginated task history with optional status filtering.
  • get_generation_task retrieves task details and public image URLs.

Responses use a consistent envelope with status, task ID, image dimensions, MIME type, byte length, checksum, URL, and local file path where applicable. Image base64 is returned through standard MCP image content rather than duplicated in text or structured metadata.

Limitations and notes

Full 4K originals are saved or referenced by path and URL rather than embedded directly in the response. Client presentation differs: MCP Apps-capable hosts can render the image preview inline, while generic tool cards may display the JSON fallback. The model directory and API capabilities can change; estimate_credits should be used before generation when current pricing matters. Wan2.7 Image Pro supports 4K for text-to-image but limits reference-image generations to 2K.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Labnana MCP

Labnana MCP is an MCP server that connects AI clients to the Labnana OpenAPI for image generation and editing. Its main tools create images, estimate credit costs, check subscription balances, list generation tasks, and retrieve task results. It runs locally through Node.js and uses a Labnana API key.

Install it by running `npx -y @exoticknight/labnana-mcp` and configuring that command in your MCP client. Set `LABNANA_API_KEY` in the process environment first. For a source checkout, run `npm install`, `npm run build`, and launch the resulting `dist/index.js` with Node.js.

Set the `LABNANA_API_KEY` environment variable to a key created in the Labnana API Keys console. The server also accepts `--api-key`, but environment variables are recommended because command-line arguments can appear in the local process list.

Yes. Call `generate_image` with `referenceImages` to perform image-to-image generation or editing. Reference image data can include a `fileUri` and MIME type, while the selected model and image configuration control the output.

Yes. Cursor is named as a supported setup target and can install the server using its MCP installation link or an equivalent configuration. Provide `LABNANA_API_KEY` in the server environment.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLabnana MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/labnana-mcp?style=directory)](https://allmcps.com/mcp/labnana-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/labnana-mcp"><img src="https://allmcps.com/api/badge/labnana-mcp?style=directory" alt="Labnana MCP on AllMCPs" /></a>