Nano Banana MCP Server

Nano Banana MCP Server

An MCP server that enables image generation using Google's Gemini Nano Banana Pro model via the Google AI Studio API. Users can generate and save images locally by providing text prompts through MCP-compatible clients.

Category
Visit Server

README

Nano Banana MCP Server

MCP服务器,用于通过Google AI Studio API调用Gemini Nano Banana Pro (gemini-3-pro-image-preview) 图像生成模型。

版本: 1.0.0

功能

  • 调用Google Gemini Nano Banana模型生成图像
  • 支持通过MCP协议在opencode等客户端中使用
  • 生成图片会保存到本地文件

安装

npm install
npm run build

配置

  1. 复制 .env.example.env
cp .env.example .env
  1. .env 中设置你的Google API Key:
GOOGLE_API_KEY=your_api_key_here

环境变量

变量 说明 默认值
GOOGLE_API_KEY Google AI Studio API密钥 (必填)
HTTPS_PROXY HTTPS代理地址 系统代理

运行

npm start

在opencode中使用

在opencode的mcp配置中添加:

{
  "mcp": {
    "nanobanana": {
      "type": "local",
      "command": ["node", "/path/to/nanobanana-mcp-server/dist/index.js"],
      "env": {
        "GOOGLE_API_KEY": "your_api_key"
      },
      "enabled": true
    }
  }
}

工具

generate_image

生成图像

参数:

  • prompt (required): 图像描述文本
  • output_dir: 图片保存目录 (默认当前目录)

示例:

用nano banana画一只可爱的猫咪

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured