Cursor Integration with Flux MCP

Flux supports text-to-image generation and editing based on existing images. After integrating with Cursor, you can invoke these capabilities in conversations.

Obtain API Token

Before using the Flux MCP Server, you need an API Token from Ace Data Cloud. The process is very simple:

  1. Open the Ace Data Cloud platform, which supports GitHub, Google, or WeChat login, and you will automatically receive a free quota after registration.
  2. After logging in, you can see your API Token on the homepage; click the copy button to obtain it.

Get Ace Data Cloud API Key

  1. If the quota runs out, you can go to the console to recharge, supporting Alipay, WeChat, and Stripe.

One Token can be used for all MCP Servers, no need to apply separately for each service.

Configuration

.cursor/mcp.json:

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

Which Scenarios are Particularly Suitable

Quick Iteration

You are designing an empty state page for an app and need an illustration. But you are unsure of the style and just want to see a few directions first:

> Use flux-dev to quickly generate 3 different styles of "no data" empty state illustrations, trying flat, 3D, and hand-drawn styles.

First, check the currently available models and generate a few drafts to compare directions. Once you see a satisfactory direction:

> Use flux-pro to refine the second image and increase the resolution.

Edit Existing Images

A designer provided a background image, but you need to change the text area to the English version:

> Edit this image, changing the Chinese title in the middle to "Welcome to the Future."

flux_edit_image supports partial modifications to existing images without needing to regenerate.

Batch Image Generation

You need a set of uniformly styled default avatars for your user system:

> Generate 5 minimalist geometric style avatars, each with a different color combination, circularly cropped.

The count parameter allows you to generate multiple images at once, saving time compared to generating them one by one.

Tools

Tool Description
flux_generate_image Text to image generation
flux_edit_image Image editing

Other Editor Configurations