Skip to main content
The SuperAI Flows MCP (Model Context Protocol) server lets external AI agents and MCP-compatible clients work with SuperAI Flows programmatically — building and updating flows, starting and monitoring runs, reading task outputs, completing human reviews, and downloading files — without going through the UI.

Overview

The MCP server exposes the public SuperAI Flows API as MCP tools over the Streamable HTTP transport: every operation in the API reference is available as a tool, and nothing outside it. 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. As an organization admin, open Organization settings → Service accounts from your profile menu 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

Each operation of the public API is one MCP tool. A tool’s name is the operation’s operationId from the OpenAPI specification, its input is the operation’s path, query and body parameters, and it returns the same JSON the API returns. Your client lists the tools with tools/list. The tools follow the sections of the API reference: What each tool may do follows the permissions of the service account behind the API key.

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.
  • Public API only — Internal and admin-only endpoints are not exposed. If an operation isn’t in the API reference, it isn’t available as a tool.
  • Stateless — Each request is handled on its own, so there is no server-to-client notification stream (GET /mcp returns 405).