# nano-banana-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/runapi-ai/nano-banana-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 759  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nano-banana-mcp

## Description
RunAPI MCP server for Nano Banana: create tasks, poll status, and check pricing.

## Tools
Capabilities this server exposes over MCP:

- **login** — Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
- **edit_image** — Create a Nano Banana task on RunAPI (edit image). Returns a task id, status, and output URLs.
- **text_to_image** — Create a Nano Banana task on RunAPI (text to image). Returns a task id, status, and output URLs.
- **get_task** — Fetch the current status and latest result payload for a nano-banana task.
- **check_pricing** — Look up RunAPI pricing for the nano-banana model line.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "nano-banana-mcp": {
    "command": "npx",
    "args": ["-y","@runapi.ai/nano-banana-mcp"],
    "env": {
      "RUNAPI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `RUNAPI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What nano-banana-mcp does

nano-banana-mcp connects MCP-compatible AI assistants to the Nano Banana model line on RunAPI. It covers two operations: generating images from text and editing images. Submitted work produces a task identifier and status, with output URLs available when results are ready.

The package is intentionally scoped to Nano Banana rather than exposing the complete RunAPI catalog. It supports five model variants across the two endpoints:

- `edit_image`: `nano-banana-2-lite` and `nano-banana-edit`
- `text_to_image`: `nano-banana`, `nano-banana-2`, `nano-banana-2-lite`, and `nano-banana-pro`

Model availability may change, so pricing and catalog details should be checked before creating a task.

## How it works

The server communicates with MCP hosts over stdio. An assistant can call `text_to_image` or `edit_image` to submit work and choose whether to wait for a terminal status. Waiting returns the task ID, status, and output URLs when available; submitting with waiting disabled returns the task ID so the job can be checked later with `get_task`.

`check_pricing` looks up the current price for a Nano Banana model and endpoint and can be used without authentication. Task creation and task-status requests require RunAPI authentication. The server can use credentials from `RUNAPI_API_KEY` or from the RunAPI configuration file at `~/.config/runapi/config.json`.

## Setup and configuration

Install the npm package through an MCP host using the stdio command below:

```json
{
  "mcpServers": {
    "nano-banana": {
      "command": "npx",
      "args": ["-y", "@runapi.ai/nano-banana-mcp"]
    }
  }
}
```

Claude Code can register the same package with `claude mcp add`, using either user or project scope. Other supported hosts can use the JSON configuration shown above.

For interactive authentication, ask the assistant to use the RunAPI login flow. It opens a browser and stores credentials in `~/.config/runapi/config.json`, which is also used by `runapi login`. Headless and CI environments can set `RUNAPI_API_KEY` before launching the MCP host. A pre-provisioned configuration file can contain an `apiKey` field; credentials should not be committed to source control.

## Tools and capabilities

- `text_to_image` creates a Nano Banana text-to-image task and can wait for completion.
- `edit_image` creates a Nano Banana image-editing task and can wait for completion.
- `get_task` retrieves the latest status and payload for an existing task.
- `check_pricing` returns pricing for a selected Nano Banana model and endpoint without requiring a key.

The task tools return identifiers, statuses, and output URLs. This supports both synchronous-looking agent workflows and asynchronous workflows where an assistant submits work first and checks it later.

## Limitations and notes

Authentication is needed for creating tasks and polling their status, while pricing lookup remains available without a key. The package covers two Nano Banana endpoints and is not a general interface to every RunAPI model family. The set of available models can change between releases, so clients should use `check_pricing` or the Nano Banana model page for current availability and pricing. The project is licensed under Apache License 2.0.

_Full upstream README: https://allmcps.com/mcp/nano-banana-mcp/readme_

