Skip to main content

MCP Server

The XainFlow MCP server lets AI assistants interact with your workspace using natural language. Generate images, build workflows, manage assets, and more — directly from Claude.ai, Claude Code, Claude Desktop, Cursor, or any MCP-compatible client.

What is MCP?

The Model Context Protocol (MCP) is an open standard that connects AI assistants to external tools. When you connect XainFlow as an MCP server, your AI assistant gains access to 31 tools that cover your entire creative workflow.

Prerequisites

  • A XainFlow workspace (Pro plan or above)
  • An API key with appropriate scopes — see API Access
  • An MCP-compatible client (Claude.ai, Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, etc.)

Generate an API Key

  1. Go to Workspace Settings > API Keys in XainFlow.
  2. Click Create API Key.
  3. Select scopes: read, write, generate.
  4. Copy the key (starts with xf_live_).
tip

After creating an API key, XainFlow shows pre-configured setup snippets with your key already filled in. Just copy and paste into your client.

Setup by Client

Claude.ai (Web and Mobile)

You can add XainFlow directly to Claude.ai as a connector. This works on Pro, Max, Team, and Enterprise plans.

  1. Open Claude.ai and click your profile icon in the bottom-left corner.
  2. Go to Settings > Connectors.
  3. Scroll down and click Add custom connector.
  4. Enter the XainFlow MCP server URL:
    https://api.xainflow.com/functions/v1/mcp
  5. Click Add to save the connector.

Once added, enable XainFlow in any conversation:

  1. Click the + button at the bottom-left of the chat input.
  2. Select Connectors.
  3. Toggle XainFlow on.

Now you can ask Claude to generate images, manage assets, build workflows, and more — right from the chat.

info

Claude.ai connectors use OAuth for authentication. You'll be prompted to authorize XainFlow the first time you enable the connector. No API key is needed for this method.

For more details on connectors, see Anthropic's guide: Getting started with custom connectors using remote MCP.

Claude Code

claude mcp add xainflow -t http \
--header "X-API-Key:xf_live_YOUR_KEY_HERE" \
https://api.xainflow.com/functions/v1/mcp

Claude Desktop

Add to your claude_desktop_config.json:

{
"mcpServers": {
"xainflow": {
"url": "https://api.xainflow.com/functions/v1/mcp",
"headers": {
"X-API-Key": "xf_live_YOUR_KEY_HERE"
}
}
}
}

Cursor

Add to .cursor/mcp.json in your project:

{
"mcpServers": {
"xainflow": {
"url": "https://api.xainflow.com/functions/v1/mcp",
"headers": {
"X-API-Key": "xf_live_YOUR_KEY_HERE"
}
}
}
}

Windsurf / VS Code

Add to .vscode/mcp.json in your project:

{
"mcpServers": {
"xainflow": {
"url": "https://api.xainflow.com/functions/v1/mcp",
"headers": {
"X-API-Key": "xf_live_YOUR_KEY_HERE"
}
}
}
}

Available Tools

The MCP server exposes 31 tools organized into six categories. Credit costs are the same as in the web UI.

Workspace and Assets

ToolDescription
xainflow_get_workspaceGet workspace info, plan, storage, and credits
xainflow_get_creditsCheck your credit balance breakdown
xainflow_list_projectsList or get projects with optional folders
xainflow_list_assetsBrowse assets with filters and pagination
xainflow_list_stylesList available generation styles
xainflow_list_variablesList prompt variables for dynamic content
xainflow_create_projectCreate a new project
xainflow_manage_foldersCreate, rename, move, or delete folders
xainflow_manage_assetsMove, rename, or delete assets (bulk)
xainflow_upload_imageUpload images (permanent or temporary)

Image Generation

ToolDescription
xainflow_generate_imageGenerate images with 7 AI models

Video Generation

ToolDescription
xainflow_generate_videoGenerate videos with 7 AI models (async)
xainflow_get_video_statusPoll video generation status until complete

Workflow Management

ToolDescription
xainflow_list_workflowsList workflows with pagination
xainflow_get_workflowGet workflow detail with node and edge data
xainflow_list_templatesBrowse workflow templates
xainflow_list_workflow_runsList execution runs for a workflow
xainflow_get_workflow_runGet run status and outputs
xainflow_create_workflowCreate a new workflow with nodes and edges
xainflow_update_workflowUpdate workflow name, state, or folder
xainflow_delete_workflowDelete a workflow
xainflow_create_from_templateClone a template into a new workflow
xainflow_execute_workflowExecute a workflow server-side

AI Suite Tools

ToolDescription
xainflow_remove_backgroundRemove image background (2 credits)
xainflow_upscaleUpscale image resolution (2-4 credits)
xainflow_vectorizeConvert image to SVG vector (1 credit)
xainflow_image_expandExpand image canvas with AI fill (5 credits)
xainflow_multi_angleGenerate multi-angle product views (5 credits)

Skills

ToolDescription
xainflow_list_skillsList available skills
xainflow_get_skillGet full skill instructions
xainflow_create_skillCreate or update a custom skill

Usage Examples

Check your workspace

You: "What's my XainFlow workspace looking like?"

The AI assistant calls xainflow_get_workspace and reports your plan, credit balance, project count, and storage usage.

Generate images

You: "Generate 4 product photos of running shoes using the minimalist style"

The assistant finds the style, checks your credits, generates the images, and confirms the cost.

Build and run a workflow

You: "Create a workflow that generates product photos from a text prompt, then removes the background"

The assistant creates a workflow with Prompt Generator, Image Generator, and Remove Background nodes, then offers to execute it.

Use a template

You: "Show me workflow templates and use the best one for product photos"

The assistant lists templates, clones one, and executes it.

Troubleshooting

No tools showing up

  • Verify the URL is https://api.xainflow.com/functions/v1/mcp (no trailing slash).
  • Ensure the X-API-Key header is set correctly (not needed for Claude.ai — it uses OAuth).
  • For Claude Code, run claude mcp list to verify configuration.

UNAUTHORIZED errors

  • Verify your key starts with xf_live_.
  • Check the key hasn't been revoked in Workspace Settings.

Generation takes too long

  • Image generation typically takes 5-30 seconds depending on the model.
  • z-image is the fastest model (2-5 seconds).
  • gemini-pro at 4K can take up to 60 seconds.