Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.akool.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

AKOOL provides a Model Context Protocol (MCP) server that exposes face swap, image generation, TTS, and more as native tools inside AI assistants — no manual API calls needed.

Credentials

MCP uses the same credentials as the CLI. Get them from your AKOOL dashboard:
HeaderDescription
x-client-idYour Client ID (clientId)
x-client-secretYour Client Secret (clientSecret)

Server Config

{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}

Available Tools

CategoryDescriptionTool
AccountGet account credit balanceaccount_credit
List available AI modelsaccount_models
ImageGenerate image from text or reference imageimage_create
Get image generation resultimage_info
Upscale or create variants of an imageimage_upscale
VoiceList available TTS voicesvoice_list
Convert text to speechaudio_tts
Get TTS resultvoice_result
Face SwapSwap face in an imagefaceswap_image
Swap face in a videofaceswap_video
Enhanced face swap (multi-face)faceswap_plus
Get face swap resultfaceswap_result
Delete a face swap recordfaceswap_delete
Live streaming face swapfaceswap_live
AvatarList digital avatarsavatar_list
Get avatar detailavatar_detail
Submit character swap taskcharacter_swap_create
Get character swap resultcharacter_swap_result
Image to VideoCreate a video from an imagevideo_image2video_create
Get image-to-video resultvideo_image2video_results
List available video effectsvideo_image2video_effects
Update audio on a videovideo_image2video_update_audio
Delete an image-to-video recordvideo_image2video_delete
Face DetectionDetect faces in an imagefacedetect_detect
Analyze faces across multiple framesfacedetect_analyze

Setup Guides

CLI quick-add is only supported by Claude Code. All other clients (Cursor, Windsurf, Codex, Kiro) require editing a JSON config file.

Claude Code

Install
npm install -g @anthropic-ai/claude-code
Add AKOOL MCP
claude mcp add akool-mcp https://openapi.akool.com/mcp/v1 \
  --header "x-client-id: YOUR_CLIENT_ID" \
  --header "x-client-secret: YOUR_CLIENT_SECRET"
Or edit ~/.claude/mcp_servers.json directly:
{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}
Verify:
claude mcp list
# akool-mcp   http   https://openapi.akool.com/mcp/v1

Claude Desktop

Install Download and install from claude.ai/download. Add AKOOL MCP Open Claude Desktop → SettingsDeveloperEdit Config, then add:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}
Restart Claude Desktop. A hammer icon (🔨) will appear in the chat input when MCP tools are ready.

Cursor

Install Download from cursor.com, install and open. Add AKOOL MCP Go to SettingsMCPAdd new global MCP server, or edit ~/.cursor/mcp.json:
{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}
Restart Cursor. In the Agent panel, AKOOL tools will appear under Available Tools.

Windsurf

Install Download from codeium.com/windsurf, install and open. Add AKOOL MCP Go to Windsurf SettingsMCPAdd Server, or edit ~/.codeium/windsurf/mcp_config.json:
{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}
Restart Windsurf and open the Cascade panel. AKOOL tools will be listed under available tools.

OpenAI Codex

Install
npm install -g @openai/codex
Add AKOOL MCP Edit ~/.codex/mcp_servers.json:
{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}
Codex will automatically load MCP servers on startup.

Kiro

Install Download from kiro.dev, install and open. Add AKOOL MCP Create or edit ~/.kiro/settings/mcp.json (global) or .kiro/settings/mcp.json in your project root:
{
  "mcpServers": {
    "akool-mcp": {
      "type": "http",
      "url": "https://openapi.akool.com/mcp/v1",
      "headers": {
        "x-client-id": "YOUR_CLIENT_ID",
        "x-client-secret": "YOUR_CLIENT_SECRET"
      }
    }
  }
}
Restart Kiro. In the Agent panel, AKOOL tools will be listed under MCP Tools.

Usage Examples

Once configured, describe tasks in natural language: Face swap (image)
Swap the face in source.jpg onto target.jpg using AKOOL, save the result URL
Face swap (video)
Use AKOOL to swap the face from face.jpg onto video.mp4, then wait for the result
Enhanced face swap
Use AKOOL faceswap_plus to swap multiple faces in group.jpg with the source face
Character swap
Use AKOOL to do a character swap: source image is source.png, target is target.png
Generate image
Ask AKOOL to generate an image: cinematic portrait of an astronaut on Mars, golden hour
Image to video
Use AKOOL to turn hero.jpg into a video clip with the "zoom" effect
Text to speech
List available AKOOL voices, then convert this script to speech using a female English voice:
"Welcome to our annual product showcase."
Face detection
Use AKOOL to detect all faces in photo.jpg and return their bounding boxes
Check account
Check my AKOOL credit balance and list available AI models

Tips

  • Never commit x-client-id / x-client-secret to source control. Store them in environment variables and reference via your MCP client’s env substitution (e.g. $AKOOL_CLIENT_ID).
  • Run akool-cli credit first to confirm your credentials are valid before configuring any MCP client.
  • Most AKOOL tools are async — the assistant will call *_result tools automatically to poll until the job completes.
  • If a tool call returns 401 Unauthorized, verify credentials at the AKOOL dashboard.