Skip to main content
Glama

FluxMCP

PyPI version PyPI downloads CI License: MIT MCP Python 3.10+

AI 이미지 생성 및 편집을 위한 Model Context Protocol (MCP) 서버로, AceDataCloud 플랫폼을 통해 Flux를 사용합니다.

Claude, Cursor 또는 MCP 호환 클라이언트에서 직접 Flux 모델(flux-dev, flux-pro, flux-kontext)로 놀라운 AI 이미지를 생성하고 편집하세요.

기능

  • 이미지 생성 - 6가지 Flux 모델로 텍스트 프롬프트에서 이미지 생성

  • 이미지 편집 - 컨텍스트 인식 Flux Kontext 모델로 기존 이미지 편집

  • 작업 관리 - 비동기 생성 작업 추적 및 일괄 상태 조회

  • 모델 가이드 - 내장 모델 선택 및 프롬프트 작성 가이드

  • 이중 전송 - stdio(로컬) 및 HTTP(원격/클라우드) 모드

  • Docker 지원 - K8s 배포 매니페스트로 컨테이너화

  • 보안 - HTTP 모드에서 요청별 격리를 통한 Bearer 토큰 인증

Related MCP server: DiffuGen

도구 참조

도구

설명

flux_generate_image

Flux를 사용하여 텍스트 프롬프트에서 AI 이미지를 생성합니다.

flux_edit_image

Flux를 사용하여 텍스트 프롬프트로 기존 이미지를 편집합니다.

flux_list_models

사용 가능한 모든 Flux 모델과 기능을 나열합니다.

flux_list_actions

사용 가능한 모든 Flux 도구와 사용 사례를 나열합니다.

flux_get_task

Flux 이미지 생성 작업의 상태와 결과를 조회합니다.

flux_get_tasks_batch

여러 Flux 이미지 생성 작업을 한 번에 조회합니다.

빠른 시작

1. API 토큰 받기

  1. AceDataCloud Platform에 가입하세요.

  2. API 문서 페이지로 이동하세요.

  3. **"Acquire"**를 클릭하여 API 토큰을 받으세요.

  4. 아래에서 사용할 토큰을 복사하세요.

2. 호스팅 서버 사용 (권장)

AceDataCloud는 관리형 MCP 서버를 호스팅합니다 — 로컬 설치가 필요 없습니다.

엔드포인트: https://flux.mcp.acedata.cloud/mcp

모든 요청에는 Bearer 토큰이 필요합니다. 1단계의 API 토큰을 사용하세요.

Claude.ai

Claude.ai에서 OAuth로 직접 연결하세요 — API 토큰이 필요 없습니다:

  1. Claude.ai 설정 → 통합 → 더 추가로 이동하세요.

  2. 서버 URL을 입력하세요: https://flux.mcp.acedata.cloud/mcp

  3. OAuth 로그인 흐름을 완료하세요.

  4. 대화에서 도구 사용을 시작하세요.

Claude Desktop

