Integrating Cursor with Flux MCP
Flux supports generating images from text and editing existing images. After connecting it to Cursor, you can use these capabilities in conversations.
¶ Get an API Token
Log in to the application list, open General Application, and click the copy button to the right of API KEY.

If your balance is insufficient, click the “Recharge” button.
One Token can be used for all MCP Servers; there is 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 你的Token"
}
}
}
}
¶ Which Scenarios Are Especially 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 explore a few directions first:
> 用 flux-dev 快速生成3张不同风格的"没有数据"空状态插画,分别试试扁平、3D、手绘
First check the currently available models and generate a few drafts to compare directions. Once you find a direction you like:
> 用 flux-pro 把第二张精细化,分辨率调高
Edit existing images
A designer has provided a background image, but you need to replace the text area with an English version:
> 编辑这张图片,把中间的中文标题换成 "Welcome to the Future"
flux_edit_image supports making local modifications to existing images without regenerating them.
Generate images in batches
You need a set of default avatars with a consistent style for your user system:
> 生成5张极简几何风格的头像,每张用不同的颜色组合,圆形裁切
The count parameter generates multiple images at once, saving the trouble of generating them one by one.
¶ Tools
| Tool | Description |
|---|---|
| flux_generate_image | Generate images from text |
| flux_edit_image | Edit images |
¶ Configuration for Other Editors
- VS Code —
.vscode/mcp.json, use the same configuration underservers - Claude Code — configure via the terminal command line; see the Claude Code + Flux MCP tutorial for details
- Claude Desktop — see the Claude Desktop + Flux MCP tutorial for details
- Windsurf —
.windsurf/mcp.json, use the same configuration undermcpServers
