Cursor Integration with Flux MCP

Midjourney has great image quality but takes a long time, while DALL-E generates images quickly but has limited styles. Flux is a new model developed by the original team behind Stable Diffusion, following the "fast and good" approach—Dev mode generates drafts in seconds, Pro mode refines them, and Kontext mode allows editing based on existing images.

When integrated into Cursor, combined with AI context, it becomes a Swiss Army knife for developers.

Obtain API Token

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

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

AceData Cloud platform homepage Token

  1. If your credits run out, you can recharge at the console, 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 not sure what style you want 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.

Dev mode is the fastest, producing an image in seconds, suitable for quick trial and error. Once you see a direction you like:

> Use flux-pro to refine the second image, increasing the resolution.

Editing 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, circular 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