labnana-mcp
Click on "Install 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., "@labnana-mcpGenerate an image of a cat astronaut floating in space."
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.
labnana-mcp
An MCP server for the Labnana OpenAPI. It enables Claude, Claude Code, and other MCP clients to generate and edit images with Labnana.
Supported model families include:
Gemini image models (Nano Banana Pro / 2)
GPT-Image-2
Wan2.7 Image / Pro
Seedream 5.0 Pro, including precise editing
Installation
Claude Code
Create an API key in the Labnana API Keys console.
Make
LABNANA_API_KEYavailable in the environment used by Claude Code.Add the server:
claude mcp add labnana -- npx -y @exoticknight/labnana-mcp@1.0.0The package can also be started directly with:
npx -y @exoticknight/labnana-mcp@1.0.0Claude Desktop and other MCP clients
Use an equivalent mcpServers configuration:
{
"mcpServers": {
"labnana": {
"command": "npx",
"args": ["-y", "@exoticknight/labnana-mcp@1.0.0"],
"env": {
"LABNANA_API_KEY": "lh_xxxxxxxxx"
}
}
}
}Local source checkout
npm install
npm run buildThen configure the server with the generated dist/index.js:
claude mcp add labnana -- node <path-to-repo>/dist/index.jsOn Windows, use an absolute path such as:
claude mcp add labnana -- node C:/path/to/labnana-mcp/dist/index.jsRelated MCP server: nano-banana-claude
Configuration
The server reads the following environment variable:
Variable | Required | Description |
| Yes | Labnana API key. |
The command-line options below are also supported:
Option | Description |
| Provide the API key for a local process. |
| Override the default API endpoint, |
Environment variables are recommended because command-line arguments may be visible in the local process list.
Tools
Tool | Description |
| Get subscription status, credit balances, and free usage information. |
| Estimate the credits required for a generation without generating an image. |
| Generate an image synchronously and return it as MCP image content with metadata. |
| Create an asynchronous generation task and return its |
| List generation tasks with pagination and optional status filtering. |
| Get task details and public image URLs after completion. |
| Poll until a task succeeds or fails. |
Usage
Synchronous generation
{
"name": "generate_image",
"arguments": {
"provider": "google",
"model": "gemini-3-pro-image",
"prompt": "Change the background of the image to the grasslands of Inner Mongolia",
"referenceImages": [
{
"fileData": {
"fileUri": "https://cdn.labnana.com/xxx.png",
"mimeType": "image/png"
}
}
],
"imageConfig": {
"imageSize": "2K",
"aspectRatio": "16:9"
}
}
}Use referenceImages for image-to-image generation and editing. fileData.fileUri supports gs:// and https://; small images can be passed as base64 through inlineData.data.
Asynchronous generation
For large images or batch jobs, use:
generate_image_async -> wait_for_generation_taskThe completed task returns a public image URL.
Credit estimation
{
"name": "estimate_credits",
"arguments": {
"provider": "google",
"prompt": "A Shiba Inu running through a snowy landscape",
"imageConfig": {
"imageSize": "4K"
}
}
}Parameters
provider:google,openai,alibaba, orbytedance; routing followsmodel.model(default:gemini-3-pro-image):gemini-3-pro-image,gemini-3.1-flash-image,gpt-image-2,wan2.7-image-pro,wan2.7-image, orseedream-5-0-pro.imageConfig.imageSize:1K,2K, or4K.wan2.7-imagedoes not support 4K;seedream-5-0-prosupports only 1K and 2K.imageConfig.aspectRatio:1:1,2:3,3:2,3:4,4:3,9:16,16:9,21:9,1:4,4:1,1:8, or8:1. GPT-Image-2 may omit this field and let the service choose; Wan2.7 supports only1:1,16:9,9:16,4:3, and3:4.referenceImages: up to 14 for Gemini, 4 for GPT-Image-2, 9 for Wan2.7, and 10 for Seedream.
Credit summary
Model | 1K | 2K | 4K |
| 15 | 15 | 30 |
| 10 | 10 | 20 |
| 4 | 6 | 10 |
| 6 | 8 | 12 (text-to-image only) |
| 4 | 6 | Not supported |
| 6 | 15 | Not supported |
Errors
API errors are returned as { code, message } and exposed as MCP results with isError: true.
Code | Meaning | Recommendation |
21007 | Invalid API key | Check |
26004 | Insufficient credits | Check the subscription or upgrade the plan. |
29003 | Invalid parameters | Check required fields and model-specific limits. |
29998 | Too many requests | Retry with a 20–30 second backoff. |
Development
npm install
npm run typecheck
npm testLinks
Technical support: support@marswave.ai
License
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceMCP server for generating and editing images using Amazon Nova Canvas, Stable Diffusion 3.5 Large, and Stability AI services through Amazon Bedrock.Last updatedApache 2.0
- Alicense-qualityCmaintenanceAn MCP server that provides image generation using Google's Nano Banana Gemini models, with additional tools for background removal, upscaling, and format conversion via deterministic post-processing.Last updated1MIT
- Alicense-qualityDmaintenanceMCP server for Google's Nano Banana image generation models (Gemini). Generate and edit images via natural language.Last updated171MIT
- Flicense-qualityDmaintenanceMCP server for AI image generation supporting text-to-image and image-to-image editing via any OpenAI-compatible service, with configurable models, aspect ratios, and sizes.Last updated
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Midjourney AI image generation and editing
MCP server for Flux AI image generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/exoticknight/labnana-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server