
qhdrl12/mcp-server-gemini-image-generator
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
qhdrl12/mcp-server-gemini-image-generator는 https://github.com/qhdrl12/mcp-server-gemini-image-generator.]에서 가져온 MCP 서버 후보입니다
개요
qhdrl12/mcp-server-gemini-image-generator는 https://github.com/qhdrl12/mcp-server-gemini-image-generator.]에서 가져온 MCP 서버 후보입니다
개요(AI 번역)
MCP 프로토콜을 통해 Google의 Gemini 모델을 사용하여 텍스트 프롬프트에서 고품질의 이미지를 생성합니다.
개요
이 MCP 서버는 Google의 Gemini AI 모델을 사용하여 이미지를 생성 할 수 있습니다. 서버는 신속한 엔지니어링, 텍스트 이미지 변환, 파일명 생성 및 로컬 이미지 저장을 처리하여 MCP 클라이언트를 통해 AI-generated 이미지를 만들고 관리할 수 있습니다.
특징
- Gemini 2.0 Flash를 이용한 텍스트 이미지 생성
- 텍스트 프롬프트 기반 이미지 변환
- 두 파일 기반 및 base64 인코딩 이미지 지원
- 신속한 기반 자동 지능 파일명 생성
- 비영어의 자동 번역
- 설정 가능한 출력 경로와 로컬 이미지 저장
- 생성된 이미지에서 Strict text exclusion
- 고해상도 이미지 출력
- 이미지 데이터 및 파일 경로 모두에 직접 액세스
사용 가능한 MCP 도구
서버는 AI 조수에 대한 다음 MCP 도구를 제공합니다:
##1. generate_image_from_text
텍스트 프롬프트 설명에서 새로운 이미지를 만듭니다.
** 모수: **
prompt: 생성하려는 이미지의 텍스트 설명
리턴스:
- 튜플 포함:
- 원시 이미지 데이터 (bytes)
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Gemini Image Generator MCP Server
Generate high-quality images from text prompts using Google’s Gemini model through the MCP protocol.
Overview
This MCP server allows any AI assistant to generate images using Google’s Gemini AI model. The server handles prompt engineering, text-to-image conversion, filename generation, and local image storage, making it easy to create and manage AI-generated images through any MCP client.
Features
- Text-to-image generation using Gemini 2.0 Flash
- Image-to-image transformation based on text prompts
- Support for both file-based and base64-encoded images
- Automatic intelligent filename generation based on prompts
- Automatic translation of non-English prompts
- Local image storage with configurable output path
- Strict text exclusion from generated images
- High-resolution image output
- Direct access to both image data and file path
Available MCP Tools
The server provides the following MCP tools for AI assistants:
1. generate_image_from_text
Creates a new image from a text prompt description.
generate_image_from_text(prompt: str) -> Tuple[bytes, str]
Parameters:
prompt: Text description of the image you want to generate
Returns:
- A tuple containing:
- Raw image data (bytes)
- Path to the saved image file (str)
This dual return format allows AI assistants to either work with the image data directly or reference the saved file path.
Examples:
- “Generate an image of a sunset over mountains”
- “Create a photorealistic flying pig in a sci-fi city”
Example Output
This image was generated using the prompt:
"Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"
A 3D rendered pig with wings and a top hat flying over a futuristic sci-fi city filled with greenery
Known Issues
When using this MCP server with Claude Desktop Host:
- Performance Issues: Using
transform_image_from_encodedmay take significantly longer to process compared to other methods. This is due to the overhead of transferring large base64-encoded image data through the MCP protocol.
설치
npx -y @smithery/cli install @qhdrl12/mcp-server-gemini-image-gen --client claude설정
{
"mcpServers": {
"gemini-image-generator": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/mcp-server-gemini-image-generator",
"run",
"mcp-server-gemini-image-generator"
],
"env": {
"GEMINI_API_KEY": "your-actual-gemini-api-key-here",
"OUTPUT_IMAGE_PATH": "/absolute/path/to/your/images/directory"
}
}
}
}