Skip to main content
The SuperAI Flows MCP (Model Context Protocol) server lets external AI agents and MCP-compatible clients interact with flows programmatically — creating workflows, reading state, managing definitions, and downloading files — without going through the UI.

Overview

The MCP server exposes a curated subset of the SuperAI Flows API as MCP tools over the Streamable HTTP transport. It’s mounted at /mcp on the main API service and secured via the service-account API key system.

Authentication

All MCP requests require a valid service-account API key passed via the X-API-Key header.
  1. Navigate to Settings → Service Accounts in the SuperAI Flows UI.
  2. Create a new service account or use an existing one.
  3. Copy the API key (format: saf_org_...).
Bearer token (Authorization header) authentication is not supported for MCP — use API keys only.

Client configuration

Add to .mcp.json in your project root:
Add .mcp.json to .gitignore if it contains API keys.
To avoid hardcoding keys, use shell variable expansion — for example "X-API-Key:${SAF_API_KEY}".

Available tools

The MCP server exposes 5 tools across three categories.

Discovery

get_task_executors

List all available task executors (building blocks) for workflow composition. Use when: you need to know what task types exist before creating or modifying a flow. Parameters: none. Returns an array of task executor definitions, each including task_executor_name, task_executor_description, parameters_schema, flow_input_schema, is_input_task_executor, and is_schedulable_executor.

Flow management

create_flow

Create a new flow in draft status. Returns a complete FlowResponse with ID, version, status, and definition.

update_flow_definition

Replace the entire definition of a draft flow. Creates a new version. Only flows in draft status can be updated; published flows are immutable. Each update increments the version number.

Flow inspection

get_flow

Retrieve a specific flow by ID with its complete definition and metadata.
Only request the expansion parameters you need. The base response is ~50–100ms; include_dynamic_data can add 100–500ms.

File access

generate_download_url

Generate a pre-signed URL (valid for 1 hour) for downloading a flow file.

Common workflows

Testing

The MCP Inspector is the easiest way to debug:
Connect to https://flows.super.ai/mcp with Streamable HTTP transport and add the X-API-Key header. Or check the endpoint with curl:

Limitations

  • API key auth only — JWT / bearer token authentication is not supported for MCP connections.
  • Read/write scope — The API key’s permissions determine which flows are accessible.
  • No streaming — Tool responses are returned as complete JSON.
  • 5 tools only — Only core flow management endpoints are exposed; flow executions, task outputs, and admin endpoints are not available via MCP.