Getting Started with Flux MCP in Claude Desktop, VS Code, and Cursor

Getting Started with Flux MCP in Claude Desktop, VS Code, and Cursor

If you have ever copied prompts out of your editor, pasted them into a separate image tool, waited for a result, and then tried to bring the asset back into your workflow, Flux MCP is a cleaner way to work: it lets your AI client call image-generation and image-editing tools directly from the conversation where you are already building.

What you can do

The Flux MCP Server from Ace Data Cloud gives an MCP-compatible client a small set of image tools that are practical for day-to-day builder workflows. According to the integration guide, it supports text-to-image generation, image editing from text instructions, multi-model use across Flux Pro, Flux Dev, Flux Schnell, Flux Kontext, and related Flux models, plus task and model queries.

In practice, that means you can ask your client to generate a visual concept, revise an existing image, inspect available model options, and check asynchronous task progress without leaving Claude Desktop, VS Code, Cursor, or another MCP-aware environment.

  • flux_generate_image generates images from text prompts.
  • flux_edit_image edits existing images based on text instructions.
  • flux_get_task checks the status of a single task.
  • flux_get_tasks_batch checks multiple task statuses.
  • flux_list_models lists available models and capabilities.
  • flux_list_actions lists available tools and workflow examples.

How it works

MCP, or Model Context Protocol, is a standard way for AI clients to call external tools. Instead of hard-coding image operations into every IDE or chat app, you run a local MCP server. Your client starts that server with a command, passes it an Ace Data Cloud API token through the environment, and then exposes the Flux tools in the client UI.

The important detail is that the token is not placed into your prompt. The configuration passes it as ACEDATACLOUD_API_TOKEN in the MCP server environment. Your client can then route tool calls through mcp-flux-pro while you continue to describe the image task in natural language.

Install the server

The recommended installation path in the guide is the PyPI package:

pip install mcp-flux-pro

If you prefer to work from source, the guide also documents cloning the repository and installing it in editable mode:

git clone https://github.com/AceDataCloud/FluxMCP.git
cd FluxMCP
pip install -e .

After installation, the server can be started with the mcp-flux-pro command. For many builders, that is enough: the client configuration will launch it when the MCP session starts.

Configure Claude Desktop

Claude Desktop reads MCP server definitions from a JSON configuration file. On macOS, the guide points to ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows, it points to %APPDATA%\Claude\claude_desktop_config.json.

Add a flux server entry like this, replacing the placeholder with your own Ace Data Cloud token:

{
  "mcpServers": {
    "flux": {
      "command": "mcp-flux-pro",
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your API Token"
      }
    }
  }
}

The guide also documents an uvx option, which is useful when you do not want to pre-install the package globally:

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

Save the file, restart Claude Desktop, and the Flux tools should be available for conversational use.

Configure VS Code or Cursor

For VS Code and Cursor, create .vscode/mcp.json in the project root. The structure is similar, but the top-level key is servers instead of mcpServers:

{
  "servers": {
    "flux": {
      "command": "mcp-flux-pro",
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your API Token"
      }
    }
  }
}

The uvx variant is available here too:

{
  "servers": {
    "flux": {
      "command": "uvx",
      "args": ["mcp-flux-pro"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your API Token"
      }
    }
  }
}

Try a small builder workflow

Start with a task that is specific enough to verify the integration but small enough to iterate quickly. For example, ask your client to use Flux to generate a cyberpunk-style city nightscape, then ask it to list available Flux models. If you already have an image, try an edit request such as changing a background to a beach or changing clothing color to red with a Flux Kontext model.

The useful pattern is to keep assets close to the work. If you are writing a landing page in Cursor, you can ask for a concept image, inspect the result, revise the prompt, and continue editing the page without switching tools. If you are planning a visual system in Claude Desktop, you can query models, create variants, and track generation progress in the same conversation.

Where to go next

Flux MCP is most helpful when your image workflow is part of a larger build loop: documentation, landing pages, product mockups, UI explorations, or content pipelines. Treat the MCP server as a bridge between natural-language planning and concrete image tasks, then keep your prompts and configuration under version control like any other development asset.

For the complete setup details, tool list, and configuration examples, read the Flux MCP Integration Guide.

Comments

Popular posts from this blog

Artistic QR Code API Integration Guidance

How to Configure Claude Code with CC Switch and Ace Data Cloud

How to Build a Server-Side Image Editing Workflow with GPT-Image-2