NanoBridge
NanoBridge
GeminiのNano Banana画像生成を、エージェントにMCPサーバーおよびCLIとして接続します。アカウントがすでに持っているGeminiプランを使用するため、画像ごとの請求は発生しません。
nanobridge sprite "a small knight with a blue shield and a silver sword" --size 160これらの画像はどちらもこのREADMEのコマンドから生成されたものです。スプライトはすでにトリミングされ透明化されており、アニメーションはシートからスライスされ、ループするGIFに組み立てられています。
単にAPIを呼ぶだけではだめな理由
AI StudioのAPIキーは明白な方法ですが、無料プランでは機能しません。無料枠では画像クォータがゼロのため、すべての画像モデルが429 RESOURCE_EXHAUSTEDを返します。課金を有効にすると修正され、画像ごとに課金が始まります。一方、同じアカウントにすでにあるGeminiサブスクリプションは使われないままです。
NanoBridgeは別の扉を開きます。ブラウザと同じように、Chromeにすでにある__Secure-1PSIDクッキーで認証し、サブスクリプションのクォータを消費します。貼り付けるものも、購入するものもありません。
バックエンド | 認証 | コスト |
| ブラウザから読み取ったGeminiクッキー | すでに支払い済みのプラン |
|
| 画像ごと、アクティブな課金が必要 |
nanobridge doctorは、どちらが有効か、残りクォータがどれだけかを報告します。
Related MCP server: Nano Banana Pro MCP
インストール
git clone https://github.com/NspxMiguel/NanoBridge.git
cd NanoBridge && ./install.shインストーラーはvirtualenvを構築し、nanobridgeをPATHに配置し、MCPサーバーをClaude Codeに登録し、エージェントスキルをインストールします。Homebrew:
brew install --cask nspxmiguel/tap/nanobridge要件: Python 3.11以上、およびhttps://gemini.google.comにサインインしたブラウザ。
シェルから使う
nanobridge doctor # backends, quota, config path
nanobridge sprite "a green slime" --style pixel --size 128
nanobridge icon "a compass rose" --style flat
nanobridge gen "a seamless stone wall texture, top-down, tileable"
nanobridge edit hero.png "make the sky stormy, keep everything else"
nanobridge sheet "a green slime" --grid 4x2 \
--action "squash down and stretch back up, a bouncy idle loop" --fps 10シートが生成され、フレームにスライスされ、透明性を保持したままループするGIFに組み立てられます。GIFにはアルファチャンネルがないため、空のピクセル用にパレットインデックスが予約されています。
ネットワークに触れない2つのコマンドは、クォータを消費せず、どこからの画像でも動作します:
nanobridge cut photo.jpg --transparent --trim --size 256
nanobridge slice sheet.png --grid 6x1 --size 96エージェントから使う
MCPサーバーはgenerate_image、generate_sprite、generate_sprite_sheet、generate_icon、edit_image、cut_image、slice_sheet、nanobridge_statusを公開します。
生成ツールはそれぞれ、画像をモデルに返します。512pxプレビューに縮小され、ディスク上のパスとともに返されます。これがポイントです。描いたものを見られないエージェントは、良いスプライトと壊れたスプライトを区別できず、盲目的に反復することになります。
手動で登録する場合:
claude mcp add nanobridge --scope user -- /path/to/.venv/bin/nanobridge mcp後処理が行うこと
モデルは平らな背景の大きなJPEGを返します。スプライトにはその逆が必要なので、パイプラインは後付けではなくツールの一部です:
背景除去は境界接続ベースであり、色一致ではありません。スプライト内の白い目は、その背後にある白と同じ色です。画像の境界に達する領域だけが消去されます。
トリムは描画に合わせてクロップします。
リサイズは最近傍法です。スムーズフィルターでリサンプリングされたピクセルアートは、ピクセルアートに見えなくなります。
スライスは幾何学的です。プロンプトで要求されたグリッドが切断に使用され、個々のフレームが書き出されます。ここでモデルが実際に従ったかどうかがわかります。
言語
画面テキストはポルトガル語と英語です。システムロケールがデフォルトを選択し、nanobridge lang pt|enで選択を保存し、NANOBRIDGE_LANG=ptで1回の実行だけ両方を上書きします。
知っておくべき制限
Webバックエンドはブラウザセッションに依存します。期限が切れたら、https://gemini.google.comで再度サインインしてください。
nanobridge doctorが明示的に通知します。Googleが文書化していないインターフェースと通信するため、相手側の変更で壊れる可能性があります。
apiバックエンドが、そのまま残るフォールバックです。生成された画像にはGoogleのSynthID透かしが含まれます。
ライセンス
MIT。
This server cannot be installed
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
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to generate, edit, and analyze images using Google's Gemini image generation models including Nano Banana Pro (gemini-3-pro-image-preview).12517MIT
- AlicenseAqualityDmaintenanceExposes Google Gemini's Nano Banana image generation models to Claude, enabling text-to-image generation, image editing, and multi-image composition through natural language prompts.3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered image generation, icon creation, hero banner design, and UI beautification using Google's Gemini Nano Banana API.
Related MCP Connectors
Generate images, video & speech with Nano Banana, Veo, Omni and Gemini TTS. Pay as you go.
Generate images, video, and audio with Glif's media-generation agent
Generate images, GIFs, and PDFs from HTML, URLs, or templates — from your AI agent.
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/NspxMiguel/NanoBridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server