구성 파일에 추가하세요 (macOS의 ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cursor / Windsurf

MCP 구성에 추가하세요 (.cursor/mcp.json 또는 .windsurf/mcp.json):

{
  "mcpServers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

VS Code (Copilot)

VS Code MCP 구성에 추가하세요 (.vscode/mcp.json):

{
  "servers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

또는 VS Code용 Ace Data Cloud MCP 확장을 설치하면 원클릭 설정으로 호스팅 MCP 서버를 등록할 수 있습니다.

JetBrains IDEs

  1. **설정 → 도구 → AI 어시스턴트 → Model Context Protocol (MCP)**로 이동하세요.

  2. 추가 → HTTP를 클릭하세요.

  3. 붙여넣기:

{
  "mcpServers": {
    "flux": {
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Claude Code

Claude Code는 MCP 서버를 기본적으로 지원합니다:

claude mcp add flux --transport http https://flux.mcp.acedata.cloud/mcp \
  -h "Authorization: Bearer YOUR_API_TOKEN"

또는 프로젝트의 .mcp.json에 추가하세요:

{
  "mcpServers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cline

Cline의 MCP 설정에 추가하세요 (.cline/mcp_settings.json):

{
  "mcpServers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Amazon Q Developer

MCP 구성에 추가하세요:

{
  "mcpServers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Roo Code

Roo Code MCP 설정에 추가하세요:

{
  "mcpServers": {
    "flux": {
      "type": "streamable-http",
      "url": "https://flux.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Continue.dev

.continue/config.yaml에 추가하세요:

mcpServers:
  - name: flux
    type: streamable-http
    url: https://flux.mcp.acedata.cloud/mcp
    headers:
      Authorization: "Bearer YOUR_API_TOKEN"

Zed

Zed 설정에 추가하세요 (~/.config/zed/settings.json):

{
  "language_models": {
    "mcp_servers": {
      "flux": {
        "url": "https://flux.mcp.acedata.cloud/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_TOKEN"
        }
      }
    }
  }
}

cURL 테스트

# Health check (no auth required)
curl https://flux.mcp.acedata.cloud/health

# MCP initialize
curl -X POST https://flux.mcp.acedata.cloud/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'

3. 또는 로컬에서 실행 (대안)

서버를 직접 실행하려면:

# Install from PyPI
pip install mcp-flux-pro
# or
uvx mcp-flux-pro

# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"

# Run (stdio mode for Claude Desktop / local clients)
mcp-flux-pro

# Run (HTTP mode for remote access)
mcp-flux-pro --transport http --port 8000

Claude Desktop (로컬)

{
  "mcpServers": {
    "flux": {
      "command": "uvx",
      "args": ["mcp-flux-pro"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your_token_here"
      }
    }
  }
}

Docker (자체 호스팅)

docker pull ghcr.io/acedatacloud/mcp-flux-pro:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-flux-pro:latest

클라이언트는 자체 Bearer 토큰으로 연결합니다 — 서버는 각 요청의 Authorization 헤더에서 토큰을 추출합니다.

사용 가능한 도구

도구

설명

flux_generate_image

모델 선택으로 텍스트 프롬프트에서 이미지 생성

flux_edit_image

텍스트 지시로 기존 이미지 편집

flux_get_task

단일 생성 작업 상태 조회

flux_get_tasks_batch

여러 작업 상태를 한 번에 조회

flux_list_models

사용 가능한 모든 Flux 모델과 기능 나열

flux_list_actions

모든 도구와 워크플로 예시 표시

사용 가능한 프롬프트

프롬프트

설명

flux_image_generation_guide

올바른 도구와 모델 선택 가이드

flux_prompt_writing_guide

효과적인 프롬프트 작성 모범 사례

flux_workflow_examples

일반적인 워크플로 패턴 및 예시

지원 모델

모델

품질

속도

크기 형식

최적 용도

flux-dev

좋음

빠름

픽셀 (256-1440px)

빠른 프로토타이핑

flux-pro

높음

중간

픽셀 (256-1440px)

프로덕션 사용

flux-kontext-pro

높음

중간

종횡비

이미지 편집

flux-kontext-max

최고

느림

종횡비

복잡한 편집

flux-2-flex

높음

빠름

종횡비

Flux 2 균형 품질

flux-2-pro

더 높음

중간

종횡비

Flux 2 프로덕션

flux-2-max

최고

느림

종횡비

Flux 2 최대 품질

flux-2-klein

좋음

빠름

종횡비

Flux 2 효율적 출력

사용 예시

이미지 생성

"Generate a photorealistic mountain landscape at golden hour"
→ flux_generate_image(prompt="...", model="flux-2-max", size="16:9")

이미지 편집

"Add sunglasses to the person in this photo"
→ flux_edit_image(prompt="Add sunglasses", image_url="https://...", size="1:1", model="flux-kontext-pro")

작업 상태 확인

"What's the status of my generation?"
→ flux_get_task(task_id="...")

환경 변수

변수

필수 여부

기본값

설명

ACEDATACLOUD_API_TOKEN

예 (stdio)

—

AceDataCloud의 API 토큰

ACEDATACLOUD_API_BASE_URL

아니요

https://api.acedata.cloud

API 기본 URL

ACEDATACLOUD_OAUTH_CLIENT_ID

아니요

—

OAuth 클라이언트 ID (호스팅 모드)

ACEDATACLOUD_PLATFORM_BASE_URL

아니요

https://platform.acedata.cloud

플랫폼 기본 URL

FLUX_REQUEST_TIMEOUT

아니요

1800

요청 시간 초과 (초)

MCP_SERVER_NAME

아니요

flux

MCP 서버 이름

LOG_LEVEL

아니요

INFO

로깅 수준

개발

설정

git clone https://github.com/AceDataCloud/FluxMCP.git
cd FluxMCP
pip install -e ".[all]"
cp .env.example .env
# Edit .env with your API token

린트 및 포맷

ruff check .
ruff format .
mypy core tools main.py

테스트

# Unit tests
pytest --cov=core --cov=tools

# Skip integration tests
pytest -m "not integration"

# With coverage report
pytest --cov=core --cov=tools --cov-report=html

Git 훅

git config core.hooksPath .githooks

API 참조

이 MCP 서버는 AceDataCloud Flux API를 사용합니다:

  • POST /flux/images — 이미지 생성 또는 편집

  • POST /flux/tasks — 작업 상태 조회 (단일 또는 일괄)

전체 API 문서: platform.acedata.cloud

문서

문서

라이선스

MIT 라이선스 — 자세한 내용은 LICENSE를 참조하세요.

링크

Available Tools

7 tools
flux_edit_imageAInspect

Edit an existing image using Flux with a text prompt.

This allows you to modify an existing image based on a text description.
The kontext models (flux-kontext-pro, flux-kontext-max) are specifically
designed for high-quality image editing and style transfer.

Use this when:
- You want to modify or transform an existing image
- You want to change specific elements in an image
- You want to apply style changes or artistic effects
- You want to add, remove, or replace objects in an image

For generating new images from scratch, use flux_generate_image instead.

Returns:
    Task ID and edited image information including URLs.

Inputs: size (required), prompt (required), image_url (required), model, +1 more. Returns: result

flux_generate_imageAInspect

Generate AI images from a text prompt using Flux.

Flux is a family of fast, high-quality image generation models by Black Forest Labs.
Different models offer different tradeoffs between speed, quality, and capabilities.

Use this when:
- You want to create new images from a text description
- You need high-quality AI-generated artwork or photos
- You want fast image generation with good prompt following

For editing existing images, use flux_edit_image instead.

Returns:
    Task ID and generated image information including URLs.

Inputs: size (required), prompt (required), count, model, +1 more. Returns: result

flux_generate_videoBInspect

Generate text/image/video-to-video or enhance an owned temporary draft. Poll flux_get_task.

Inputs: request (required). Returns: result

flux_get_taskAInspect

Query the status and result of a Flux image or video generation task.

Use this to check if a generation is complete and retrieve the resulting
image/video URLs and metadata.

Use this when:
- You want to check if an image generation has completed
- You need to retrieve image URLs from a previous generation
- You used async callback and want to check results later
- The initial generation returned a task_id without immediate results

Returns:
    Task status and generation result including image URLs.

Inputs: task_id (required). Returns: result

flux_get_tasks_batchAInspect

Query multiple Flux image or video generation tasks at once.

Efficiently check the status of multiple tasks in a single request.
More efficient than calling flux_get_task multiple times.

Use this when:
- You have multiple pending generations to check
- You want to get status of several images at once
- You're tracking a batch of generations

Returns:
    Status and result information for all queried tasks.

Inputs: task_ids (required). Returns: result

flux_list_actionsAInspect

List all available Flux tools and their use cases.

Reference guide for what each tool does and when to use it.

Returns:
    Categorized list of all tools with descriptions.

Inputs: no named parameters. Returns: result

flux_list_modelsAInspect

List all available Flux models and their capabilities.

Reference guide for choosing the right Flux model for your use case.

Returns:
    Detailed list of all Flux models with descriptions and recommendations.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 7 tools

    Disambiguation4/5

    The core tools are clearly separated: generate vs edit vs video generation, and single-task vs batch task queries are explicitly distinguished. Minor overlap exists because flux_generate_video bundles several video workflows and flux_get_tasks_batch could be seen as an optimization of flux_get_task, but descriptions make the intended boundaries clear.

    Naming Consistency5/5

    All tools follow a consistent flux_verb_noun snake_case pattern, such as flux_generate_image, flux_edit_image, flux_get_task, and flux_list_models. The convention is predictable throughout.

    Tool Count5/5

    Seven tools is well-scoped for an image/video generation service. The set covers generation, editing, task polling, batch polling, and reference discovery without obvious padding.

    Completeness4/5

    The surface covers the main lifecycle: generate/edit media, generate video, poll tasks, batch poll, and discover models/actions. Minor gaps remain around cancellation or listing existing tasks, but core workflows appear supported.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers