GN

greatsumini/nanobanana-api-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

58 stars 10 forks 품질 80 트렌드 13MIT

나노 바나나 ☸ API MCP 서버

개요

MCP (Model Context Protocol) 서버는 Google Gemini API를 사용하여 이미지를 생성하고 편집합니다. - : Google Gemini AI를 사용하여 텍스트 프롬프트에서 이미지 생성 - : 텍스트 설명을 기반으로 기존 이미지 편집 - 생성 / 편집을위한 지원 - 다중 모델 옵션 (Pro 및 Normal) - 유형 안전을위한 TypeScript 내장 - CLI 인수 또는 환경 변수를 통해 유연한 구성 이미지 생성됨: "전경의 호수와 일몰에 고요한 산 풍경" Smithery를 통해 모든 클라이언트를 위한 Nanobanana MCP 서버를 자동적으로 설치하십시오: 유효한 클라이언트: 커서, claude, vscode, 윈드 서핑, cline, zed, 등. 선택된 클라이언트에서 MCP 서버를 자동으로 구성합니다. Gemini 모델에 액세스 할 수있는 Google API 키가 필요합니다. Google AI Studio에서 API 키를 가져옵니다. CLI 인수를 통해 API 키를 제공 할 수 있습니다

개요(AI 번역)

MCP (Model Context Protocol) 서버는 Google Gemini API를 사용하여 이미지를 생성하고 편집합니다.

특징

  • generate image: Google Gemini AI를 사용하여 텍스트 프롬프트에서 이미지를 생성
  • edit image: 텍스트 설명을 기반으로 기존 이미지 편집
  • 세대/편집 가이드에 대한 참조 이미지 지원
  • 다중 모델 옵션 (Pro 및 Normal)
  • TypeScript 내장
  • CLI 인수 또는 환경 변수를 통한 유연한 구성

이미지 생성 예제

이미지 생성됨: “전경의 호수와 일몰에 고요한 산 풍경”

설치

NPM에 대하여

스미스

Smithery를 통해 모든 클라이언트를 위한 Nanobanana MCP 서버를 자동적으로 설치하십시오:

유효한 클라이언트: cursor, claude, vscode], windsurf], cline, zed, 등.

** Cursor에 대한 샘플 : **

선택된 클라이언트에서 MCP 서버를 자동으로 구성합니다.

필수품

Gemini 모델에 액세스 할 수있는 Google API 키가 필요합니다. Google AI Studio에서 API 키를 가져옵니다.

CLI 인수를 통해 API 키를 제공 할 수 있습니다.

또는 환경 변수로 설정:

MCP 클라이언트 통합

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Nanobanana API MCP

MCP (Model Context Protocol) server for generating and editing images using Google Gemini API.

Features

  • generate_image: Generate images from text prompts using Google Gemini AI
  • edit_image: Edit existing images based on text descriptions
  • Support for reference images to guide generation/editing
  • Multiple model options (Pro and Normal)
  • Built with TypeScript for type safety
  • Flexible configuration via CLI arguments or environment variables

Image Generation Example

Generated image: “A serene mountain landscape at sunset with a lake in the foreground”

Installation

NPM

npm install -g nanobanana-api-mcp

Smithery

To install Nanobanana MCP Server for any client automatically via Smithery:

npx -y @smithery/cli@latest install nanobanana-api-mcp --client 

Available clients: cursor, claude, vscode, windsurf, cline, zed, etc.

Example for Cursor:

npx -y @smithery/cli@latest install nanobanana-api-mcp --client cursor

This will automatically configure the MCP server in your chosen client.

Prerequisites

You need a Google API key with access to Gemini models. Get your API key from Google AI Studio.

You can provide the API key via CLI argument:

nanobanana-api-mcp --apiKey "your-api-key-here"

Or set it as an environment variable:

export GOOGLE_API_KEY="your-api-key-here"
nanobanana-api-mcp

MCP Client Integration

Nanobanana MCP can be integrated with various AI coding assistants and IDEs that support the Model Context Protocol (MCP).

Requirements

  • Node.js >= v18.0.0
  • Google API key with Gemini access
  • An MCP-compatible client (Cursor, Claude Code, VS Code, Windsurf, etc.)

Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server

Add the following configuration to your ~/.cursor/mcp.json file:

{
  "mcpServers": {
    "nanobanana": {
      "command": "npx",
      "args": ["-y", "nanobanana-api-mcp", "--apiKey", "your-api-key-here"]
    }
  }
}

Optionally, you can fix the model to use for all operations:

{
  "mcpServers": {
    "nanobanana": {
      "command": "npx",
      "args": [
        "-y",
GitHub에서 전체 README 보기

설치

npx -y nanobanana-api-mcp --apiKey your-api-key-here
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "nanobanana": { "command": "npx", "args": ["-y", "nanobanana-api-mcp", "--apiKey", "your-api-key-here"] } } }