NanoBananaMCP
NanoBananaMCP
AceDataCloud APIを通じてGoogleのNano Bananaモデルを使用したAI画像生成および編集のためのModel Context Protocol (MCP)サーバーです。
Claude、VS Code、またはMCP互換クライアントから直接AI画像を生成・編集できます。
機能
画像生成 - テキストプロンプトから高品質な画像を生成
画像編集 - 既存の画像の修正や複数の画像の結合
バーチャル試着 - 写真内の人物に衣服を着用させる
プロダクトプレースメント - 現実的なシーンに製品を配置する
タスク追跡 - 生成の進捗状況の監視と結果の取得
Related MCP server: MidjourneyMCP
ツールリファレンス
ツール | 説明 |
| GoogleのNano Bananaモデルを使用して、テキストプロンプトからAI画像を生成します。 |
| テキストプロンプトに基づいて、AIを使用して画像を編集または結合します。 |
| 画像生成または編集タスクのステータスと結果を照会します。 |
| 複数の画像生成/編集タスクを一度に照会します。 |
クイックスタート
1. APIトークンの取得
AceDataCloudプラットフォームにサインアップします
APIドキュメントページに移動します
**「Acquire」**をクリックしてAPIトークンを取得します
以下の使用のためにトークンをコピーします
2. ホスト型サーバーの使用(推奨)
AceDataCloudは管理されたMCPサーバーをホストしており、ローカルインストールは不要です。
エンドポイント: https://nanobanana.mcp.acedata.cloud/mcp
すべてのリクエストにはBearerトークンが必要です。ステップ1で取得したAPIトークンを使用してください。
Claude.ai
OAuthを使用してClaude.aiに直接接続します。APIトークンは不要です:
Claude.aiの設定 → 統合 → 追加に移動します
サーバーURLを入力します:
https://nanobanana.mcp.acedata.cloud/mcpOAuthログインフローを完了します
会話内でツールの使用を開始します
Claude Desktop
設定ファイル(macOSの場合は ~/Library/Application Support/Claude/claude_desktop_config.json)に追加します:
{
"mcpServers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cursor / Windsurf
MCP設定(.cursor/mcp.json または .windsurf/mcp.json)に追加します:
{
"mcpServers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}VS Code (Copilot)
VS CodeのMCP設定(.vscode/mcp.json)に追加します:
{
"servers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}または、VS Code用のAce Data Cloud MCP拡張機能をインストールしてください。これには15個のMCPサーバーがすべてバンドルされており、ワンクリックでセットアップできます。
JetBrains IDE
**設定 → ツール → AI Assistant → Model Context Protocol (MCP)**に移動します
追加 → HTTPをクリックします
以下を貼り付けます:
{
"mcpServers": {
"nanobanana": {
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Claude Code
Claude CodeはMCPサーバーをネイティブでサポートしています:
claude mcp add nanobanana --transport http https://nanobanana.mcp.acedata.cloud/mcp \
-h "Authorization: Bearer YOUR_API_TOKEN"または、プロジェクトの.mcp.jsonに追加します:
{
"mcpServers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Cline
ClineのMCP設定(.cline/mcp_settings.json)に追加します:
{
"mcpServers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Amazon Q Developer
MCP設定に追加します:
{
"mcpServers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Roo Code
Roo CodeのMCP設定に追加します:
{
"mcpServers": {
"nanobanana": {
"type": "streamable-http",
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Continue.dev
.continue/config.yamlに追加します:
mcpServers:
- name: nanobanana
type: streamable-http
url: https://nanobanana.mcp.acedata.cloud/mcp
headers:
Authorization: "Bearer YOUR_API_TOKEN"Zed
Zedの設定(~/.config/zed/settings.json)に追加します:
{
"language_models": {
"mcp_servers": {
"nanobanana": {
"url": "https://nanobanana.mcp.acedata.cloud/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
}cURLテスト
# Health check (no auth required)
curl https://nanobanana.mcp.acedata.cloud/health
# MCP initialize
curl -X POST https://nanobanana.mcp.acedata.cloud/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'3. またはローカルで実行(代替手段)
自身のマシンでサーバーを実行したい場合:
# Install from PyPI
pip install mcp-nanobanana-pro
# or
uvx mcp-nanobanana-pro
# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"
# Run (stdio mode for Claude Desktop / local clients)
mcp-nanobanana-pro
# Run (HTTP mode for remote access)
mcp-nanobanana-pro --transport http --port 8000Claude Desktop (ローカル)
{
"mcpServers": {
"nanobanana": {
"command": "uvx",
"args": ["mcp-nanobanana-pro"],
"env": {
"ACEDATACLOUD_API_TOKEN": "your_token_here"
}
}
}
}Docker (セルフホスト)
docker pull ghcr.io/acedatacloud/mcp-nanobanana-pro:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-nanobanana-pro:latestクライアントは独自のBearerトークンで接続します。サーバーは各リクエストのAuthorizationヘッダーからトークンを抽出します。
利用可能なツール
画像生成
ツール | 説明 |
| テキストプロンプトから画像を生成 |
| AIを使用して画像を編集または結合 |
タスク
ツール | 説明 |
| 単一のタスクステータスを照会 |
| 複数のタスクを一度に照会 |
使用例
プロンプトからの画像生成
User: Create an image of a sunset over mountains
Claude: I'll generate that image for you.
[Calls nanobanana_generate_image with detailed prompt]バーチャル試着
User: Put this shirt on this model
[Provides two image URLs]
Claude: I'll combine these images.
[Calls nanobanana_edit_image with both image URLs]製品写真
User: Place this product in a modern kitchen scene
[Provides product image URL]
Claude: I'll create a product scene for you.
[Calls nanobanana_edit_image with scene description]プロンプト作成のヒント
最良の結果を得るために、プロンプトに以下の要素を含めてください:
メインの被写体: 何が主な焦点か?
雰囲気: 画像はどのようなムードを伝えるべきか?
照明: シーンはどのように照らされているか?
カメラ/レンズ: どのような写真スタイルか?(85mmポートレート、広角など)
品質キーワード: 技術的な記述子(ボケ、フィルムグレイン、HDRなど)
プロンプト例
A photorealistic close-up portrait of an elderly Japanese ceramicist
with deep wrinkles and a warm smile. Soft golden hour light streaming
through a window. Captured with an 85mm portrait lens, soft bokeh
background. Serene and masterful mood.設定
環境変数
変数 | 説明 | デフォルト |
| AceDataCloudのAPIトークン | 必須 |
| APIベースURL |
|
| OAuthクライアントID(ホストモード) | — |
| プラットフォームベースURL |
|
| リクエストタイムアウト(秒) |
|
| ログレベル |
|
コマンドラインオプション
mcp-nanobanana-pro --help
Options:
--version Show version
--transport Transport mode: stdio (default) or http
--port Port for HTTP transport (default: 8000)開発
開発環境のセットアップ
# Clone repository
git clone https://github.com/AceDataCloud/NanoBananaMCP.git
cd NanoBananaMCP
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
# Install with dev dependencies
pip install -e ".[dev,test]"テストの実行
# Run unit tests
pytest
# Run with coverage
pytest --cov=core --cov=tools
# Run integration tests (requires API token)
pytest tests/test_integration.py -m integrationコード品質
# Format code
ruff format .
# Lint code
ruff check .
# Type check
mypy core toolsビルドと公開
# Install build dependencies
pip install -e ".[release]"
# Build package
python -m build
# Upload to PyPI
twine upload dist/*プロジェクト構造
NanoBanana/
├── core/ # Core modules
│ ├── __init__.py
│ ├── client.py # HTTP client for NanoBanana API
│ ├── config.py # Configuration management
│ ├── exceptions.py # Custom exceptions
│ ├── server.py # MCP server initialization
│ ├── types.py # Type definitions
│ └── utils.py # Utility functions
├── tools/ # MCP tool definitions
│ ├── __init__.py
│ ├── image_tools.py # Image generation/editing tools
│ └── task_tools.py # Task query tools
├── prompts/ # MCP prompt templates
│ └── __init__.py
├── tests/ # Test suite
├── deploy/ # Deployment configs
│ └── production/
│ ├── deployment.yaml
│ ├── ingress.yaml
│ └── service.yaml
├── .env.example # Environment template
├── .gitignore
├── Dockerfile # Docker image for HTTP mode
├── docker-compose.yaml # Docker Compose config
├── LICENSE
├── main.py # Entry point
├── pyproject.toml # Project configuration
└── README.mdAPIリファレンス
このサーバーはAceDataCloud NanoBanana APIをラップしています:
NanoBanana Images API - 画像生成および編集
NanoBanana Tasks API - タスク照会
ユースケース
ポートレートの強化 - 同じ人物に異なる衣服を試着させる
製品シーンの構成 - 白背景の製品を現実的な環境に配置する
属性の置換 - 素材、色、バリエーションを変更する
ポスターのクイック編集 - スタイルやテーマを素早く変更する
2Dから3Dへの変換 - 画像を3D製品モックアップに変換する
画像修復 - 古い写真や損傷した写真を修復する
貢献
貢献を歓迎します!以下の手順に従ってください:
リポジトリをフォークする
フィーチャーブランチを作成する (
git checkout -b feature/amazing)変更をコミットする (
git commit -m 'Add amazing feature')ブランチにプッシュする (
git push origin feature/amazing)プルリクエストを開く
ライセンス
MITライセンス - 詳細はLICENSEを参照してください。
リンク
Made with love by AceDataCloud
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
- AlicenseAqualityFmaintenanceEnables AI assistants to generate images from text prompts and transform existing images using Google Gemini's nano banana model through the Nanana AI service. Supports both text-to-image generation and image-to-image transformation capabilities.21610MIT
- AlicenseAqualityBmaintenanceEnables AI image and video generation using Midjourney through the AceDataCloud API. It supports comprehensive features including image creation, transformation, blending, editing, and video generation directly within MCP-compatible clients.167MIT
- FlicenseBqualityDmaintenanceEnables image generation and multi-turn editing sessions using the Gemini API within MCP-compatible environments. Users can create, modify, and configure images through natural language commands, supporting features like aspect ratio adjustments and session-based image transformations.5
- AlicenseNot gradedqualityCmaintenanceAI-powered image generation MCP server with 16 specialized tools for generating, editing, analyzing, and processing images using Google's Nano Banana 2 model. Supports custom API endpoints and integrates with AI coding assistants via natural language.1661MIT
Related MCP Connectors
Omni Flash and Veo video, Nano Banana images on Google Flow, from any MCP client
Generate images, video & speech with Nano Banana, Veo, Omni and Gemini TTS. Pay as you go.
MCP server for Google Veo AI video 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/AceDataCloud/NanoBananaMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server