Setup
1. Get your API key — Copy your GalaxyAI API key from the dashboard. This is the same Bearer token used for the REST API. 2. Add to your MCP client — Add the following to your MCP client configuration file:YOUR_API_KEY with the key from step 1.
3. Start using tools — Your AI assistant now has access to 21 GalaxyAI tools. Ask it to list your workflows, build new ones, edit or delete them, start a run, or check run status.
Available Tools
The MCP server exposes 21 tools across five categories.System Workflows
list_system_workflows
List available system workflows (pre-built single-node tools). Filter by
category: image, video, audio, utility, llm.
run_system_workflow
Run a single node/model by name. Fuzzy-matches system workflows. Supports
mode parameter for multi-mode nodes (e.g. "image-to-image" for Nano
Banana Pro edit).Workflows
list_workflows
List workflows with optional search and pagination. Returns id, name, and
updatedAt for each workflow.
get_workflow
Get full details of a workflow including nodes, edges, description, and
timestamps.
update_workflow
Update a workflow’s name or description. Does not modify nodes or edges.
delete_workflow
Permanently delete a workflow by ID. This action cannot be undone.
Workflow Builder
create_workflow
Create a new workflow with Request and Response scaffold nodes. Optionally
add request input fields. Returns the workflow ID and node IDs.
list_node_types
List available node types with their input/output ports, data types,
categories, and modes. Use this to discover what nodes can be added.
add_node
Add a node to an existing workflow. Supports column/row positioning and
initial input values. Returns the new node ID and its ports.
update_node
Update input values on an existing node without removing it or its edges.
Use to change model parameters like prompt or image size.
connect_nodes
Create a validated edge between two nodes. Checks type compatibility,
prevents cycles, and enforces single-input rules.
delete_node
Remove a node from a workflow. Automatically removes all edges connected to
that node. Cannot delete scaffold nodes (Request, Response).
disconnect_nodes
Remove an edge between two nodes. Identify the edge by its ID, or by the
source/target node and handle pair.
Runs
start_run
Start a workflow run by ID or name. Searches user workflows first, falls
back to system workflows. Validates Request Node fields automatically.
get_run
Get run status with Response Node output and per-node outputs. Returns
current state if still running.
list_runs
List workflow runs with optional filters (workflow, status, search) and
cursor or page-based pagination.
cancel_run
Cancel a running or queued workflow run. Refunds unused estimated credits.
Direct Model Runs
list_models
List all available AI models/nodes that can be run directly without a
workflow. Shows model name, category, description, and available modes.
run_model
Run an AI model directly without creating a workflow. Provide the node type
and input parameters. Returns a run ID to check progress.
get_model_run
Get the status and output of a direct model run. Use after run_model to
check progress and retrieve results.
Building Workflows
The workflow builder tools let AI assistants create, edit, and restructure workflows step-by-step. Each tool validates independently, so errors are caught early. Typical build flow:- Call
list_node_typesto discover available node types and their ports - Call
create_workflowto scaffold a new workflow with Request and Response nodes - Call
add_nodefor each processing node (e.g. image generator, LLM) - Call
connect_nodesto wire outputs to inputs — type-checked automatically
- Call
update_nodeto change input values on an existing node - Call
delete_nodeto remove a node — all connected edges are cleaned up automatically - Call
disconnect_nodesto remove a single edge (by edge ID or source/target pair) - Call
add_nodeandconnect_nodesto rewire the workflow
Example: Image Generation + Description
Example: Image Generation + Description
Example: Parallel LLMs + Image Generation
Example: Parallel LLMs + Image Generation
Example: Image Edit via System Workflow (mode parameter)
Example: Image Edit via System Workflow (mode parameter)
mode: "image-to-image" to switch from the default text-to-image mode. Use list_node_types to see available modes.Example: Direct Model Run (no workflow needed)
Example: Direct Model Run (no workflow needed)
Port names returned by
add_node and list_node_types use the in: / out:
prefix format expected by connect_nodes. The connect_nodes tool validates
type compatibility (e.g. image→image), prevents cycles, and enforces
single-input rules. Use disconnect_nodes to remove a connection, or
delete_node to remove a node along with all its connections.Request Node Handling
When a workflow contains a Request Node with input fields,start_run automatically detects it and guides the AI assistant through providing values.
- The AI assistant calls
start_runwith just theworkflowId - The tool detects Request Node fields and returns their names, types, and current defaults — instead of starting the run
- The AI assistant calls
start_runagain with thevaluesparameter filled in for each Request Node field - The workflow runs with the provided inputs and values are synced to the Request Node in the UI
The
values parameter is keyed by nodeId then fieldId. The tool returns
the exact field IDs needed, so the AI assistant can construct the correct
payload automatically.Run Results
Bothstart_run and get_run return a structured response with two sections:
Response Output
Response Output
The Response Node output — the final workflow result. This is always
listed first in the response so the AI assistant can surface the primary
result immediately.
Node Outputs
Node Outputs
Status and output of every node in the workflow. Response nodes appear
first, followed by all other nodes. Each entry includes the node type, ID,
status, and output (or error).
If the workflow is still running, the response shows the current execution
state and per-node statuses instead. Use
get_run to poll for the final
result.Smart Routing
The MCP tools automatically find the right workflow when given a name:| User intent | Tool | Search order |
|---|---|---|
| ”Run node Flux” | run_system_workflow | System workflows only |
| ”Run workflow My Pipeline” | start_run | User workflows → System workflows |
| ”Run Flux directly” | run_model | Direct model execution |
Checking Run Status
Workflow runs execute asynchronously. After starting a run, useget_run to check progress:
get_run multiple times until the run reaches a terminal state (COMPLETED, FAILED, or CANCELED).
Authentication
The MCP server uses the same Bearer token as the REST API. Include it in theheaders of your MCP client configuration — no separate authentication is needed.
Compatibility
Works with any MCP client that supports the Streamable HTTP transport:- Claude Desktop
- Claude Code
- Cursor
- Windsurf
- Any MCP-compatible client

