Build an MCP

Union.ai supports serving Model Context Protocol (MCP) servers over HTTP.

There are two main MCP environment types:

Environment Purpose
MCPAppEnvironment Serve any FastMCP instance with custom tools
FlyteMCPAppEnvironment Flyte-specific server that exposes Flyte operations as tools

See the sub-pages for detailed guides:

HTTP layout

All MCP app environments expose the same HTTP endpoints:

  • GET /health — Liveness/readiness check ({"status": "healthy"})
  • POST {mcp_mount_path}/mcp or {mcp_mount_path}/sse — MCP protocol endpoint (default: /mcp for generic, /flyte-mcp for Flyte)

Quickstart

The fastest way to try Flyte MCP is locally — no deployment needed:

uvx --from "flyte[mcp]" flyte-mcp

For client setup, tool selection, allowlists, and remote deployment, see Flyte MCP server.