Skip to main content
Glama

mcp-image-generator

by GMKR

MCP 이미지 생성기

Together AI의 이미지 생성 모델을 사용하여 이미지를 생성하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이 MCP 서버는 로컬에서 실행하거나 SSE 엔드포인트를 사용하여 실행할 수 있습니다. MCP 이미지 생성기에는 공급자가 필요하며, 현재 "Replicate"와 "Together"만 지원됩니다. TOGETHER_API_KEY 또는 REPLICATE_API_TOKEN 환경 변수를 설정하고, PROVIDER 환경 변수를 "replicate" 또는 "together"로 설정해야 합니다.

SSE 엔드포인트(Docker 환경)

저장소를 복제합니다

지엑스피1

Docker 컨테이너 빌드 및 실행

docker build -f Dockerfile.server -t mcp-imagegen . docker run -p 3000:3000 mcp-imagegen

MCP 클라이언트로 구성

{ "mcpServers": { "imagegenerator": { "url": "http://localhost:3000/sse", "env": { "PROVIDER": "replicate", "REPLICATE_API_TOKEN": "your-replicate-api-token" } } } }

사용하려는 MCP 서버의 종단점으로 url 조정합니다. provider "복제" 또는 "함께"가 될 수 있습니다.

stdio를 사용하여 로컬로 실행

필수 조건

  • 노드.js
  • Together AI API 키 또는 Replicate API 토큰

설치

  1. 저장소를 복제합니다.
    git clone https://github.com/gmkr/mcp-imagegen.git cd mcp-imagegen
  2. 종속성 설치:
    pnpm install

구성

MCP 클라이언트용 구성 파일을 만드세요. 구성 예시는 다음과 같습니다.

{ "mcpServers": { "imagegenerator": { "command": "pnpx", "args": [ "-y", "tsx", "/path/to/mcp-imagegen/src/index.ts" ], "env": { "PROVIDER": "replicate", "REPLICATE_API_TOKEN": "your-replicate-api-token" } } } }

/path/to/mcp-imagegen 복제된 저장소의 절대 경로로 바꾸고 your-replicate-api-token 실제 Replicate API 토큰으로 바꾸세요.

용법

MCP 이미지 생성기는 텍스트 프롬프트를 기반으로 이미지를 생성하는 데 사용할 수 있는 generate_image 라는 도구를 제공합니다.

도구: generate_image

제공된 프롬프트에 따라 이미지를 생성합니다.

매개변수:

  • prompt (문자열): 이미지를 생성하기 위한 텍스트 프롬프트
  • width (숫자, 선택 사항): 생성할 이미지의 너비(기본값: 512)
  • height (숫자, 선택 사항): 생성할 이미지의 높이(기본값: 512)
  • numberOfImages (숫자, 선택 사항): 생성할 이미지 수(기본값: 1)

환경 변수

  • PROVIDER : 이미지 생성에 사용할 공급자(기본값: "replicate")
  • REPLICATE_API_TOKEN : 복제 API 토큰
  • TOGETHER_API_KEY : Together AI API 키
  • MODEL_NAME : 이미지 생성에 사용할 모델(기본값: "black-forest-labs/flux-schnell")

특허

MIT

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Together.ai를 사용하여 이미지를 생성하고 반환합니다.

  1. SSE 엔드포인트(Docker 환경)
    1. 저장소를 복제합니다
    2. Docker 컨테이너 빌드 및 실행
    3. MCP 클라이언트로 구성
  2. stdio를 사용하여 로컬로 실행
    1. 필수 조건
    2. 설치
    3. 구성
  3. 용법
    1. 도구: generate\_image
  4. 환경 변수
    1. 특허

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        Enables the generation of images using Together AI's models through an MCP server, supporting customizable parameters such as model selection, image dimensions, and output directory.
        Last updated -
        1
        4
        JavaScript
        MIT License
        • Apple
        • Linux
      • -
        security
        A
        license
        -
        quality
        A server that integrates Flux's advanced image generation and manipulation features into AI coding assistants, enabling seamless text-to-image and image control workflows in IDEs like Cursor and Windsurf.
        Last updated -
        4
        10
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.
        Last updated -
        1
        29
        8
        JavaScript
        MIT License
      • A
        security
        A
        license
        A
        quality
        A MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.
        Last updated -
        1
        2
        TypeScript
        MIT License
        • Apple
        • Linux

      View all related MCP servers

      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/GMKR/mcp-imagegen'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server