Skip to main content

openrouter-banana-mcp

MCP server that generates images from text prompts using OpenRouter with the google/gemini-3-pro-image-preview model.

Install

pip install openrouter-banana-mcp

Setup

uv sync

Create a .env file or export environment variables:

OPENROUTER_API_KEY=your_key_here

Run

uv run banana-mcp

Or:

python -m banana_mcp

Configure MCP clients

Add a stdio server entry in your MCP client config (for example, Claude Desktop, Cursor, or Continue). Use one of these command styles:

{
  "mcpServers": {
    "openrouter-banana": {
      "command": "banana-mcp",
      "args": [],
      "env": {
        "OPENROUTER_API_KEY": "your_key_here"
      }
    }
  }
}

If you prefer running via Python or uv:

{
  "mcpServers": {
    "openrouter-banana": {
      "command": "python",
      "args": ["-m", "banana_mcp"],
      "env": {
        "OPENROUTER_API_KEY": "your_key_here"
      }
    }
  }
}

One-command install

Codex CLI:

codex mcp add openrouter-banana --env OPENROUTER_API_KEY=your_key_here -- banana-mcp

Claude Code:

claude mcp add --transport stdio openrouter-banana --env OPENROUTER_API_KEY=your_key_here -- banana-mcp

MCP Tool

Tool: generate_image

Input:

  • prompt (string)

Output:

  • model (string)
  • images (list of base64 data URLs)
  • text (optional assistant text)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openrouter_banana_mcp-0.1.1.tar.gz (431.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openrouter_banana_mcp-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file openrouter_banana_mcp-0.1.1.tar.gz.

File metadata

File hashes

Hashes for openrouter_banana_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 18ca5c4f06828eafecf2a04ec410326be797a7f52652bbcfd76ad94100f043ce
MD5 f65b5ce21eafb05d147b2f09cd21071f
BLAKE2b-256 9ec8ee4fac77c5958d625912007540ed3ba2c0671c04b2bef18068634b0bc80e

See more details on using hashes here.

File details

Details for the file openrouter_banana_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openrouter_banana_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8470573d04f0ac85afdce42a8c9f4677d74dab470b68b143c59cfaf731caf05a
MD5 aa3507d393ee44da4ea7b08a97bc8d66
BLAKE2b-256 7eb9ab9bd8958a1e414d1a2bf009425013ecc883694b43a9a623f5c1b1c0c2e7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page