
由谷歌双子座纳米香蕉提供电源
概览
由Google双子座纳米香蕉模型提供动力的纳纳AI图像生成服务的MCP(模式上下文协议)服务器. 这个服务器允许克洛德·桌面和其他MCP客户端利用纳米香蕉强大的图像生成能力来生成并转换图像. 1. 访问nanana.app并在2中签字。 到你的账户仪表板3。 在"API Access"第4节中生成一个API令牌. 复制并保存符号( 它只显示一次) 将服务器添加到您的 Claude 桌面配置文件 : :% ~/ 图书馆/ 应用程序支持/ laude/ claude desktop config.json :% APPDATA+Claude desktop config.json 在保存了配置文件后,重新启动克洛德桌面来加载MCP服务器. - 及时(字符串,需要): 要生成的图像的文本描述 根据文本提示转换已存在的图像 。 - 图像Urls( 字符串阵列, 需要): 1- 9 个图像 URL来转换 - 迅速( 需要字符串) : 如何转换图像的文本描述
概述(AI 翻译)
由Google双子座纳米香蕉模型提供动力的纳纳AI图像生成服务的MCP(模式上下文协议)服务器. 这个服务器允许克洛德·桌面和其他MCP客户端利用纳米香蕉强大的图像生成能力来生成并转换图像.
□ 安装
□ 配置
1. 取出你的API 令牌
-
访问纳纳.app并签名
-
到你的账户仪表板
-
在"API Access"部分生成一个 API 令牌
-
复制并保存会令牌(只显示一次)
-
配置克洛德桌面
将服务器添加到您的 Claude 桌面配置文件 :
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
** 窗口**:%APPDATA%\Claude\claude_desktop_config.json
- 重新启动克洛德桌面
在保存了配置文件后,重新启动克洛德桌面来加载MCP服务器.
□ 可用的工具
QQ 文本到图像
从文本提示生成图像 。
** 参数:**
- [[T2] (字符串,要求): 要生成的图像的文本描述
** 实例:**
QQ 图像 到图像
根据文本提示转换已存在的图像 。
** 参数:**
imageUrls(字符串阵列, 需要): 1- 9 个图像 URL来转换
本页由 AI 翻译,技术细节请以原文为准。
README
@nanana-ai/mcp-server-nano-banana
MCP (Model Context Protocol) server for Nanana AI image generation service powered by Google Gemini’s nano banana model. This server allows Claude Desktop and other MCP clients to generate and transform images using nano banana’s powerful image generation capabilities.
Installation
npm install -g @nanana-ai/mcp-server-nano-banana
Configuration
1. Get your API token
- Visit nanana.app and sign in
- Go to your account dashboard
- Generate an API token in the “API Access” section
- Copy and save the token (it will only be shown once)
2. Configure Claude Desktop
Add the server to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"nanana": {
"command": "npx",
"args": ["-y", "@nanana-ai/mcp-server-nano-banana"],
"env": {
"NANANA_API_TOKEN": "your-api-token-here"
}
}
}
}
3. Restart Claude Desktop
After saving the config file, restart Claude Desktop to load the MCP server.
Available Tools
text_to_image
Generate an image from a text prompt.
Parameters:
prompt(string, required): The text description of the image to generate
Example:
Generate an image of a cute cat wearing a hat
image_to_image
Transform existing images based on a text prompt.
Parameters:
imageUrls(array of strings, required): 1-9 image URLs to transformprompt(string, required): The text description of how to transform the images
Example:
Transform these images to look like oil paintings: ["https://example.com/image1.jpg"]
Environment Variables
NANANA_API_TOKEN(required): Your Nanana AI API tokenNANANA_API_URL(optional): Custom API URL (defaults to https://nanana.app)
Development
Local Testing
- Clone the repository
- Install dependencies:
npm install - Build:
npm run build - Test locally by updating Claude Desktop config to point to the built file:
{
"mcpServers": {
"nanana": {
"command": "node",
"args": ["/path/to/packages/mcp-server/dist/index.js"],
"env": {
"NANANA_API_TOKEN": "your-token",
"NANANA_API_URL": "http://localhost:3000"
}
}
}
}
Build
npm run build
Watch mode
npm run dev
Credits and Pricing
Image generation with nano banana consumes credits from your Nanana AI account. Check your dashboard at nanana.app/account to view your credit balance and purchase more credits if needed.
Support
For issues and questions:
- Visit nanana.app
- Email: [email protected]
License
MIT
安装
npx -y @nanana-ai/mcp-server-nano-banana配置
{
"mcpServers": {
"nanana": {
"command": "npx",
"args": ["-y", "@nanana-ai/mcp-server-nano-banana"],
"env": {
"NANANA_API_TOKEN": "your-api-token-here"
}
}
}
}