
trevoruptain/gemini-image-mcp
Productivity workflow이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Cursor에 대한 MCP 서버는 Google Nano Banana Pro를 사용하여 생성, 저장 및 재사용 이미지를 생성합니다
개요
MCP (Model Context Protocol) 서버는 Google의 Gemini API를 사용하여 이미지를 생성하고 편집 할 수있는 웹 개발에 최적화되어 있습니다. MCP 서버를 Cursor에 추가 한 후 AI가 생성하거나 이미지를 편집합니다. 에이전트가 나머지를 수행 할 것입니다. - - 4K까지의 종횡비 사전 설정 (히로, 광장, 초상화, 풍경, 배너, 모바일) 및 해상도로 이미지 생성 - 자연 언어로 작업 공간에 기존 이미지를 편집 - 일반적인 웹 개발 사용 사례를 위해 설계된 Presets - MCP 리소스로 변환 된 이미지 - 이미지에 직접 HTTP 액세스를 위한 Express 서버 - Node.js 18+ - 이미지 생성에 액세스하는 Google Gemini API 키 MCP Inspector를 사용하여 서버를 테스트하고 디버그하십시오. 이것은: 1. TypeScript code 2를 빌드합니다. 브라우저에서 MCP 검사기를 시작합니다. 3. 도구, 보기 리소스 및 디버그 요청/responses를 테스트할 수 있습니다. .env 파일을 검사기를 실행하기 전에 GEMINI API KEY로 설정하십시오.
개요(AI 번역)
MCP (Model Context Protocol) 서버는 Google의 Gemini API를 사용하여 이미지를 생성하고 편집 할 수있는 웹 개발에 최적화되어 있습니다.
MCP 서버를 Cursor에 추가 한 후 AI가 생성하거나 이미지를 편집합니다. 에이전트가 나머지를 수행 할 것입니다.
특징
-Image Generation - 4K까지 종횡비 사전 설정(hero, square, portrait, Landscape, Banner, mobile) 및 해상도로 이미지 생성 -Image Editing - 자연 언어로 작업 공간에 기존 이미지를 편집합니다.
- Web-Optimized - 일반적인 웹 개발 사용 사례를 위해 설계된 Presets
- MCP Resources - MCP 리소스로 생성된 이미지 접근
- Static File Server - 이미지에 직접 HTTP 액세스를 위한 Express 서버
필수품
- 노드.js 18+
- 이미지 생성에 액세스하는 Google Gemini API 키
설치
구성
환경 변수
| 변수 |필수 | 기본 | 설명 |
인포메이션 주식회사
| [T0] | 네 | - | 귀하의 Google Gemini API 키 |
| GEMINI_IMAGE_MODEL | No | gemini-3-pro-image-preview | 젬니 이미지 모델 `gemini-2를 사용하십시오.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Gemini Image MCP
An MCP (Model Context Protocol) server optimized for web development that enables AI assistants to generate and edit images using Google’s Gemini API.
After adding the MCP server to Cursor, just prompt the AI to generate or edit images for you - the agent will do the rest.
Features
- Image Generation - Generate images with aspect ratio presets (hero, square, portrait, landscape, banner, mobile) and resolutions up to 4K
- Image Editing - Edit existing images in your workspace with natural language
- Web-Optimized - Presets designed for common web development use cases
- MCP Resources - Access generated images as MCP resources
- Static File Server - Express server for direct HTTP access to images
Prerequisites
- Node.js 18+
- A Google Gemini API key with access to image generation
Installation
git clone https://github.com/yourusername/gemini-image-mcp.git
cd gemini-image-mcp
npm install
npm run build
Configuration
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
GEMINI_API_KEY |
Yes | - | Your Google Gemini API key |
GEMINI_IMAGE_MODEL |
No | gemini-3-pro-image-preview |
Gemini image model to use. Use gemini-2.5-flash-image for the GA model. |
PORT |
No | 3001 |
Port for the Express static file server |
Cursor
Add to your ~/.cursor/mcp.json:
{
"mcpServers": {
"gemini-image": {
"command": "node",
"args": ["/path/to/gemini-image-mcp/dist/server.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}
Antigravity
Add to your MCP server configuration:
{
"gemini-image": {
"command": "node",
"args": ["/path/to/gemini-image-mcp/dist/server.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"gemini-image": {
"command": "node",
"args": ["/path/to/gemini-image-mcp/dist/server.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}
Testing with MCP Inspector
Use the MCP Inspector to test and debug your server:
npm run inspect
This will:
- Build the TypeScript code
- Launch the MCP Inspector in your browser
- Allow you to test tools, view resources, and debug requests/responses
Make sure your .env file is set up with GEMINI_API_KEY before running the inspector.
Tools
generate_image
Generate an image from a text prompt, optionally using reference images to guide the style or composition. The AI must determine the correct output path in your project before calling this tool.
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"gemini-image": {
"command": "node",
"args": ["/path/to/gemini-image-mcp/dist/server.js"],
"env": {
"GEMINI_API_KEY": "your-api-key-here"
}
}
}
}